Domain not working

Posted June 7, 2017 13.3k views

HI, I have changed the name servers on the name registrar to the digitalocean’s nameservers.

I have set up an A record in the control panel using @ directing to the droplet but this doesn’t work. It has been over 24 hours.

The website on droplet is up and running and works perfectly fine if I add the following line to my /etc/hosts file:

But if I remove this line from my hosts file it stops working immediately. When trying to do nslookup I’m getting:


** server can’t find NXDOMAIN

Could you please advise how to make it work?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
5 answers

Hi @petrovolexandr

It seems like your domain is inactive/deactivated. When I search the WhoIs register, your domain says it’s using the three DigitalOcean name servers.
But when I look up DNS details for your domain - dig NS - I’m not getting any information at all.
Which registrar are you using?

I see that the domain was registered at in February and whois looks fine.

Some Whois/DNS updates take more than 24 hours, but not more than 48 hours. If 48 hours goes by, contact Support regarding your DNS entries.

As a side note, it helps to also add the ‘www’ A record to be thorough.


On my end, I’m not seeing any active DNS set for the domain, or valid A/CNAME entries.

Even if the physical entries (A/CNAME) were not showing up just yet, the name servers should when doing query. My guess is that the name servers didn’t take or there was another type of error during the submission at your registrar.

I would double check to ensure that you’re using the following as name servers at your domain registrar.

… as well as valid DNS for the domain once setup through the DigitalOcean control panel.

@jtittle I double and triple checked the name servers at my domain registars as well as domain settings in networking section on digitalocean. Everything looks right, and yet it doesn’t work.

  • @petrovolexandr

    Doing a whois on the domain does show that you’ve set the DNS correctly, though when doing standard DNS lookups and running dig on the domain, nothing is being returned.

    Can you take a screenshot of the domain as it shows in the networking panel? As in, the list of DNS records for the domain via the DigitalOcean control panel? We can see if there’s an issue there. If not, then it would appear that it may be an issue at the registrar themselves and I would recommend getting in touch with them to see if there’s an issue on there end.

    I’ve registered domains with about 20 registrars over the last 10 years and I’ve honestly never ran in to an issue where, once set, the DNS isn’t showing up when querying for it.

what about setting an A up for https?