P.T. Breuer wrote:
> Jhuola Hoptire <(E-Mail Removed)> wrote:
>
>>P.T. Breuer wrote:
>>
>>>Jhuola Hoptire <(E-Mail Removed)> wrote:
>>>
>>>
>>>>I try to start up my DNS server with
>>>>/etc/init.d/named restart (cf The Red Linux
>>>
>>>Try harder.
>>>
>>
>>OK
>
>
> Should work.
>
>
>
>>>>Bible - the jury's still out), but doesn't
>>>>see any new jobs in top.
>>>
>>>Then launch it by hand, read the logs, strace it, etc.
>>>
>>
>>What do you mean lauch it by hand?
>
>
> Do not use a script to do it for you.
If you tell me how else to start it, I will be the
first to try, and L'll immediately strace the
thing.
http://linuxgazette.net/issue01to08/...e6.html#strace
is quite a gentle intro.
>
>
>>Which log files (cannonical names would be nice) should I look at?
>
>
> Whichever ones you have configured.
>
Haven't configured any. I assumed there's a "well-known"
(unfortunately, not to me) place it would go.
I did tail -f /var/log/messages (thanks Baho) but nothing
in there relating to this.
Is /var/log/messages what you mean by syslog? Can't see anything
about this file in man. syslog is neither an environment variable
nor an alias. So how would I find out what syslog is?
>
>>How would I find out having to ask somebody?
>
>
> You would read the man page to find out how named does its logging.
> You would probably then look in its configuration file too to check.
> It would probably be configured or compiled to log through syslogd,
> so you would want to find out which logging facility and level
> it was using. Then you would check syslogd's configuration file
> to see where logs of that fadility and level were sent.
>
> From the man page:
>
> NOTE: The new debugging framework is considerably more
> sophisticated than it was in older versions of NAMED.
> The con- figuration file's ``logging'' statement allows
> for multiple, distinct levels of debugging for each of
> a large set of cate- gories of events (such as queries,
> transfers in or out, etc.). Please refer to the
> configuration file guide included with this BIND
> distribution for further information about these
> extensive new capabilities.
>
> However, I have set nothing for logging in my named conf file. Yet
> it makes the occasional burst to syslogd, which certainly sends it
> at least to syslog here. You want to check your conf.
>
>
>>I am reading about strace in man as we speak.
>
>
> OK.
>
>
>>>>In the log file (what are the best files to
>>>>look at for clues in such cases?)
>>>
>>>
>>>The log file.
>>
>>How should I know (find out) where the log file is?
>
>
> I would personally just strace the thing, rather than bother
> with nameds docs.
>
>
>>>>it says-
>>>>Jan 22 11:54:32.296 general: couldn't open pid file
>>>>'/var/run/named/named.pid': Permission denied
>>>
>>>There you are. Fix that!
>>>
>>
>>Fix what? There is a directory called /var/run/named owned
>>by the group named.
>
>
> If so, then you should ask yourself why named cannot write there.
> Who is it owned by, what perms does it have, and who does named
> run as?
>
> And fix them ...
>
>
>>There is no file called named.pid, but
>
>
>
> We know. It said so.
>
>
>>I would have thought the user "named" which owns the "named"
>>process can write to a dirctory its group owns.
>
>
> Aha! Well, su over to user named and find out. If in doubt, loosen the
> perms and see if that helps.
>
> Experiment.
>
> Observe.
>
> Deduce.
>
Yes I enjoy all that too, but I'd also make a bit of pregress.
Anyway, when I su to named I get This account is currently not
available. even though I am logged in as root.
>
>>>>Jan 22 11:54:32.308 general: exiting (due to early fatal error)
>>>>Sure enough, /var/run/named.pid has disappeared. I'm sure it
>>>
>>>That's NOT what it talked about .. read again. Make the directory, and
>>>make sure that it is owned by whoever named runs as these days
>>>(should take -u and -g as args, shirley?)
>>>
>>
>>Typo, meant /var/run/named/named.pid
>>
>>>>was there once, as I have successfully started the DNS server
>>>>before now.
>>>
>>>And the kwestoon is?
>>>
>>
>>"Is anybody interested in making any helpful suggestions?"
>
>
> Ah. Yes.
>
> Peter