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?
Correct, if you want to switch a webserver behind www.example.com to a different box with a different IP, you just need to update the A Record for www.example.com 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.
Keep the PTR record for your mailserver.