Can't reach WordPress installation after changing IP address for domain

0

I had a WordPress site located on a VPS, say the VPS's IP is 192.168.0.1.

At Namesilo I bought, for example www.example.com, and bound it to 192.168.0.1.

A few days ago my old IP – 192.168.0.1 – wasn't available anymore, so I changed it to 192.168.0.2, and went to Namesilo to change my domain's corresponding IP to the new one 192.168.0.2.

When I open a browser and type www.example.com like before, I can't open my WordPress site.

What do I have to do?

PS: my web service is apache2.0 on centos 6 , when I open

http://192.168.0.2/wordpress/index.php 

it works

but if I open http://www.example.com

in apache's access_log , it show

5.188.210.31 - - [03/Jun/2019:10:44:19 -0400] "GET / HTTP/1.0" 403 4961 "http://www.example.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36"

yangl

Posted 2019-06-03T13:38:20.920

Reputation: 115

Usually you don't have to do anything. But your question is very unclear. What web server are you using? How have you configured it? What error do you get? Does the domain resolve to the correct IP address? Does your web server register the client trying to access the website? (Check the server logs.) – slhck – 2019-06-03T13:49:22.423

"I change it to 192.168.0.2" How did you change the IP? Where did you get the new IP from? – user4556274 – 2019-06-03T13:51:02.900

hello slhck , i have change my topic for more clear , for this question : Does the domain resolve to the correct IP address? I think maybe it is the reason why I can not visit my worpress , but I do not know how to solve it – yangl – 2019-06-03T14:47:56.793

Answers

0

I was searching about this on internet, i found the following useful information:

https://magicpress.net/documentation/dns/how-to-configure-dns-for-your-domain-name-on-namesilo/

I read that there Will be 24-48 hours of DNS propagation during which your website may not be available.

user1039968

Posted 2019-06-03T13:38:20.920

Reputation:

yes , seems is propagation problem , now it can be visit normally – yangl – 2019-06-04T02:45:22.730

0

Looks like propagation. Try the https://hosts.cx/ service. Enter your domain and the domain's IP and if you're able to see the website, then you'll just have to wait. That is, of course, assuming your domain A record is changed correctly.

deimos

Posted 2019-06-03T13:38:20.920

Reputation: 101

0

If it's the propagation you're waiting on .. Next time a few days ahead of time, change your DNS TTL to a lower number 3600 is popular.. then your change will be almost instant.

Also highly recommend using a 3rd party DNS service like Cloudflare! then you can move servers and IPs really simply and quickly when needed, also speeds up sites!

orionsweb

Posted 2019-06-03T13:38:20.920

Reputation: 26