Question

Unable to configure DNS properly

I bought a domain on go daddy, edited the dns records to ns1, ns2 and ns3.digitalocean.com, added a domain to my droplet, added an A record with the parameters ‘@’ and the ip address of my droplet, saved everything. I still can’t get the domain to resolve, I installed apache on the droplet and I can access it if I enter the IP address of the droplet. What am I doing wrong here ?

Show comments

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.

Accepted Answer

There are two common reasons why issues are encountered at this stage of DNS configuration. As @gc948486cbc56b8 said, it sounds like you’ve done everything right.

  • If you created your domain in our DNS system with a subdomain like www.domain.com rather than as domain.com A records under it will be creating second level subdomains like sub.www.domain.com rather than regular ones like sub.domain.com

  • When you first register a domain it may take up to 24-48 hours for it to propagate depending on the registrar. When pointing the domain to a new set of nameservers there can be a similar propagation time at first before the domain begins working from everywhere.

You can use the nslookup tool to check that your records are returned correctly from the authoritative server. nslookup offers an interactive mode where you can specify the nameservers to look up an address on so you can see that they are returning the right data.

ryan@workstation:~$ nslookup
> server ns1.digitalocean.com
Default server: ns1.digitalocean.com
Address: 173.245.58.51#53
> digitalocean.com
Server:		ns1.digitalocean.com
Address:	173.245.58.51#53

Name:	digitalocean.com
Address: 198.211.111.227
Name:	digitalocean.com
Address: 198.211.111.226

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.