Apple 034-2351_Cvr manual Setting Up Sample Configuration Files, To set up the sample files

Models: 034-2351_Cvr

1 97
Download 97 pages 56.32 Kb
Page 39
Image 39
Setting Up Sample Configuration Files

Setting Up Sample Configuration Files

The sample files can be found in /usr/share/named/examples.

The sample files assume a domain name of example.com behind the NAT. This may be changed, but must be changed in all modified configuration files. This includes renaming /var/named/example.com.zone to the given domain name, for example, /var/ named/foo.org.zone

To set up the sample files:

1In Terminal, log in as root.

2Enter the following command:

cp /etc/named.conf /etc/named.conf.OLD

This saves a copy of the process configuration file.

3Then, enter the following command:

cp /usr/share/named/examples/db.10.0.1.sample /var/named/10.0.1.zone

This copies the sample file for the NAT zone.

4Enter the following command:

cp /usr/share/named/examples/example.com.sample /var/named/

example.com.zone

This copies the sample file for your domain.

5Now, enter the following command:

cp /usr/share/named/examples/named.conf.sample /etc/named.conf

This copies in a sample named process configuration file.

6Using a command-line text editor (like pico, or emacs), open /etc/named.conf for editing.

7Follow the instructions in the sample file to apply edits appropriate to your specific installation.

8Save your changes to named.conf.

9Use Server Admin to start DNS service.

10In the Network pane of System Preferences, change the domain name servers to list only the IP address of the new DNS server, 10.0.1.2.

Configuring Clients

If the IP addresses of your client computers are statically assigned, change the domain name servers of their Network preference panes to only list the new server’s IP address, 10.0.1.2.

Chapter 2 DNS Service

39

Page 39
Image 39
Apple 034-2351_Cvr manual Setting Up Sample Configuration Files, To set up the sample files, Configuring Clients