localhost and rndc.conf in BIND 9

Simon Waters Simon at wretched.demon.co.uk
Tue Dec 31 21:43:34 UTC 2002


Doug Barton wrote:
> 
> Simon Waters wrote:
> > Jun Wang wrote:
> >
> >>I am using BIND 9 and wondering in which zone file I
> >>can put "localhost" record, even I have it in
> >>/etc/hosts? For example:
> >>localhost.   IN    A    127.0.0.1
> >
> >
> > "localhost." belongs in the root zone so "you" probably can't
> > put it there.
> 
> Incorrect. There is no localhost. zone in the real root zone,

I never said there was, just that is where it would go.

> and there
> is nothing stopping you from creating a localhost zone on your local server:

No, but if you think this constitutes putting it in the root
zone your view of the DNS is somewhat different to mine ;-)


More information about the bind-users mailing list