ubuntu:bind:logging
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ubuntu:bind:logging [2020/12/09 17:40] – [Configure BIND9 to send debug messages related to DNS queries to a separate file] peter | ubuntu:bind:logging [2020/12/09 18:33] (current) – [Syslog Channel] peter | ||
---|---|---|---|
Line 11: | Line 11: | ||
}; | }; | ||
</ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | A channel may be defined to go to: | ||
+ | |||
+ | * **file** | ||
+ | * **syslog** | ||
+ | * **null** | ||
+ | |||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | * **default** | ||
+ | * BIND 9's **default** category doesn' | ||
+ | * **general** | ||
+ | * **client** | ||
+ | * **config** | ||
+ | * **database** | ||
+ | * **dnssec** Processing DNSSEC-signed responses. | ||
+ | * **lame-servers** | ||
+ | * **network** | ||
+ | * **notify** | ||
+ | * **queries** | ||
+ | * **resolver** | ||
+ | * **security** | ||
+ | * **update** | ||
+ | * **xfer-in** | ||
+ | * **xfer-out** | ||
+ | |||
+ | </ | ||
---- | ---- | ||
+ | |||
+ | ===== File Channel ===== | ||
+ | |||
+ | < | ||
+ | logging{ | ||
+ | channel my_file { | ||
+ | file " | ||
+ | severity dynamic; | ||
+ | }; | ||
+ | }; | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Syslog Channel ===== | ||
+ | |||
+ | < | ||
+ | logging { | ||
+ | channel my_syslog { | ||
+ | syslog local0; // send to syslog' | ||
+ | severity info; // only send severity info and higher | ||
+ | }; | ||
+ | }; | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | The default is **daemon**, and this is the recommended option to be used. | ||
+ | |||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | * critical | ||
+ | * error | ||
+ | * warning | ||
+ | * notice | ||
+ | * info | ||
+ | * debug [level]. | ||
+ | * dynamic | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
===== Configure BIND9 to send debug messages related to DNS queries to a separate file ===== | ===== Configure BIND9 to send debug messages related to DNS queries to a separate file ===== | ||
Line 30: | Line 109: | ||
}; | }; | ||
</ | </ | ||
- | |||
- | <WRAP info> | ||
- | **NOTE: | ||
- | |||
- | If a level isn’t specified, level 1 is the default. | ||
- | |||
- | </ | ||
Since the named daemon runs as the bind user the **/ | Since the named daemon runs as the bind user the **/ | ||
Line 54: | Line 126: | ||
<WRAP info> | <WRAP info> | ||
- | **NOTE: | + | **NOTE:** This is a simple example of the BIND9 logging options. |
For coverage of advanced options see [[https:// | For coverage of advanced options see [[https:// |
ubuntu/bind/logging.1607535606.txt.gz · Last modified: 2020/12/09 17:40 by peter