Web Hosting Talk







View Full Version : URGENT: problem with dns zones after change of master server - help needed


nogi
11-01-2003, 06:29 PM
I had some techs switching to a new master server yesterday, for servers in a trust relationship, but just discovered that the zone information is incomplete for the dns zones. :( For example, the mail, ftp, www, localhost.domain.com CNAME, A, MX and NS record lines are missing in the zones.

The old master server is still online so it still hasn't propagated to the new machine.

Is there any way to restore or transfer the dns zones from the old master server after the switch has already taken place, so so that they contain the correct information?

Thanks
John

sprintserve
11-01-2003, 06:34 PM
Yes. Copy everything in /var/named/ from the old to the new server. For sites on the new master, you would need to edit the dns zones. You can do it manually or

cd /var/named
perl -pi -e 's,OLDIP,NEWIP,' *

nogi
11-01-2003, 06:44 PM
Thanks alot. With new server do you mean to the new master server? I suppose so as it contains the zone records. Thanks again.

John

nogi
11-01-2003, 06:46 PM
Will that perl command do it for all dns zones or for one account at a time?

John

sprintserve
11-01-2003, 06:48 PM
yes. the new master server.

the perl command will do it for all dns zones if there's a match.

nogi
11-01-2003, 07:00 PM
Sorry for my ignorance but what command can be used to copy all .db files from /var/named at the old server to /var/named at the new master server? I need to learn some linux. I'm not the one usually taking care of this stuff.

John

nogi
11-01-2003, 07:14 PM
Actually we could find the cname entries
such as FTP, mail, www etc., under the /var/named/ directory as follows :

ftp A IP-no.
localhost A 127.0.0.1
mail CNAME domain.com.
www CNAME domain.com.

Only thing it is not getting displayed under WHM. We thought of again re-establishing the trust realtionship for the new master server with the old master server. But, when we manually checked the dns entries on the master server WHM it shows the same errors. We are afraid that this may be caused due to a version conflict of the dns template script.

John

nogi
11-01-2003, 07:49 PM
It looks like /scripts/fixndc fixed it all. I see no empty fields in dns zones anymore. Or maybe I were just lucky :confused: :D

John