0

I currently have a domain pointing to the IP of a server I want to get rid of.

On another IP, I have my server set up entirely, and I now want to (temporarily) get all visitors to this new server, without them noticing a difference in url.

I am aware I can just change the A record of my domain's DNS, but since I want to perform a temporary test for a few hours, I need the change to be immediate. I understand that A-record changes can take quite a while (due to the TTL that I cannot change) before being propagated to all users.

Is there any other solution on how to do that? Can something like this be done with a rewrite?

2 Answers 2

2

You can setup the new server to act as a transparent http proxy for your old server, then flip the DNS. When you see clients starts to access the new, remove the proxy configuration temporarily.

If the new server is just a temporarily server, configure the old server to act as a proxy to the new server and leave the DNS as it is.

1
0

If you can't change the TTL of your domain and you don't want a different URL, the answer is proxying.

The exact instructions will depend on what you have installed and what you want to use but Apache, nginx, Varnish, Squid and HAProxy are a few examples of software that can do this for you. Set one of them up and you can switch between using the two servers as backends as often as you want.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .