Domain goes to localhost

12

2

I have a domain named ejn.nu. On some computers and networks, it sends the user to localhost when it should send the user to my server. When i do "ping", it shows the correct ip for my server and when i do "dig", it shows the correct ip. But when i go to the page in a browser, it just shows me localhost. I belive its something with my DNS server, because it worked before i moved to own bind-servers.
The computers do not have any type of dns-cache.

Do anyone know why?

Joar Classon

Posted 2014-11-11T08:26:37.520

Reputation: 125

It would be useful if you could share your DNS settings for this domain – Tim Radcliffe – 2014-11-11T08:35:58.520

Answers

31

This is what dig any ejn.nu returns:

ejn.nu.                 60      IN      SOA     ejn.nu. root.ejn.nu. 18 604800 86400 2419200 604800
ejn.nu.                 60      IN      A       217.211.179.99
ejn.nu.                 60      IN      NS      ns2.sudonet.net.ejn.nu.
ejn.nu.                 60      IN      NS      ns1.sudonet.net.ejn.nu.
ejn.nu.                 60      IN      AAAA    ::1

Notice the AAAA record. That's the IPv6 address, and ::1 is the loopback address in IPv6.

Basically, any client that prefers IPv6 will request/see the AAAA record and visit the loopback interface.

As for fixing this, it depends on how your DNS server is configured and whether you want to support IPv6 on your site. You'll want to either provide the correct IPv6 address, or remove the record altogether.

Bob

Posted 2014-11-11T08:26:37.520

Reputation: 51 526

5Personally, I just now got ejn.nu. 60 IN AAAA ::ffff:217.211.179.99 -- why not just remove the AAAA RR entirely...? – a CVn – 2014-11-11T13:36:26.907