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

November 2, 2017 1.1k views
WordPress

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, n3.digitalocean.com and the website URL was working fine prior to setting up wordpress (it loaded the typical blank apache page before).

1 comment
  • 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.

1 Answer

Hello,

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:

http://whatsmydns.com

Hope that this helps!
Regards,
Bobby

Have another answer? Share your knowledge.