Does digital oceans droplet not use their Nameservers?

February 6, 2019 262 views
Deployment DigitalOcean Ubuntu 16.04

My problem is I created a mysql droplet and added a domain to it. No problem there. I can reach it from my home computer url for the mysql droplet is like mysql.test123.com.
Next thing I did, was creating an asp.net Web API and deployed it with in memory database. Neither a problem.
Now I tried to make the api use my mysql database via the url mysql.test123.com. And there is the problem it can’t reach the host.
Next thing is I tried to ping the ip. worked like a charm. Tried to ping mysql.test123.com - unknown host. I can’t even ping my own domain

So any pointers to solutions?

1 Answer
unixynet February 6, 2019
Accepted Answer

Hi

Some plausible issues:

  1. Local DNS resolution isn’t configured (resolvers not setup). Does ping google.com work? If not, this is the issue here. Check out this article on how to fix that:

https://www.techrepublic.com/article/how-to-set-dns-nameservers-in-ubuntu-server-18-04/

  1. Your domain DNS isn’t functional yet. This is likely an issue if you just bought this domain recently and name servers haven’t had a chance to settle in. Not much you can do here besides waiting for DNS propagation.

Cheers

Have another answer? Share your knowledge.