RE: How to modify "A" records on the slave when master is down?

2008-12-04 Thread Jeff Lightner
sh into the box? From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alberto Colosi/SI/RM/GSI/it Sent: Wednesday, December 03, 2008 5:25 PM To: Mike Bernhardt Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: How to modify "A" records on the slave when master is down?

Re: How to modify "A" records on the slave when master is down?

2008-12-03 Thread Fr34k
years. HTH -- Chris - Original Message From: Mike Bernhardt <[EMAIL PROTECTED]> To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, December 3, 2008 4:59:34 PM Subject: RE: How to modify "A" records on the slave when master is down? What we used to do is we had 2 masters

RE: How to modify "A" records on the slave when master is down?

2008-12-03 Thread Mike Bernhardt
By popular demand, here is the perl script I used: #!/usr/bin/perl print "reloading BIND...\n"; system "rndc reload"; print "copying db files to ns2...\n"; $a = `/bin/ping -c 1 ns2`; if ($a =~ /64 bytes/) { system "sudo -u named scp -B /var/named/var/named/db.zone1 /var/named/var/

RE: How to modify "A" records on the slave when master is down?

2008-12-03 Thread Alberto Colosi/SI/RM/GSI/it
NE'S BUSINESS Member of IBM Information Security WW CoP "Mike Bernhardt" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 03/12/2008 22.59 To <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> cc Subject RE: How to modify "A" records on the slave when master is dow

RE: How to modify "A" records on the slave when master is down?

2008-12-03 Thread Mike Bernhardt
What we used to do is we had 2 masters. After an update was done on one of them, we ran a perl script that would scp the db files to the other and then send rndc reload to itself and the other master. That way both were always up to date. It seems like if you had one master and one slave at each da

Re: How to modify "A" records on the slave when master is down?

2008-12-03 Thread Chris Buxton
On Fri, 2008-11-21 at 21:10 -0800, [EMAIL PROTECTED] wrote: > Hello. I have two geographically different datacenters. Each > datacenter has two instances of BIND. > > There is one master out of these four. The zones will have multiple > "A" records (pointing to the two datacenters to provide so