Search Again:

Re: Need help on how to update second DNS

From: Men & Mice Support
Date: Thursday, July 31, 2003
Time: 4:32:38 pm

The problem is most likely that it's still trying to find the master
server at the old address, and so hasn't received the new data from
the master server.

The way to make the necessary change in QuickDNS is, open the zone
options for the zone. You will see some way to set the master server
IP address for the slave server. (The method used varies between
versions of QuickDNS.)

However, this can be tedious and error-prone if you have more than a
handful of zones. Luckily, there's a simple shell command to make the
change - this will work on any Unix-type server OS that has perl
installed.

Step 1: Navigate to the "zoneopt" directory. On Mac OS X, this is
/var/named/conf/zoneopt, and you can navigate there as follows:

cd /var/named/conf/zoneopt

Step 2: Execute this command with root privileges (filling in the
appropriate old and new IP addresses) (on Mac OS X, gain root
privileges by prefixing the command with "sudo"):

perl -pi -e 's {old address} {new address}' *

Step 3: Restart the DNS service. On Mac OS X, this can be done as follows:

sudo qdnscontrol stopnamed startnamed
____________________________________________________________________
Chris Buxton Men & Mice
Customer Support Specialist Making DNS Easy

At 11:44 AM +0200 7/31/03, Andreas Carlsson wrote:
>Hello list!
>
>As some of you remember we recently switched IP on our servers. For
>the DNS's I run the Applescript "Find & Replace IP Address" which is
>a part of QuickDNS 4.
>
>So far so good. However, I just realized that DNS2 still has the old
>DNS-information (ie the old IP's)!
>
>What can I do to fix this?
>
>Thanks,
>/andreas




Messages In This Thread:



Return to Digital Point Solutions' Home Page