|
A DNS server needs a list of root name servers in order to locate authorative name servers and answer queries. The root name servers do not often change but is is good practice to update the file from time to time. The command "dig . ns > db.cache" will produce an updated file. The following example shows correct syntax in named.conf for loading the file. |
Example named.conf
zone "." {
type hint;
file "master/db.cache";
};
Example db.cache
; <<>> DiG 9.2.1 <<>> . ns
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54331
;; flags: qr rd ra; QUERY: 1, ANSWER: 13, AUTHORITY: 0, ADDITIONAL: 1
;; QUESTION SECTION:
;. IN NS
;; ANSWER SECTION:
. 485721 IN NS F.ROOT-SERVERS.NET.
. 485721 IN NS G.ROOT-SERVERS.NET.
. 485721 IN NS H.ROOT-SERVERS.NET.
. 485721 IN NS I.ROOT-SERVERS.NET.
. 485721 IN NS J.ROOT-SERVERS.NET.
. 485721 IN NS K.ROOT-SERVERS.NET.
. 485721 IN NS L.ROOT-SERVERS.NET.
. 485721 IN NS M.ROOT-SERVERS.NET.
. 485721 IN NS A.ROOT-SERVERS.NET.
. 485721 IN NS B.ROOT-SERVERS.NET.
. 485721 IN NS C.ROOT-SERVERS.NET.
. 485721 IN NS D.ROOT-SERVERS.NET.
. 485721 IN NS E.ROOT-SERVERS.NET.
;; ADDITIONAL SECTION:
J.ROOT-SERVERS.NET. 572121 IN A 192.58.128.30
;; Query time: 40 msec
;; SERVER: 192.168.0.1#53(192.168.0.1)
;; WHEN: Fri Aug 20 05:44:55 2004
;; MSG SIZE rcvd: 244
|
Consult the administrator's reference at www.isc.org for additional details. |
You are visitor number 811