DNS setup
Ken Ebling
ken at idealinter.net
Mon Jul 4 01:20:11 GMT 2005
On Jul 3, 2005, at 8:21 PM, Alan Curtis wrote:
>
> On Jul 3, 2005, at 7:01 PM, Alejandro Pulver wrote:
>
>
>> If you want examples I can provide you some.
>>
>> Then let me know if you want option 1) or 2) so I can help you
>> with the
>> next step.
>>
>> 1) Have an independent DNS server on each machine (there is one for
>> Windows called TreeWalk - free -, that is the same as named).
>>
>> 2) Put a DNS server on *one* machine, and that DNS server is used
>> by all
>> the machines on the network.
>>
>>
>
> I would like to implement 2.
>
> Thanks for your help.
>
> Alan
It's pretty easy to get working on FreeBSD 5.3. This is how I'd do it:
1) cd /etc/named
2) sh make-localhost
3) echo "named_enable=\"YES\"" >> /etc/rc.conf (note two double
quotes after "YES\" and two ">")
4) edit /etc/namedb/named.conf to suit your needs. (you'll probably
need to change the "listen-on" directive to add the IP address of
your machine, because it's defaulted to 127.0.0.1, which means bind
won't be listening on the network interface.)
5) /etc/rc.d/named start
That's it. Now your machines can be configured to use that system
as their primary name server.
You may still want to do some things, like disallow other people
from using your name servers, by only enabling "recursion" for your
machines.
You can find detailed instructions on configuring recursion here:
http://www.netadmintools.com/art234.html
Ken Ebling
More information about the freebsd-questions
mailing list