beautypg.com

Practical example – Apple Mac OS X Server (Administrator’s Guide) User Manual

Page 521

background image

DNS Service

521

Zone Data Files

Zone data files consist of paired address files and reverse lookup files. Address records link
host names (host1.example.com) to IP addresses. Reverse lookup records do the opposite,
linking IP addresses to host names. Address record files are named after your domain name–
for example, db.example.com. Reverse lookup file names look like part of an IP address, such
as db.192.168.12.

By default, the zone data files are located in

/var/named/

Practical Example

The following example allows you to create a basic DNS configuration using BIND for a
typical network behind a Network Address Translation (NAT) device that connects to an ISP.
The port (cable modem/DSL/dial-up/etc.) that is connected to your ISP is referred to here as
the WAN port. The port that is connected to your internal network is referred to here as the
LAN port. The sample files you need are installed with Mac OS X Server in the directories
listed in the steps below. This example also assumes the following:

m The IP address of the WAN port is determined by your ISP.

m The IP address of the LAN port is 10.0.1.1

m The IP address of the Mac OS X or Mac OS X Server machine that will be used as the DNS

server is 10.0.1.2.

m The IP addresses for client computers are 10.0.1.3 through 10.0.1.254.

If IP address assignment is provided by the NAT device via DHCP, it needs to be configured
with the above information. Please consult your router or gateway manual for instructions on
configuring its DHCP Server.

If your NAT device connects to the Internet, you also need to know the DNS server addresses
provided by your ISP.

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/db.example.com to the given domain name, for example,
/var/named/db.foo.org.

To set up the sample files:

1

Log in to the DNS server machine as root.

2

Choose Go To Folder from the Go menu.

This manual is related to the following products: