• Contact: +91-08069248012

Change IP in named of DNS


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:
New IP:

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

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