R: Logging problems on Bind9

Autuori Gianluigi Autuori.Gianluigi.Wintime at ansaldobreda.it
Mon Jan 11 16:12:32 UTC 2010


 I moved my query.log to /var/log/named/ and I correct named.local.conf to log there

-----Messaggio originale-----
Da: bind-users-bounces+autuori.gianluigi.wintime=ansaldobreda.it at lists.isc.org [mailto:bind-users-bounces+autuori.gianluigi.wintime=ansaldobreda.it at lists.isc.org] Per conto di Autuori Gianluigi
Inviato: lunedì 11 gennaio 2010 13.36
A: Hauke Lampe
Cc: bind-users at lists.isc.org
Oggetto: R: Logging problems on Bind9

Thanks, now it works fine 

-----Messaggio originale-----
Da: Hauke Lampe [mailto:list+bindusers at hauke-lampe.de]
Inviato: lunedì 11 gennaio 2010 13.15
A: Autuori Gianluigi
Cc: bind-users at lists.isc.org
Oggetto: Re: Logging problems on Bind9

Autuori Gianluigi wrote:

> I'm using Bind9 and Ubuntu 8.04 kernel 2.6.24.
> Named runs as bind user and in my named.conf.local I wrote:

Ubuntu uses AppArmor (http://en.wikipedia.org/wiki/AppArmor)

You need to edit the profile for usr.sbin.named in /etc/apparmor.d/ if you want named to write files outside the allowed directories.

The easier way would be to move your query.log to /var/log/named/ as this directory is allowed by default.

/etc/apparmor.d/usr.sbin.named:

/usr/sbin/named {
[...]
  # some people like to put logs in /var/log/named/ instead of having
  # syslog do the heavy lifting.
  /var/log/named/** rw,
  /var/log/named/ rw,
}


HTH,
Hauke.



--------------------------------------------------------------------------------
Questo messaggio e-mail e ogni documento ad esso eventualmente allegato puo' avere carattere riservato ed essere tutelato da segreto. Esso,comunque, e'
ad esclusivo utilizzo del destinatario in indirizzo. Qualora non foste il destinatario del messaggio vi preghiamo di volerci avvertire immediatamente per e-mail o telefono e di cancellare il presente messaggio e ogni eventuale allegato dal vostro sistema. E' vietata la duplicazione o l'utilizzo per qualunque fine del messaggio e di ogni allegato, nonche' la loro divulgazione, distribuzione o inoltro a terzi senza l'espressa autorizzazione del mittente. In ragione del mezzo di trasmissione utilizzato, il mittente non assume alcuna responsabilita' sulla segretezza/riservatezza delle informazioni contenute nel messaggio e nei relativi allegati. 

This e-mail and any file transmitted with it may contain material that is confidential, privileged and/or attorney work product for the sole use of the intended recipient. If you are not the intended recipient of this e-mail, please do not read it, notify us immediately by e-mail or by telephone and then delete this message and any file attached from your system. You should not copy or use it for any purpose, disclose the contents of the same to any other person or forward it without express permission.
Considering the means of transmission, we do not undertake any liability with respect to the secrecy and confidentiality of the information contained in this e-mail and its attachments.

_______________________________________________
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