[Cialug] Bind...

David Champion dchampion at visionary.com
Thu Oct 12 14:40:42 CDT 2006


That's nifty. Was it a bug in the init script? Does gentoo use lock 
files for this type of thing? i.e. Mandriva has a file 
/var/lock/subsys/named. If a service dies in such a way that it leaves a 
stale lock file, you sometimes have to go delete it before the service 
will restart.

BTW - speaking of bind, saw this article today :

http://www.computerworld.com/action/article.do?command=viewArticleBasic&articleId=9004020

-dc

Tony Bibbs wrote:
> Just a follow-up in case anybody finds it helpful...during my last 
> emerge of bind under Gentoo to patch a security hole in Bind, apparently 
> the old bind process didn't die when I did a restart so I somehow had 
> two bind instances running.  The old one kept sending the old serials 
> with the old settings for one of my domains.  It was frustrating as hell 
> to figure out but a quick fix once I had the "ah-ha" moment.
> 
> --Tony
> 
> dave at usalug.org wrote:
> 
>> Try changining the line:
>>
>> severity warning;
>>
>> to a lesser option..... options not equal to or higher than "warning"
>> won't get logged otherwise.
>>
>> Options include:
>>
>> [ severity (critical | error | warning | notice |
>>                  info | debug [ level ] | dynamic ); ]
>>
>> HTH's
>>
>>
>> On Thu, October 5, 2006 4:07 pm, Tony Bibbs wrote:
>>
>>> I've added this:
>>>
>>>
>>> logging { channel simple_log { file "/var/log/named.log" versions 3 size
>>> 5m;
>>> severity warning; print-time yes; print-severity yes; print-category
>>
>> yes; };
>>
>>> category default { simple_log; };
>>>
>>> };
>>>
>>>
>>> I restarted named and lo named.log file shows up.  If I chown the file
>>> to the named user I get no luck either.  What next?
>>>
>>> --Tony
>>>
>>>
>>>
>>> dave at usalug.org wrote:
>>>
>>>> Check the named.conf file .... see if it doesn't have a section stating
>>>>  "where" the logs are going too.... if there aren't any, you may need
>>>> to modify the file to enable logging.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> On Thu, October 5, 2006 2:42 pm, Tony Bibbs wrote:
>>>>
>>>>> I have a fairly standard Gentoo box running bind and for the life of
>>>>> me I can't find a log file associated with it.  I did a man on named
>>>>> and see a -d <level> which turns up the verbosity of the messages
>>>>> which does me no good if I don't have a file to look in.
>>>>>
>>>>> My issue is zone updates to a slave aren't happening and I need to
>>>>> iron this out and without a useful log I can't fix it.  I have checked
>>>>>  /var/log/messages to see if it might be logging there but it isn't.
>>>>>
>>>>>
>>>>>
>>>>> Thoughts?
>>>>>
>>>>>
>>>>>
>>>>> --Tony



More information about the Cialug mailing list