Apple 034-2351_Cvr Frozen Dessert Maker User Manual


 
Chapter 2 DNS Service 39
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:
1 In Terminal, log in as root.
2 Enter the following command:
cp /etc/named.conf /etc/named.conf.OLD
This saves a copy of the process configuration file.
3 Then, 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.
4 Enter the following command:
cp /usr/share/named/examples/example.com.sample /var/named/
example.com.zone
This copies the sample file for your domain.
5 Now, enter the following command:
cp /usr/share/named/examples/named.conf.sample /etc/named.conf
This copies in a sample named process configuration file.
6 Using a command-line text editor (like pico, or emacs), open /etc/named.conf for
editing.
7 Follow the instructions in the sample file to apply edits appropriate to your specific
installation.
8 Save your changes to named.conf.
9 Use Server Admin to start DNS service.
10 In 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.
LL2351.Book Page 39 Monday, September 8, 2003 2:47 PM