• Contact: +91-08069248012

Change IP in named of DNS

Back

If you have switched to a new service provider and all DNS records need to be adjusted to the new IP's, I have a command for you that fixes it in a few seconds time.

Old IP: 192.168.1.10
New IP: 10.0.0.25

# perl -pi -e 's/192.168.1.10/10.0.0.25/' /var/named/*.db


Off course this command can also be used on any other file you need to mass change data.