Next | Prev | Up | Top | Contents | Index

Configuring the Primary Server

Use this procedure to configure a primary server:

  1. Log in as root.

  2. Move to the named example directory:

    cd /var/named/Examples

  3. Copy the template files to the /var/named directory:

    cp named.boot.master root.cache named.hosts \

    named.rev localhost.rev /var/named

  4. Move named.boot.master to the default filename:

    cd ..

    mv named.boot.master named.boot

  5. Modify named.boot with your editor of choice to resemble the following:

    ;

    ; Boot file for apple.fruit.com, primary for fruit.com

    ;

    directory /var/named

    ;type domain source host/file backup file

    cache . root.cache

    primary fruit.com fruit.named.hosts

  6. Modify the named.hosts file, here called fruit.named.hosts, to resemble the following:

    ; Authoritative data for fruit.com

    ;

    @ IN SOA apples.fruit.com. named-mgr.apples.fruit.com.

    (1994021501 ; Serial

    10800 ; Refresh 3 hours

    3600 ; Retry 1 hour

    3600000 ; Expire 1000 hours

    86400 ) ; Minimum 24 hours

    ; authoritative name servers for fruit.com

    IN NS apples.fruit.com.

    IN NS oranges.fruit.com.

    ; address records for all hosts on the net

    IN A 192.35.10.1

    apples IN A 192.35.10.1

    oranges IN A 192.35.10.2

    banana IN A 192.35.10.3

    guava IN A 192.35.10.4

    plum1 IN A 192.35.10.5

    plum2 IN A 192.35.10.6

    plum3 IN A 192.35.10.7

    pineapple1 IN A 192.35.10.8

    pineapple2 IN A 192.35.10.9

    localhost IN A 127.0.0.1

    ; canonical or alias name for localhost

    loghost IN CNAME localhost

  7. Modify the localhost.rev file to resemble the following:

    ;localhost.rev -- PTR record for 127.1

    ;

    @ IN SOA apples.fruit.com. named-mgr.apples.fruit.com.

    (1994021501 ;Serial

    10800 ;Refresh 3 hours

    3600 ;Retry 1 hour

    3600000 ;Expire 1000 hours

    86400 ) ;Minimum 24 hours

    ; authoritative name servers for fruit.com

    IN NS apples.fruit.com.

    IN NS oranges.fruit.com.

    0 IN PTR loopback.fruit.com.

    1 IN PTR localhost.

  8. Modify the named.rev file (fruitnamed.rev) to resemble the following:

    ;

    ; @(#)named.rev 1.1 (Berkeley) 86/02/05

    ;

    @ IN SOA apples.fruit.com. named-mgr.apples.fruit.com.

    (1994021501 ; Serial

    10800 ; Refresh 3 hours

    3600 ; Retry 1 hour

    3600000 ; Expire 1000 hours

    86400 ); Minimum 24 hours

    ;authoritative name servers for fruit.com

    IN NS apples.fruit.com.

    IN NS oranges.fruit.com.

    ;named.rev addresses, by default, are the last two numbers

    ;of the internet addresses in reverse order, if Class B

    ;address. If Class C address, then it's the last number.

    1 IN PTR apples.fruit.com.

    2 IN PTR oranges.fruit.com.

    3 IN PTR banana.fruit.com.

    4 IN PTR guava.fruit.com.

    5 IN PTR plum1.fruit.com.

    6 IN PTR plum2.fruit.com.

    7 IN PTR plum3.fruit.com.

    8 IN PTR pineapple1.fruit.com.

    9 IN PTR pineapple2.fruit.com.

  9. Use the default root.cache file if the primary server is attached to the Internet. If practical, you should obtain the most up-to-date list from rs.internic.net using anonymous FTP. The list is kept in the file domain/named.root.
;       This file holds the information on root name servers needed to
;       initialize cache of Internet domain name servers
;       (e.g. reference this file in the "cache  .  <file>"
;       configuration file of BIND domain name servers).
;
;       This file is made available by InterNIC registration services
;       under anonymous FTP as
;           file                /domain/named.root
;           on server           FTP.RS.INTERNIC.NET
;       -OR- under Gopher at    RS.INTERNIC.NET
;           under menu          InterNIC Registration Services (NSI)
;              submenu          InterNIC Registration Archives
;           file                named.root
;
;       last update:    Sep 1, 1995
;       related version of root zone:   1995090100
;
;
; formerly NS.INTERNIC.NET
;
.                        3600000  IN  NS    A.ROOT-SERVERS.NET.
A.ROOT-SERVERS.NET.      3600000      A     198.41.0.4
;
; formerly NS1.ISI.EDU
;
.                        3600000      NS    B.ROOT-SERVERS.NET.
B.ROOT-SERVERS.NET.      3600000      A     128.9.0.107
;
; formerly C.PSI.NET
;
.                        3600000      NS    C.ROOT-SERVERS.NET.
C.ROOT-SERVERS.NET.      3600000      A     192.33.4.12
;
; formerly TERP.UMD.EDU
;
.                        3600000      NS    D.ROOT-SERVERS.NET.
D.ROOT-SERVERS.NET.      3600000      A     128.8.10.90
;
; formerly NS.NASA.GOV
;
.                        3600000      NS    E.ROOT-SERVERS.NET.
E.ROOT-SERVERS.NET.      3600000      A     192.203.230.10
;
; formerly NS.ISC.ORG
;
.                        3600000      NS    F.ROOT-SERVERS.NET.
F.ROOT-SERVERS.NET.      3600000      A     39.13.229.241
;
; formerly NS.NIC.DDN.MIL
;
.                        3600000      NS    G.ROOT-SERVERS.NET.
G.ROOT-SERVERS.NET.      3600000      A     192.112.36.4
;
; formerly AOS.ARL.ARMY.MIL
;
.                        3600000      NS    H.ROOT-SERVERS.NET.
H.ROOT-SERVERS.NET.      3600000      A     128.63.2.53
;
; formerly NIC.NORDU.NET
; 
.                        3600000      NS    I.ROOT-SERVERS.NET. 
I.ROOT-SERVERS.NET.      3600000      A     192.36.148.17 
; End of File 

  1. Enable named and reboot the station with the following commands:

    chkconfig named on

    reboot


Next | Prev | Up | Top | Contents | Index