Changed droplet name now I can't connect to website even if I use the IP address

Posted April 14, 2019 1.3k views
UbuntuWordPressUbuntu 18.04

I created my first droplet using my first domain.

Now I bought a new domain and point the DO nameservers to that domain and delete nameservers on the old domain.

My droplet name is using the first domain so what I did is change the droplet name to the new domain.

Now my website shows We can’t connect to the server at

And it still shows the first domain even if I typed the new domain on the browser.

Please help.

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.

Submit an Answer
1 answer

Are you still having problems?

You need to make sure that the DNS settings on your domain registrar (123reg, 1&1 etc) have an A record pointing to your server’s IP address for the new domain.

Your saying that you can’t access the website using the IP address - this could mean that your DNS changes are still propagating and its trying to take you to the old domain name. Either wait 24-48 hours for the DNS to propagate.

Or add this to your wp-config.php file , below the salts security keys
replacing with your actual domain name