why bind unable to find log files

Warren Kumari warren at kumari.net
Sat Jun 11 13:53:37 UTC 2011


On Jun 11, 2011, at 4:22 AM, kshitij mali wrote:

> Hi Mark ,
> 
> Thanks of  taking intreast in my case , yes the rhel4 default bind named service is running in chroot jail , know tell we what config changes do i nedd to change.
> 

Create a directory inside the chroot jail called var/log/ -- so, if your chroot directory is called /foo/bar, create /foor/bar/var/log and make sure that bind is allowed to write there…

W


> Regards,
> Kshitij
> 
> On Sat, Jun 11, 2011 at 7:53 AM, Mark Andrews <marka at isc.org> wrote:
> 
> Are you starting named with -t <chroot-directory>?  If so you need to
> look at the path relative to the <chroot-directory>.
> 
> Mark
> 
> In message <BANLkTikttvvag6kBophyFXZZLQK+CbtAhw at mail.gmail.com>, kshitij mali w
> rites:
>> --===============0107398317155429819==
>> Content-Type: multipart/alternative; boundary=20cf3033451dccf8a204a559ffe8
>> 
>> --20cf3033451dccf8a204a559ffe8
>> Content-Type: text/plain; charset=ISO-8859-1
>> 
>> why bind unable to find log files where file is present at location with all
>> permisions
>> ===================================
>> tail -f /var/log/messages
>> 
>> logging channel 'resolver_file' file '/var/log/resolver.log': file not found
>> 
>> ==================================
>> [root at relay virusmails]# ls -l /var/log/resolver.log
>> -rwxrwxrwx  1 root root 0 Jun 10 16:52 /var/log/resolver.log
>> ======================================
>> below is the named.conf loging declaration
>> logging {
>> channel resolver_file { file "/var/log/resolver.log" versions 3 size 5m;
>> severity debug; print-time
>> yes; };
>> category resolver { resolver_file; };
>> 
>> };
>> ==================================
>> 
>> Regards,
>> Kshitij
>> 
> --
> Mark Andrews, ISC
> 1 Seymour St., Dundas Valley, NSW 2117, Australia
> PHONE: +61 2 9871 4742                 INTERNET: marka at isc.org
> 
> _______________________________________________
> bind-users mailing list
> bind-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/bind-users




More information about the bind-users mailing list