Enabling the Name Server Daemon


Enabling BIND in FreeBSD is the simplest part of configuring it. All you have to do, just as with other built-in FreeBSD services we have discussed, is add the following line to /etc/rc.conf:

named_enable="YES"


With this option set, named will run automatically at boot time. To start it without rebooting, use the appropriate rc script:

# /etc/rc.d/named start Starting named.


The server should now be running. However, this is only scratching the surface of a complete BIND configuration.

Note

If you're enabling BIND on your FreeBSD machine, put a nameserver line into your /etc/resolv.conf file, referring to the loopback address (127.0.0.1) as your primary name server. This way, you will be able to perform DNS lookups the quickest way of all: from your own machine. Make sure this line appears before any additional servers:

search example.com nameserver 127.0.0.1 nameserver 64.41.131.167






FreeBSD 6 Unleashed
FreeBSD 6 Unleashed
ISBN: 0672328755
EAN: 2147483647
Year: 2006
Pages: 355
Authors: Brian Tiemann

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net