LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-28-2008, 11:20 AM   #1
moob8
Member
 
Registered: Sep 2006
Distribution: slackware
Posts: 132

Rep: Reputation: 15
named error message on bootup


I get this error on booting.
Quote:
WARNING: named did not start. Perhaps this is because
the "capability" module required by newer kernels is
not loaded (or built into the kernel)?
Attempting to load security capability module:
/sbin/modprobe capability
Attempting to start named again: /usr/sbin/named
FAILED: Sorry, but even after attempting to load
the \"capability\" module, named did not start.
There may be a different configuration error that
needs fixing. Good luck!
Traced it to the rc.bind script. if I read it right, named is not running.

So I did this:

Code:
root@darkstar root # named -d full
named: debug level 'full' must be numeric
root@darkstar root # named -d 0
root@darkstar root # named -d 1
root@darkstar root # named -d 2
root@darkstar root # named -d 77777
root@darkstar root # named -d 255
root@darkstar root # named -d 12
root@darkstar root # named -d 10
root@darkstar root # lsmod | grep capab
capability              7304  0
commoncap               9344  1 capability
root@darkstar root # named
root@darkstar root # ps axc | grep named
root@darkstar root # ps -e | grep named
root@darkstar root # ps all | grep named
root@darkstar root #
root@darkstar root # dmesg | grep named
root@darkstar root #
lsmod is used in the above to show that the capability module is already running, so capability is not the problem.

According to the man page, -d is a debug level setting for named. Presumably using this would get some helpful output from named but that does not happen. Use of ps and grep confirms that "named" fails right away (exits silently right away).

So: a conclusion: "named" is failing and capability is not failing.

So now what do I do?

p.s. - I am on line right now with this machine. Domains are being resolved because I can connect to sites with my browser and can get the mail. Does the mean that I actually do not need named? Please let me know if so, then I can just comment out the error message echo lines in rc.init and be done with it.

p.p.s. My news software just failed to get ... perhaps "named" is needed just for news? I am more confused the more I think about this.
 
Old 10-28-2008, 06:17 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,944
Blog Entries: 54

Rep: Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731
"Named" is a nameserver daemon (ISC BIND). You need it only if you need to serve DNS records. If that sounds like the average Philip Glass (or Frank Zappa or Vollenweider or Chopin, whichever else you can't stand) piece of music to you, or if you know you just want to cache DNS requests you make to your ISP's or other nameservers, then you don't need named but the named libraries and the "caching-nameserver" (sounds like) package (or if you don't want the ISC/named stuff, then maybe Pdnsd).
 
Old 10-29-2008, 06:30 PM   #3
moob8
Member
 
Registered: Sep 2006
Distribution: slackware
Posts: 132

Original Poster
Rep: Reputation: 15
Ahhhh, I see. Thank you. This becomes a little less confusing. Thank you. Some time ago I had set up something in my linux to cache IP addrsses so that firefox would stop being so stupid.

So now the question is, how to get named to generate some output so I can in turn determien what the actual problem is. The man page for named indicates that the use of the -d option should generater more verbose output from named. As seen in the quote in my original posting, this is not the case: no output from named is ever generated.

Does anyone have any ideas?

Or is this new changed question too off topic from the original post? If so, let me know and I'll start another thread. Thanks.
 
Old 10-29-2008, 09:15 PM   #4
moob8
Member
 
Registered: Sep 2006
Distribution: slackware
Posts: 132

Original Poster
Rep: Reputation: 15
Update

I tried random stupid things. Making up command line options, going through the alphabet for the command line switches. Eventually got named to give me some error output, though I am unsure of its helpfulness:
Quote:
root@darkstar rc.d # /usr/sbin/named -g
29-Oct-2008 21:53:36.774 starting BIND 9.4.1 -g
29-Oct-2008 21:53:36.774 found 2 CPUs, using 2 worker threads
29-Oct-2008 21:53:36.781 loading configuration from '/etc/named.conf'
29-Oct-2008 21:53:36.781 /etc/named.conf:2: change directory to '/var/named' failed: permission denied
29-Oct-2008 21:53:36.781 /etc/named.conf:2: parsing failed
29-Oct-2008 21:53:36.781 loading configuration: permission denied
29-Oct-2008 21:53:36.782 exiting (due to fatal error)
root@darkstar rc.d #
And to verify thw existance and protection of the mentioned directory and the mentioned file:
Quote:
root@darkstar rc.d # ls -l /etc/named.conf
-rw-r--r-- 1 root root 679 2007-06-08 01:42 /etc/named.conf
root@darkstar rc.d # ls -ld /var/named
drwxr-xr-x 3 root root 4096 2008-10-21 20:29 /var/named
root@darkstar rc.d #
So. Root runs a program (named, in this case). The program access a world-readable directory and claims failure. The program also accesses a world-readable file and claims failure.

Conclusion One: named (only on my machine, and only recently) has suddenly changed itself to become unable to open a file or read a directory.

Conclusion Two: the error message is wrong. It indicates one error that is actually caused by a completely different error.

Conclusion three: I been hax0red.

I'd guess conclusion 2, but I defer to the collective wisdom of these forums. Any ideas? Thanks in advance.
 
Old 10-31-2008, 03:03 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,944
Blog Entries: 54

Rep: Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731
Quote:
Originally Posted by moob8 View Post
So now the question is
With all due respect I think the question should be "do I need to run named when I do not serve DNS records to world?".
 
Old 10-31-2008, 08:53 AM   #6
moob8
Member
 
Registered: Sep 2006
Distribution: slackware
Posts: 132

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by unSpawn View Post
With all due respect I think the question should be "do I need to run named when I do not serve DNS records to world?".
So which part of the above helps me get named running?
 
Old 11-01-2008, 04:08 AM   #7
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,944
Blog Entries: 54

Rep: Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731
If you need to find out what happened you better trace things back to the last time (aprox) 'named' worked OK and check your history of commands what changed then (update, reconfig, manual mucking around). Most likely update stuff.

The error is no indication your machine was cracked (at least a certain type of cracker usually likes to keep things quiet) and the "/etc/named.conf:2: change directory to '/var/named' failed: permission denied" points to directory permission problems and "loading configuration: permission denied" probably to permission problems wrt the daemon (user) not being able to read the config file because it's owned by another user. Get rid of those and the "capability" error will disappear too.

Other than that in two of your posts you have asked if you actually needed to run 'named'. I told you you don't need to: you want a caching nameserver. Running 'named' or any other stuff you don't need isn't something I would recommend.
 
  


Reply

Tags
failure, named


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
bootup message: named not running pwabrahams Linux - Networking 1 10-31-2007 11:41 PM
Error Message During Bootup - Fedora Core 7 silentray Linux - Newbie 2 10-03-2007 06:28 PM
named error message when trying to start it mchanea Linux - Wireless Networking 0 02-05-2004 09:25 AM
error message freezes bootup (kernel panic) astotxo Linux - Software 3 11-19-2003 05:39 PM
LIL- error message on bootup gedi1 Linux - General 5 10-04-2001 03:55 PM


All times are GMT -5. The time now is 05:17 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration