DNS server crashing, what to do?

  • camperjohn
  • Guru
  • Guru
  • User avatar
  • Posts: 1127
  • Loc: San Diego

Post 3+ Months Ago

I have a basic LAMP server, with CPANEL installed, centOS. I am not an admin guy, just a programmer.

But my DNS service keeps crashing, and I need to restart it through cpanel about every 3 days or so.

How do I debug this? Where do I start?
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Don2007
  • Web Master
  • Web Master
  • Don2007
  • Posts: 4924
  • Loc: NY

Post 3+ Months Ago

What log files are on centOS? Have you looked there? Are there any other errors?
  • camperjohn
  • Guru
  • Guru
  • User avatar
  • Posts: 1127
  • Loc: San Diego

Post 3+ Months Ago

I don't really know where to start with that. cpanel logs everything, I just don't know where to look...

I'm a programmer, and don't really have much admin knowledge. I guess today is the day I learn...
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

Bigweb is really good at this sort of thing. I'm sure when he sees this he'll be able to offer some advice.
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Posts: 9090
  • Loc: Seattle, WA & Phoenix, AZ

Post 3+ Months Ago

camperjohn, do you know how to login to your server via ssh?

If you can you need to look at your server log file:

/var/log/messages

You can either view it with pico, vi, less, or more, or type a command like this:

cat /var/log/messages | grep named

So that everything related to DNS will show up. Then see if you notice any errors. Best time to look for the errors is right after this problem happens as they should be towards the bottom of the log file then.

Also if you are able to login please let us know what version of DNS you are using by typing:

/usr/sbin/named -v
  • Don2007
  • Web Master
  • Web Master
  • Don2007
  • Posts: 4924
  • Loc: NY

Post 3+ Months Ago

/var/log/messages is what I was thinking. I use FreeBSD & didn't know if CentOS was the same.
  • camperjohn
  • Guru
  • Guru
  • User avatar
  • Posts: 1127
  • Loc: San Diego

Post 3+ Months Ago

The messages file mostly consists of the following:

Sep 6 06:45:51 srv1 named[479]: lame server resolving 'sonicspeedsters.com' (in 'sonicspeedsters.com'?): 204.15.192.197#53
Sep 6 06:45:51 srv1 named[479]: lame server resolving 'sonicspeedsters.com' (in 'sonicspeedsters.com'?): 204.15.192.198#53
Sep 6 06:45:51 srv1 named[479]: lame server resolving 'homepagepal.com' (in 'homepagepal.com'?): 204.15.192.197#53
Sep 6 06:45:51 srv1 named[479]: lame server resolving 'homepagepal.com' (in 'homepagepal.com'?): 204.15.192.198#53

It goes forever...

The version I am using is:

root@srv1 [~]# /usr/sbin/named -v
BIND 9.2.4

What next?
  • camperjohn
  • Guru
  • Guru
  • User avatar
  • Posts: 1127
  • Loc: San Diego

Post 3+ Months Ago

Should there be sooo many entries of "lame server resolving..." in the messages file? It is 52 megs in size, just since Sept 6... There are also messages.1, .2, .3, .4 etc, each between 32 and 70 megs.
  • Don2007
  • Web Master
  • Web Master
  • Don2007
  • Posts: 4924
  • Loc: NY

Post 3+ Months Ago

Update the version of BIND. As I said I don't use CentOS but according to one site, you can try :
yum update bind\*
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Posts: 9090
  • Loc: Seattle, WA & Phoenix, AZ

Post 3+ Months Ago

Yeah your version is a little outdated. Don's advice should work as well to get your BIND updated. If you are using Cpanel I would recommend updating all of your software by typing this in SSH (that would update everything for you that is outdated including BIND):

/scripts/upcp

That will update all of your software automatically for you. Watch the output for any errors on upgrading anything. If there are errors it could be preventing your system from automatically staying updated, and we will need to fix those.

Also to stop the logging of lameservers, which I actually do as well what you need to do is edit:

/etc/named.conf

There should be a section called logging. Mine has this structure:

Code: [ Select ]
logging {

};
  1. logging {
  2. };


Inside that logging block I have this line:

Code: [ Select ]
  //disable lame servers from logging
  category lame-servers {null; };
  1.   //disable lame servers from logging
  2.   category lame-servers {null; };


Once you add that to that file you can then restart named:

/sbin/service named restart

Let me know if you have any problems following something or need more help editing files using pico or vi

Post Information

  • Total Posts in this topic: 10 posts
  • Users browsing this forum: No registered users and 25 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.