Re: Mass Update of DNS Records

This is a discussion on Re: Mass Update of DNS Records within the Bind Users forums, part of the DNS and Related Forums category; --On 28. august 2003 11:14 +0000 Jake <jake@dontmailme.coma> wrote: > I need to change the ...


Go Back   Usenet Forums > DNS and Related Forums > Bind Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-28-2003
Eivind Olsen
 
Posts: n/a
Default Re: Mass Update of DNS Records

--On 28. august 2003 11:14 +0000 Jake <jake@dontmailme.coma> wrote:
> I need to change the IP address of about 200 DNS records and also increase
> the serial number by one for each. Is there a script out there to do
> this?
> Basically I need it done like this:
> 1) Look through all zone files for IP address X
> 2) If IP address X found, replace it with Y
> 3) Increment serial number for this record


There are some things you didn't mention. Most imporantly, how will you
change the zonefiles? Through editing of the files on disk? If your zones
handle dynamic updates (for example, through the nsupdate command) I would
have scripted something.
Personally, I'd probably write a Perl script using the Net::DNS module to
AXFR a zone, look for the records that need updating and then do dynamic
updates to update it. One advantage to this approach is that you won't have
to update the serial number - the dynamic update process will take care of
that.

--
Regards / Hilsen
Eivind Olsen
<eivind@aminor.no>

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:55 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0