Date: Tue, 9 Jan 2007 15:43:06 +0100 (CET) From: Oliver Fromme <olli@lurza.secnetix.de> To: freebsd-questions@FreeBSD.ORG, George.Vanev@gmail.com Subject: Re: Automatically get nameservers Message-ID: <200701091443.l09Eh6Jx012958@lurza.secnetix.de> In-Reply-To: <6f4f57f60701090556v35b55b2cn9bbcd363c588b002@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
George Vanev wrote: > I have a FreeBSD 6.1 box for a gateway. > It connects to ISP via pppoe. > In /etc/ppp/ppp.conf i have this line: > enable dns > so I have the necessery nameserver-s in /etc/resolv.conf > So far, so good... > I want Windows client machines, connected to the FreeBSD box > to get the nameservers automatically. > Can you tell me how this may be done?! There are several ways to do it. Personally I have simply set up an own nameserver on the FreeBSD machine (just named_enable="YES" in /etc/rc.conf) and enabled "forward only" in /etc/namedb/named.conf. Then I wrote a small /etc/ppp/ppp.linkup script that writes the nameserver addresses into "forwarders" entries in /etc/namedb/named.conf and restarts the named process ("/etc/rc.d/named restart"). That's it. If your ISP's nameservers never change (mine never did), you can probably also just hardcode them. :-) Another option, if you don't absolutely have to use your ISP's nameservers for some reason, then you can also just ignore them, i.e. letting your own nameserver resolve everything itself, without forwarding. (Of course that's not possible if your ISP blocks port 53.) Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "Python tricks" is a tough one, cuz the language is so clean. E.g., C makes an art of confusing pointers with arrays and strings, which leads to lotsa neat pointer tricks; APL mistakes everything for an array, leading to neat one-liners; and Perl confuses everything period, making each line a joyous adventure <wink>. -- Tim Peters
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200701091443.l09Eh6Jx012958>