Introduction
Sometimes you need to change all IP addresses referenced in a DNS zone file. You can use the /scripts/swapip script to accomplish this goal
Procedure
The /scripts/swapip takes a source IP, destination IP, FTP IP, and a comma-separated domain list:
[root@server ~]cPs# /scripts/swapip 192.0.2.2 203.0.113.2 203.0.113.2 example.com,example2.com
In the above example, the DNS zones for example.com and example2.com would have all the DNS entries updated from 192.0.2.2 to 203.0.113.2.
Comments
0 comments
Article is closed for comments.