localhost in zonefile?
Peter Koch pk at TechFak.Uni-Bielefeld.DE
Wed Aug 11 13:38:29 CEST 1993
Hello, Dave Morton wrote: > Hi Arthur, > > Don't know about HP_UX but it's generally recommeded to have this in so you > don't get surpises, after all, it's your loopback (local) host and you are > authorative for it, none else, including root servers. You'll also need a: > > IN PTR localhost. > > in there as well. NO. First, this PTR record belongs into the zone 0.0.127.in-addr.arpa (or 127.in-addr.arpa, whichever you prefer) for the address 127.0.0.1 . Second, it is strongly recommended (see BIND operations guide) not to let it point to the fake top level domain 'localhost.' but to some localhost.<my>.<dom>.<ain> . For the latter there should be an A-RR for the IP-address 127.0.0.1 . To answer the original question: Yes, you should have an entry localhost A 127.0.0.1 in your (forward) zone files. Note that the current origin will be appended to 'localhost' in the example, so you really will produce an entry like localhost.ucd.ie (if ucd.ie were this current origin) with this. Regards, Peter
[ dns-wg Archives ]