Deleted DNS Zone... Help.. how do I fix it..

hostserve

Well-Known Member
Aug 25, 2006
51
0
156
Good morning..

I need some advice..

I deleted a DNS zone by accident... when I was trying to update it... :eek: i know... total stupid move... I was clicking too fast.. it was like the 30th zone to be edited..

anyways... so I tried to re-add it cuz i know what it should be more or less.. but the dns editor says it already exists.. but when I try and remove it or edit it the records come up blank.. what do i do to fix this..??
 

hostserve

Well-Known Member
Aug 25, 2006
51
0
156
Hmm.. nope.. I'm a cpanel newbie... :confused: so... we run a cpanel cluster, where should I check on my dns servers on the cluster ..??
 

hostserve

Well-Known Member
Aug 25, 2006
51
0
156
ok... I checked the named.conf file on the cpanel dns cluster and I did a search on the file for the domain name and it did not find the file anywhere...

now what..?? :(
 

hostserve

Well-Known Member
Aug 25, 2006
51
0
156
As some additional info, I also checked /var/named/ for the .db file for the domain and it is missing too..
 

katmai

Well-Known Member
Mar 13, 2006
564
4
168
Brno, Czech Republic
if you have backups enabled, then just restore from the daily backups that zone.
 

hostserve

Well-Known Member
Aug 25, 2006
51
0
156
....RESOLVED....

For those newbies out there like me that may need some help on this in the future like I did, I'll tell ya how I resolved this issue...

As suggested by Gorilla I checked /etc/named.conf and found that the zone did not exist in named.conf so I then checked /var/named and then looked for the [domainname.com].db file to see if that existed... it didn't...

SO... I checked the server to see what other sites were on the server and found one and copied that .db file and renamed the copy to the domainname.com.db of the missing site. then I pico'd it and inserted the correct values to ensure that it would send visitors to the right site/domain.

then I edited named.conf and inserted the entry for the domain name that was deleted.

I then logged into whm and synced that zone with the rest of our DNS cluster from the server that I did all the editing on so that the new zone would be propigated to the rest of our DNS cluster...

thanks to all those that provided suggestions and help... !
 

ekhwan

Active Member
Aug 12, 2006
33
0
156
Here is the problem I have,

I tried to add a sub domain to one of my domians using cpanel, the error I get is:

SubDomain Creation

The zone for the root domain xyz.com is missing, or could not be read. The ip address will be read from the webserver configuration and a new zone will be created for this subdomain.

Created DNS entry for test.xyz.com


The subdomain, test.attalim.net has been added.
I went to WHM and logged in as root and saw that all the zones are missing on the Edit Zone page. No domains are displaying. Next I checked named.conf and all the entries are there as should be, I checked domain.com.db for all domains and its there as it should be but then why am I getting this error? and why are the zones missing from whm?

I am not that good at stuff but I think this entry in named.conf seems weird and if its wrong then how do I correct it?

GNU nano 1.3.5-cvs File: /etc/named.conf Modified


//

zone "." IN {
type hint;
file "/var/named/named.ca";
};

logging {
category notify { null; };
category lame-servers { null; };
};

zone "localdomain" IN {
type master;
file "/var/named/localdomain.zone";
allow-update { none; };
};

zone "localhost" IN {
type master;
file "/var/named/localhost.zone";
allow-update { none; };
};

zone "0.0.127.in-addr.arpa" IN {
type master;
file "/var/named/named.local";
allow-update { none; };
};

zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN {
type master;
file "/var/named/named.ip6.local";
allow-update { none; };
};

zone "255.in-addr.arpa" IN {
type master;
Please help.
 

linux.newbie

Well-Known Member
Sep 8, 2006
73
0
156
There are already a couple of threads running on the dns zone missing issue.
Try this from your terminal : /scripts/autorepair io_compress_gzip