Some hints on DNS config?

Gregory Hicks ghicks at
Sun Jun 26 15:37:23 UTC 2005

> Date: Sun, 26 Jun 2005 15:04:17 +0100
> From: Kimi Ostro <kimimeister at>
> To: bind-users at
> Subject: Some hints on DNS config?
> Cc: kimimeister at
> Hello list,
> I have been playing around with BIND for sometime now and have a
> "nice" caching/forwarder + authorative nameserver setup, hence you can
> I was reading and was a
> little stumped on:
> * "Your named.conf file should contain a hint for the root zone, a
> master zone for 0.0.127.IN-ADDR.ARPA, as well as master zones for any
> private..."
> I don't quite get the reasoning behind this?

 zone "" in {
        type master;
        file "db.127.0.0";
        notify no;

The db.127.0.0 file contains:

@ IN  SOA metis.Cadence.COM. root.metis.Cadence.COM. ( 
         2002120212   ; serial
         1H           ; refresh
         15M          ; retry
         1W           ; expire
         1H )         ; minimum

@  IN  NS       	IN  PTR   localhost.

The db.127.0.0 file is so that the local loopback interface can be 
correctly resolved while the following definition provides the "salt" 
necessary to get bind running...

 zone "." in {
        type hint;
        file "db.cache";

In Bind 9.x, the root zone "hints" are compiled into BIND so the
necessity for the hint zone is not as stringent, but BIND works better
if you tell it what to expect.  The hints file does not need frequent
updating since, as long as ONE server is reachable, Bind will populate
the rest from info received from the reachable server.  (Maybe update
once every two or three years or so...)

You can generate a hints file with dig thusly:

dig ixfr . >db.cache

You should get something like:

; <<>> DiG 2.0 <<>> ixfr . 
; (1 server found)
;; res options: init recurs defnam dnsrch
;; got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 10
;; flags: qr rd; Ques: 1, Ans: 0, Auth: 13, Addit: 13
;;	., type = A, class = IN

.	172800	NS
.	172800	NS
.	172800	NS
.	172800	NS
[...snip 9 records...]

;; ADDITIONAL RECORDS:	172800	A	172800	A	172800	A	172800	A
[...snip 9 records...]

;; FROM: well to SERVER:
;; WHEN: Sun Jun 26 08:21:17 2005
;; MSG SIZE  sent: 17  rcvd: 436

Gregory Hicks

Gregory Hicks                           | Principal Systems Engineer
Cadence Design Systems                  | Direct:   408.576.3609
555 River Oaks Pkwy M/S 6B1             | Fax:      408.894.3479
San Jose, CA 95134                      | Internet: ghicks at

I am perfectly capable of learning from my mistakes.  I will surely
learn a great deal today.

"A democracy is a sheep and two wolves deciding on what to have for
lunch.  Freedom is a well armed sheep contesting the results of the
decision." - Benjamin Franklin

"The best we can hope for concerning the people at large is that they
be properly armed." --Alexander Hamilton

More information about the bind-users mailing list