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 18:23] – peter | ubuntu:bind:logging [2020/12/09 18:33] (current) – [Syslog Channel] peter | ||
---|---|---|---|
Line 17: | Line 17: | ||
A channel may be defined to go to: | A channel may be defined to go to: | ||
- | * **file** | + | * **file** |
* **syslog** | * **syslog** | ||
* **null** | * **null** | ||
Line 47: | Line 47: | ||
---- | ---- | ||
- | ===== 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> | <WRAP info> | ||
- | **NOTE: | + | **NOTE: |
+ | |||
+ | The default is **daemon**, and this is the recommended option to be used. | ||
+ | |||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
* critical | * critical | ||
Line 76: | 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 **/ |
ubuntu/bind/logging.1607538192.txt.gz · Last modified: 2020/12/09 18:23 by peter