Website not showing after DNS redirect and pinging fails

March 13, 2018 362 views
DNS Ubuntu 16.04

Hello.

Yesterday I made a nameserver change to make nunoo.dk show a new website that is on my Digital Ocean server. It's a Nginx + Nodejs setup. The thing is, when I ping www.nunoo.dk it's actually sending and receiving on the correct IP address (my DO one), but when I ping nunoo.dk (without www) the request timeouts and the IP is an old one.

I've created A records for both with and without www, and I've also redirected www. to non-www via Nginx.

The website is showing an old one. But - before I made the www to non-www redirect in Nginx, I could get the new website to show by using www.nunoo.dk.

I've checked the nameservers, and they look correct, and also, when I use a DNS tool (https://mxtoolbox.com/Supertool.aspx?action=a:nunoo.dk:all) everything looks OK.

Do I just have to wait, or what should I do now?

1 Answer
ryanpq MOD March 14, 2018
Accepted Answer

This sounds to me like you were experiencing some odd results while your changes propagated. DNS resolvers used by ISPs cache results for a while so they don't have to go back to query the authoritative nameserver for every request and while this is usually not too long during the time when your ISP has an older record and when it updates to fetch the new one you may see some issues like this.

My own testing shows your site working properly both with and without the www at this time.

  • Hey @ryanpq

    Sorry for being late on this. I forgot about this post because it's working now.
    Thank you for taking time to answer my question.

Have another answer? Share your knowledge.