From owner-freebsd-questions@FreeBSD.ORG Sun Apr 10 17:49:28 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 59AC716A4CE for ; Sun, 10 Apr 2005 17:49:28 +0000 (GMT) Received: from mail28.sea5.speakeasy.net (mail28.sea5.speakeasy.net [69.17.117.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A1E143D39 for ; Sun, 10 Apr 2005 17:49:28 +0000 (GMT) (envelope-from omniBSD@speakeasy.net) Received: (qmail 16901 invoked from network); 10 Apr 2005 17:49:27 -0000 Received: from acute.anhedonia.com (HELO [10.20.30.10]) (omni@[66.93.24.213]) (envelope-sender ) by mail28.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 10 Apr 2005 17:49:27 -0000 Message-ID: <42596802.2010002@speakeasy.net> Date: Sun, 10 Apr 2005 12:53:06 -0500 From: Ash User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20041104 Netscape/7.1 X-Accept-Language: en-us, en MIME-Version: 1.0 To: infofarmer@mail.ru References: <42592D77.4080704@confabulator.net> <4259318A.2000704@mail.ru> In-Reply-To: <4259318A.2000704@mail.ru> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: FreeBSD Questions Subject: Re: BIND 9 on a dynamic ip address X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Apr 2005 17:49:28 -0000 Andrew P. wrote: > Ryan J. Cavicchioni wrote: > >> Hello, I am hoping to set up a DNS server for my home network just for >> the sake of learning BIND. Unfortunately, I have a PPPoE connects >> (wireless broadband) with a dynamic ip address. At the moment, I use >> dyndns just so I have a hostname and I would like to keep using >> dyndns. All I am looking to do is to use bind for hosts in my network >> and have a local dns cache. I do not plan on pointing any domains to >> my nameservers. Would this be possible? Or will there be problems that >> I am not foreseeing? I am really new at this, that is why I would like >> to leard bind. > > > > If you have a stable LAN ip address, it's not a > problem. Configure BIND to listen on it and the > dynamic address you get to use internet won't > bother anyone (even BIND itself). > > On the other hand, configuring a DNS server > listening on a dynamic IP address is a really > bad idea. > > BIND 9 Administrator Reference Manual is a > good place to start (I started there a few > weeks ago). > > http://www.bind9.net/manual/bind/9.3.1/Bv9ARM.html > > > Best wishes, > Andrew P. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" Adding to Andrew's comments. If you do not have a LAN interface, you should be able to use a loopback (lo(4) interface to test things with. You will^H^H^H^Hshould always have lo0 up and listening to 127.0.0.1 (/8). You can bring up other instances of lo(4) with ifconfig(8) and treat it as you would any other interface. For example if you want to create lo1, you would type: # ifconfig lo1 create If you do have a local network, you can run bind without any difficulties on just your local network without any problems. You just want to be sure that you don't tell your servers that they are authoritative for a real domain (e.g. freebsd.com) or else you won't be able to resolve any host/sub-domain from freebsd.com. You can safely pick a non-valid domain without expecting to run into problems. An example would be my.lan (e.g. host1.my.lan host2.my.lan). Since .lan is not a valid TLD (at least today), you can expect to use it without running into any collisions. I believe Cisco uses .lan as a fake "TLD" in some of their lower end equipment (e.g. wireless APs/routers). Good luck! -Ash