Posted by: jasonk2600 | December 30, 2009

FreeBSD Slave DNS Server

Synopsis

This document describes the basic steps necessary to configure a system running FreeBSD to perform the role of a slave DNS server.  The slave DNS server will make use of the BIND DNS server included in the basic FreeBSD configuration and will draw DNS information from an authoritative master DNS server running on another system.  NOTE: Only the configuration of the slave DNS server is described here, refer to the Authoritative DNS Server post for more information on how to setup a master DNS server.

Configuration

Begin be enabling the BIND DNS server.

# echo 'named_enable="YES"' >> /etc/rc.conf

 

Modify the BIND DNS server configuration file, /etc/namedb/named.conf.  Configure BIND to retrieve your domain information from your authoritative master DNS server.  NOTE:  In the example below, the authoritative master DNS server can be contacted through the IP address 10.0.1.1 and the FreeBSD slave DNS server uses the IP address 10.0.1.2.  Change these IP addresses to reflect your network setup.

options {
  listen-on {10.0.1.2;};
  forwarders {10.0.1.1;};
};

zone "yourdomain.com" in {
  type slave;
  file "slave/slave.yourdomain.com";
  masters {10.0.1.1;};
};

 

Restart the BIND DNS server for the new settings to take effect.

# /etc/rc.d/named restart

Testing

Once the BIND DNS server has restarted configure a client system to use the newly configure slave DNS server. Try to ping one of the hosts configured in your domain. The ping utility should be able to resolve the IP address for the hostname.

References

 

  [EoF]
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: