green0range
green0range

Reputation: 607

AWS, Recover from IP address change

I want to recover from IP address change. My website used to be running fine, but after I allocated elastic IP address, it stopped working I want the website to be running again with new IP address. So my question is: What steps must I consider and where should I look at first to recover from IP address change?

I can't access that website with old DNS address or new DNS address. Is this DNS issue?

Notes that might be helpful:

Upvotes: 0

Views: 525

Answers (2)

Rico
Rico

Reputation: 61551

Just as an add on. The problem is this configuration change in your nginx file:

server {
    listen 80;
    server_name  my.old.domain.com;
    ...
}

Has to be changed to:

server {
    listen 80;
    server_name  my.new.domain.com;
    ...
}

So the DNS change can take up to 48 hours to propagate (it usually takes 10-30 minutes from experience, depending on your DNS provider)

When the DNS server wasn't propagated nginx would still redirect you to my.old.domain.com

Hope this helps.

Upvotes: 1

green0range
green0range

Reputation: 607

Okay, I think it was just time issue.

After changing web server configuration (nginx), I waited around 28 hours and it suddenly started working again.

Source: Subdomain IP address changed but client still getting directed to old site

Upvotes: 1

Related Questions