Question

Domain not working

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:

138.197.1.138 compasmen.com

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

nslookup compasmen.com Server: 172.25.24.2 Address: 172.25.24.2#53

** server can’t find compasmen.com: NXDOMAIN

Could you please advise how to make it work?


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

what about setting an A up for https?

@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

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.

ns1.digitalocean.com
ns2.digitalocean.com
ns3.digitalocean.com

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