LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   named error message on bootup (https://www.linuxquestions.org/questions/linux-software-2/named-error-message-on-bootup-679576/)

moob8 10-28-2008 11:20 AM

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.

unSpawn 10-28-2008 06:17 PM

"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).

moob8 10-29-2008 06:30 PM

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. :)

moob8 10-29-2008 09:15 PM

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.

unSpawn 10-31-2008 03:03 AM

Quote:

Originally Posted by moob8 (Post 3325521)
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?".

moob8 10-31-2008 08:53 AM

Quote:

Originally Posted by unSpawn (Post 3327030)
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? ;)

unSpawn 11-01-2008 04:08 AM

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.


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