Named stops working and named.conf empty

Snowman30

Well-Known Member
PartnerNOC
Apr 7, 2002
679
0
316
cPanel Access Level
DataCenter Provider
Ive just seen a very weird issue across all of our servers which are setup the same way and running R30

named was still showing to be working but everyones nameservers appear to be lame and so sites stopped working

a check of named.conf shows all the domains missing

ive had to run

/scripts/fixndc
/scripts/rebuildnamedconf
and restart named to get the sites back online.

Is this a known bug in the current Release?

Anyone know why it would be happening?
 

theprimehost

Active Member
Nov 24, 2002
29
0
151
Same here on one of our servers...
 

theprimehost

Active Member
Nov 24, 2002
29
0
151
Nevermind...fixed it.

/scripts/rebuildnamedconf

then restarting named corrected it for us.
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
Go on, have a guess
It happens because you have installed the caching-nameserver rpm which provides a simply configured named.conf whenever that rpm is updated. To avoid the problem in the future, add caching-nameserver* to your yum or up2date exclude list.
 

CoolMike

Well-Known Member
Sep 6, 2001
313
0
316
Thanks for the infos, I had exactly the same problem. What else should be in this line? My exlude line looks now like this:

exclude=httpd* mysql* php* perl* mod_ssl* kernel* spamassassin* caching-nameserver*

Michael
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
Go on, have a guess
I currently use the following, I wouldn't recommend using perl* anymore and would stick to just perl otherwise you can have problems installing other rpms that have perl module dependencies:

exclude=courier* mysql* spamassassin* httpd* perl mysql* php* mod_ssl* imap* squirrelmail* caching-nameserver* kernel*
 

jcn

Well-Known Member
Sep 17, 2003
56
0
156
Hey, thanks for the tip, this happened to me last night too: I added a new domain and completely wiped out the named.conf file except for the caching-nameserver's named.conf + the new domain I just added.

Besides adding caching-nameserver to the yum exclusions, do I also have to

a) remove that package and
b) remove any template files that may be causing problems?

Or should just adding the exclusion be enough?

Thanks!