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:47] – 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** | ||
| + | |||
| + | </ | ||
| ---- | ---- | ||
| - | ===== Configure BIND9 to send debug messages related to DNS queries to a separate file ===== | + | ===== File Channel |
| - | We need to configure a **channel** to specify which file to send the messages to, and a **category**. | + | < |
| + | logging{ | ||
| + | | ||
| + | | ||
| + | severity dynamic; | ||
| + | }; | ||
| + | }; | ||
| + | </ | ||
| - | In this example, the category will log all queries. | + | ---- |
| - | Edit / | + | ===== Syslog Channel ===== |
| - | <file bash / | + | <code> |
| logging { | logging { | ||
| - | | + | |
| - | file "/var/log/ | + | |
| - | severity | + | severity |
| - | }; | + | }; |
| - | category queries { query.log; | + | |
| }; | }; | ||
| - | </file> | + | </code> |
| + | |||
| + | <WRAP info> | ||
| + | **NOTE: | ||
| + | |||
| + | The default is **daemon**, and this is the recommended option to be used. | ||
| + | |||
| + | </WRAP> | ||
| <WRAP info> | <WRAP info> | ||
| - | **NOTE: | + | **NOTE: |
| * critical | * critical | ||
| Line 43: | Line 89: | ||
| * dynamic | * dynamic | ||
| </ | </ | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ===== Configure BIND9 to send debug messages related to DNS queries to a separate file ===== | ||
| + | |||
| + | We need to configure a **channel** to specify which file to send the messages to, and a **category**. | ||
| + | |||
| + | In this example, the category will log all queries. | ||
| + | |||
| + | Edit / | ||
| + | |||
| + | <file bash / | ||
| + | logging { | ||
| + | channel query.log { | ||
| + | file "/ | ||
| + | severity debug 3; | ||
| + | }; | ||
| + | category queries { query.log; }; | ||
| + | }; | ||
| + | </ | ||
| Since the named daemon runs as the bind user the **/ | Since the named daemon runs as the bind user the **/ | ||
| Line 60: | 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.1607536034.txt.gz · Last modified: 2020/12/09 17:47 by peter
