WordPress site on droplet only works if I enter the IP address. Domain isn't working.

I’m hoping to find some help with this one. I finally got my wordpress site up and running, but now it will only work if I enter my droplet server’s IP address. My domain gives a page not found error when I try access it, saying the DNS address could not be found. However the nameservers are set to be ns1, ns2, and the website URL was working fine prior to setting up wordpress (it loaded the typical blank apache page before).


Have you add the zone in the DO panel? Also check the database in case you need to update the base url and site url. You can use tool such as wp-cli for search and replace string in the database.

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

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.


Indeed as Asfihani mentioned you need to make sure that you have added a DNS zone in your DO panel and make sure that your Wordpress site and home URLs as setup correctly.

Also note that after each DNS change it can take between 1 and 72 hours for the DNS cache to clear over the Globe.

You could use this site here to check the status of your DNS records:

Hope that this helps! Regards, Bobby