Online Documentation Server
 ПОИСК
ods.com.ua Web
 КАТЕГОРИИ
Home
Programming
Net technology
Unixes
Security
RFC, HOWTO
Web technology
Data bases
Other docs

 


 ПОДПИСКА

 О КОПИРАЙТАХ
Вся предоставленная на этом сервере информация собрана нами из разных источников. Если Вам кажется, что публикация каких-то документов нарушает чьи-либо авторские права, сообщите нам об этом.




Writing the Master Files Contents
Next: Verifying the Name Server Up: Running named Previous: The DNS Database Files

Writing the Master Files

Figures-gif, gif, gif, and gif give sample files for a name server at the brewery, located on vlager. Owing to the nature of the network discussed (a single LAN), the example is pretty straightforward. If your requirements are more complex, and you can't get named going, get ``DNS and BIND'' by Cricket Liu and Paul Albitz ([]).

The named.ca cache file shown in figure-gif shows sample hint records for a root name server. A typical cache file usually describes about a dozen name servers, or so. You can obtain the current list of name servers for the root domain using the nslookup tool described toward the end of this chapter.gif

Figure: The named.ca file.

;
; /var/named/named.ca          Cache file for the brewery.
;                We're not on the Internet, so we don't need
;                any root servers. To activate these
;                records, remove the semicolons.
;
; .                99999999   IN    NS  NS.NIC.DDN.MIL
; NS.NIC.DDN.MIL   99999999   IN    A   26.3.0.103
; .                99999999   IN    NS  NS.NASA.GOV
; NS.NASA.GOV      99999999   IN    A   128.102.16.10


Figure: The named.hosts file.

;
; /var/named/named.hosts       Local hosts at the brewery
;                               Origin is vbrew.com
;
@                   IN  SOA   vlager.vbrew.com. (
                             janet.vbrew.com.
                       16         ; serial
                        86400      ; refresh: once per day
                        3600       ; retry:   one hour
                        3600000    ; expire:  42 days
                        604800     ; minimum: 1 week
                         )
                         IN  NS    vlager.vbrew.com.
;
; local mail is distributed on vlager
                         IN  MX    10 vlager
;
; loopback address
localhost.          IN  A     127.0.0.1
; brewery Ethernet
vlager              IN  A     191.72.1.1
vlager-if1          IN  CNAME vlager
; vlager is also news server
news                IN  CNAME vlager
vstout              IN  A     191.72.1.2
vale                IN  A     191.72.1.3
; winery Ethernet
vlager-if2          IN  A     191.72.2.1
vbardolino          IN  A     191.72.2.2
vchianti            IN  A     191.72.2.3
vbeaujolais         IN  A     191.72.2.4


Figure: The named.local file.

;
; /var/named/named.local       Reverse mapping of 127.0.0
;                               Origin is 0.0.127.in-addr.arpa.
;
@                   IN  SOA   vlager.vbrew.com. (
                             joe.vbrew.com.
                            1          ; serial
                            360000     ; refresh: 100 hrs
                            3600       ; retry:   one hour
                            3600000    ; expire:  42 days
                            360000     ; minimum: 100 hrs
                       )
                       IN  NS    vlager.vbrew.com.
1                     IN  PTR   localhost.


Figure: The named.rev file

;
; /var/named/named.rev         Reverse mapping of our IP addresses
;                               Origin is 72.191.in-addr.arpa.
;
@                   IN  SOA   vlager.vbrew.com. (
                             joe.vbrew.com.
                            16         ; serial
                            86400      ; refresh: once per day
                            3600       ; retry:   one hour
                            3600000    ; expire:  42 days
                            604800     ; minimum: 1 week
                         )
                       IN  NS    vlager.vbrew.com.
; brewery
1.1                 IN  PTR   vlager.vbrew.com.
2.1                 IN  PTR   vstout.vbrew.com.
3.1                 IN  PTR   vale.vbrew.com.
; winery
1.2                 IN  PTR   vlager-if1.vbrew.com.
2.2                 IN  PTR   vbardolino.vbrew.com.
3.2                 IN  PTR   vchianti.vbrew.com.
4.2                 IN  PTR   vbeaujolais.vbrew.com.



Andrew Anderson
Thu Mar 7 23:22:06 EST 1996


With any suggestions or questions please feel free to contact us