no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
Last revision | |||
— | bindlogconfig [2017-06-29T04:03:48Z] – created fusl | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Logging in Bind 9 ====== | ||
+ | Lets go through turning on some logging for your BIND9 DNS server. These logs are interesting to look through, but should not be archived. If you wish to archive them, provided is a perl script, written by Brianko, which will remove all IP addresses and replace them with XXX.XXX.XXX.XXX. It is important that we protect our members' | ||
+ | |||
+ | To turn on logging, open named.conf.options in your favourite text editor and add the following to the end of the file: | ||
+ | |||
+ | logging { | ||
+ | | ||
+ | file "/ | ||
+ | severity info; print-severity no; | ||
+ | print-category yes; print-time yes; | ||
+ | }; | ||
+ | channel " | ||
+ | file "/ | ||
+ | severity info; print-severity no; | ||
+ | print-category no; print-time yes; | ||
+ | }; | ||
+ | category " | ||
+ | category default { " | ||
+ | }; | ||
+ | |||
+ | Depending on your bind setup(we always recommend chroot), the log directory can live in two locations. In a chroot setup it is at / | ||
+ | |||
+ | touch named.log | ||
+ | chown bind:bind named.log | ||
+ | touch misc.log | ||
+ | chown misc.log |