PDA

View Full Version : localhost not resolving


fernvalley
17th October 2006, 01:19
When I run a dns checker, like sleuth, the only error I get is as follows:

Checking mapping of localhost
-> localhost. 86400 IN A 172.0.0.1
### Error: Invalid resource records for localhost ns1.example.com [RFC1912/4.1]
### Warning: Reverse mapping of 127.0.0.1 at ns1.example.com doesn't work [RFC1912/4.1]

Is there a way to add this through mydnsconfig?

Thanks
J.

till
17th October 2006, 10:06
Localhost is normally not added in a DNS server, it is added in your /etc/hosts file.

fernvalley
17th October 2006, 16:20
A localhost zone would look like this:

loalhost. 86400 IN SOA IN SOA your.dns.server. hostmaster.your.domain. 2006101700 86400 3600 36000000 7200
localhost. 86400 IN NS localhost.
localhost. 86400 IN A 127.0.0.1

The PTR (Pointer Record) will go into the zone 127.in-addr.arpa.,
which should also be hosted on your DNS Server(s):

127.in-addr.arpa. 86400 IN SOA your.dns.server. hostmaster.your.domain. 2006101700 86400 3600 36000000 7200
127.in-addr.arpa. 86400 IN NS localhost.
* 86400 IN PTR localhost.