DNS server crashing, what to do?

  • camperjohn
  • Guru
  • Guru
  • User avatar
  • Joined: Nov 28, 2004
  • Posts: 1127
  • Loc: San Diego
  • Status: Offline

Post September 10th, 2009, 2:35 am

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
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post September 10th, 2009, 2:35 am

  • Don2007
  • Web Master
  • Web Master
  • No Avatar
  • Joined: Nov 21, 2006
  • Posts: 4924
  • Loc: NY
  • Status: Offline

Post September 10th, 2009, 7:10 am

What log files are on centOS? Have you looked there? Are there any other errors?
  • camperjohn
  • Guru
  • Guru
  • User avatar
  • Joined: Nov 28, 2004
  • Posts: 1127
  • Loc: San Diego
  • Status: Offline

Post September 10th, 2009, 7:59 am

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
  • Joined: May 28, 2003
  • Posts: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Post September 10th, 2009, 8:26 am

Bigweb is really good at this sort of thing. I'm sure when he sees this he'll be able to offer some advice.
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 8926
  • Loc: Seattle, WA & Phoenix, AZ
  • Status: Offline

Post September 10th, 2009, 11:14 am

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
Ozzu Hosting - Want your website on a fast server like Ozzu?
  • Don2007
  • Web Master
  • Web Master
  • No Avatar
  • Joined: Nov 21, 2006
  • Posts: 4924
  • Loc: NY
  • Status: Offline

Post September 10th, 2009, 12:10 pm

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

Post September 11th, 2009, 12:20 pm

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
  • Joined: Nov 28, 2004
  • Posts: 1127
  • Loc: San Diego
  • Status: Offline

Post September 11th, 2009, 12:24 pm

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
  • No Avatar
  • Joined: Nov 21, 2006
  • Posts: 4924
  • Loc: NY
  • Status: Offline

Post September 11th, 2009, 2:11 pm

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
  • Joined: Dec 20, 2002
  • Posts: 8926
  • Loc: Seattle, WA & Phoenix, AZ
  • Status: Offline

Post September 11th, 2009, 5:29 pm

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
Ozzu Hosting - Want your website on a fast server like Ozzu?

Post Information

  • Total Posts in this topic: 10 posts
  • Users browsing this forum: No registered users and 34 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
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.