localhost not resolving

Discussion in 'General' started by fernvalley, Oct 17, 2006.

  1. fernvalley

    fernvalley New Member

    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.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Localhost is normally not added in a DNS server, it is added in your /etc/hosts file.
     
  3. fernvalley

    fernvalley New Member

    Solved it!

    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.
     

Share This Page