Chapter 16. BIND Configuration

This chapter assumes that you have a basic understanding of BIND and DNS; it does not attempt to explain the concepts of BIND and DNS. This chapter does explain how to use BIND Configuration Tool (bindconf) to configure basic BIND server zones for BIND version 8. BIND Configuration Tool creates the /etc/named.conf configuration file and the zone configuration files in the /var/named directory each time you apply your changes.

If you require more functionality than this tool provides, you can create the /etc/named.conf configuration file using BIND Configuration Tool and then add your customized settings. However, once you manually modify the configuration file, you cannot use BIND Configuration Tool to edit the custom configuration settings that were added manually.

ImportantDo Not Edit /etc/named.conf
 

Do not edit the /etc/named.conf configuration file. BIND Configuration Tool generates this file after you apply your changes. If you want to configure settings that are not configurable using BIND Configuration Tool, then do not use it.

BIND Configuration Tool requires the X Window System and root access. To start BIND Configuration Tool, use one of the following methods:

Figure 16-1. bindconf

BIND Configuration Tool configures the default zone directory to be /var/named. All zone files specified are relative to this directory. BIND Configuration Tool also includes basic syntax checking when values are entered. For example, if a valid entry is an IP address, you are only allowed to type numbers and the dot (.) character into the text area.

BIND Configuration Tool allows you to add a forward master zone, a reverse master zone, and a slave zone. After adding the zones, you can edit or delete them from the main window as shown in Figure 16-1.

After adding, editing, or deleting a zone, you must choose File => Apply to write the /etc/named.conf configuration file and all the individual zone files in the /var/named directory. Applying your changes will also have the named service reload the configuration files. You can also choose File => Exit and click Yes to Do you want to apply your changes before exiting?

Adding a Forward Master Zone

To add a forward master zone (also known as a primary master), click the Add button, select Forward Master Zone, and enter the domain name for the master zone in the Domain name text area.

A new window as shown in Figure 16-2 will appear with the following options:

Figure 16-2. Adding a Forward Master Zone

The configuration shown in Figure 16-2 creates the following entry in /etc/named.conf:

zone  "forward.example.com" { 
	type master; 
	file  "forward.example.com.zone"; 
};

It also creates the file /var/named/forward.example.com.zone with the following information:

$TTL 86400
@	IN	SOA	@  root.localhost (
			1 ; serial
			28800 ; refresh
			7200 ; retry
			604800 ; expire	
			86400 ; ttl
			)

After configuring the Forward Master Zone, click OK to return to the main window as shown in Figure 16-1. From the pulldown menu, choose File => Apply to write the /etc/named.conf configuration file, write all the individual zone files in the /var/named directory, and have the daemon reload the configuration files.