Zone Files - Novell LINUX ENTERPRISE SERVER 10 SP2 - INSTALLATION AND ADMINISTRATION Installation Manual

Hide thumbs Also See for LINUX ENTERPRISE SERVER 10 SP2 - INSTALLATION AND ADMINISTRATION:
Table of Contents

Advertisement

33.5 Zone Files

Two types of zone files are needed. One assigns IP addresses to hostnames and the
other does the reverse: it supplies a hostname for an IP address.
TIP: Using the Dot in Zone Files
The . has an important meaning in the zone files. If hostnames are given
without a final ., the zone is appended. Complete hostnames specified with a
full domain name must end with a . to avoid having the domain added to it
again. A missing or wrongly placed dot is probably the most frequent cause of
name server configuration errors.
The first case to consider is the zone file world.zone, responsible for the domain
world.cosmos, shown in Example 33.6, "File /var/lib/named/world.zone" (page 633).
Example 33.6 File /var/lib/named/world.zone
$TTL 2D
world.cosmos. IN SOA
2003072441
1D
2H
1W
2D )
IN NS
IN MX
gateway
IN A
IN A
sun
IN A
moon
IN A
earth
IN A
mars
IN A
www
IN CNAME
Line 1:
$TTL defines the default time to live that should apply to all the entries in this file.
In this example, entries are valid for a period of two days (2 D).
Line 2:
This is where the SOA (start of authority) control record begins:
gateway
root.world.cosmos. (
; serial
; refresh
; retry
; expiry
; minimum
gateway
10 sun
192.168.0.1
192.168.1.1
192.168.0.2
192.168.0.3
192.168.1.2
192.168.1.3
moon
The Domain Name System
633

Advertisement

Table of Contents
loading

This manual is also suitable for:

Suse linux enterprise server 10 sp3

Table of Contents