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 ...

Get FreeBSD6 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.