Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have to make a few changes to some dns records for a domain I am responsible for and wanted to double check my thinking. Currently the domain is set up with NS, A, PTR and MX records.

What I need to accomplish is moving web traffic from ip X to ip Y. I can not do so internally because there are a number of other domains that rely on this ip address now. I prefer not to proxy the traffic using apache either. So..

The only thing that needs to change in my opinion is the A and PTR record. I just need to be able to move the web traffic from one ip to another. Nameservers will not change so no reason to change the NS records, mail is not changing so I do not want to move the MX record.

Does this look right?

share|improve this question
up vote 3 down vote accepted

Correct, if you want to switch a webserver behind to a different box with a different IP, you just need to update the A Record for to point at the new IP, and update the PTR records for both the old and new IP to reflect the new reality. Run both simultaneously for 24 hours to allow the world's caches to expire, and then you can take the old webserver down.

share|improve this answer

Keep the PTR record for your mailserver.

share|improve this answer
...and you might also need to add/update spf record – rvs Mar 22 '11 at 13:34
so for mail to function properly PTR and MX are needed? I guess I was misunderstanding that one. Thanks all – grantk Mar 22 '11 at 13:41
Your PTR record should match your mailname name (Response you get when you telnet to localhost port 25 on the server) – Mark Mar 22 '11 at 14:02
I have a different PTR entry and have had for a day or so now. Mail still works, I believe in this case mail may not really be a problem seeing as this domain is only used for email aliases. ummm, however I just looked at the domain that handles all the email and it has no PTR. – grantk Mar 24 '11 at 12:35

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.