Not really sure where to put this, so I figured this should be a good place.
Anyway, probably you have already find yourself in a situation when you have to move a client from one server to another. So to minimize the new ip propagation time one should edit clients dns zones and put as minimal ttl as one can afford.
After account migration, dns records propagate much faster then usual and client don't even notice they have been moved.
When it comes to one account it's all fair and simple, edit zone, wait for 24h, migrate the account, edit zone back. But what when you have like 200+ accounts to migrate, 400+ dns zones, and it's absolutely vital that they have minimum dns propagation time.
Ofc. it would take ages to edit all those zones.
So... faced with so much migration these days, I decided to write this script that should help me in that dns zone editing job.
Script will edit ttl for single or a list of domain names. It changes the zone db file in /var/named/ (if you have your db files placed anywhere else rewrite that). It sets desired ttl, increments the serial, and then invokes cpanel's perl script for that zone dns cluster sync.
It should be pretty easy to use.
It also requires installed http://search.cpan.org/~simonflk/DNS...S/ZoneParse.pm perl module.
BEFORE YOU USE THIS SCRIPT, MAKE A BACKUP COPY OF YOUR DATA.
USE THIS SCRIPT AT YOUR OWN RISK, AUTHOR TAKES NO RESPONSIBILITY FOR ANY DAMAGE CAUSED BY USING IT.
Ps. Any feedback would be more than welcomed



LinkBack URL
About LinkBacks
Reply With Quote







