How to change all domain names' IP in one batch

  • Thread starter Thread starter Chris
  • Start date Start date
C

Chris

I have installed a DNS server with 500 domain names. I need to change all
the domain names ( www.domain.com) to a new IP addresses. I don't want to
change it one by one. How can I do it in batch?

Please help.

Chris
 
Chris said:
I have installed a DNS server with 500 domain names. I need to change all
the domain names ( www.domain.com) to a new IP addresses. I don't want to
change it one by one. How can I do it in batch?

Assuming there is a predictable relationship between
the two address ranges (e.g., x.y.z.5 -> j.k.l.5):

Probably simplest is to make it a regular Primary (if
not), make sure the file is saved, edit (search and
replace) or use a script replacement like a Perl
program to fix up the file and reload it.

You could also write a DNSCmd script to do it but
I know that would be harder for ME to do from
scratch (but then I do a LOT of Perl or VBS.)
 
Back
Top