Gentlebeings - Forgive the intrusion, but I have a DNS question that I think you should be able to provide a definitive answer on (something I can't get from other sources). The question is this: should I have an entry such as
localhost A 127.0.0.1
in a zonefile? This seems to me somewhat silly, but I have seen examples in various places showing it. Also, I've been told that HP-UX v9 breaks if it isn't in.
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. an idea might also be to stick in a: loghost IN CNAME localhost. for the worst case as well. Cheers, Dave
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
participants (2)
-
Dave Morton
-
Peter Koch