Red Hat ENTERPRISE LINUX 3 Reference Manual page 210

Hide thumbs Also See for ENTERPRISE LINUX 3:
Table of Contents

Advertisement

192
12.3.3. Example Zone File
Seen individually, directives and resource records can be difficult to grasp. However, when placed
together in a single file, they become easier to understand.
The following example shows a very basic zone file.
$ORIGIN example.com
$TTL 86400
@
IN
SOA
IN
NS
IN
NS
IN
MX
IN
MX
IN
server1
IN
server2
IN
dns1
IN
dns2
IN
ftp
IN
mail
IN
mail2
IN
www
IN
In this example, standard directives and
as
dns1.example.com
and
, respectively.
10.0.1.3
The email servers configured with the
Since the
server1
is placed after them, expanding them to
Through the related
A
FTP and Web services, available at the standard
are pointed at the appropriate servers using
12.3.4. Reverse Name Resolution Zone Files
A reverse name resolution zone file is used to translate an IP address in a particular namespace into
an FQDN. It looks very similar to a standard zone file, except that
link the IP addresses to a fully qualified domain name.
A
record looks similar to this:
PTR
last-IP-digit
The
last-IP-digit is the last number in an IP address points to a particular system's FQDN.
In the follow example, IP addresses
FQDNs.
dns1.example.com.
2001062501 ; serial
21600
; refresh after 6 hours
3600
; retry after 1 hour
604800
; expire after 1 week
86400 )
; minimum TTL of 1 day
dns1.example.com.
dns2.example.com.
10
mail.example.com.
20
mail2.example.com.
A
10.0.1.5
A
10.0.1.5
A
10.0.1.7
A
10.0.1.2
A
10.0.1.3
CNAME
server1
CNAME
server1
CNAME
server2
CNAME
server2
SOA
and
dns2.example.com
MX
and
names do not end in a trailing period (
server2
resource records, their IP addresses can be determined.
IN
PTR
10.0.1.20
Chapter 12. Berkeley Internet Name Domain (BIND)
hostmaster.example.com. (
values are used. The authoritative nameservers are set
, which have
records point to
server1
server1.example.com
ftp.example.com
records.
CNAME
FQDN-of-system
through
10.0.1.25
records that tie them to
A
and
via
server2
), the
.
$ORIGIN
and
server2.example.com
and
www.example.com
resource records are used to
PTR
are pointed to corresponding
10.0.1.2
records.
CNAME
domain
.
names,

Advertisement

Table of Contents
loading

Table of Contents