差異處
這裏顯示兩個版本的差異處。
| tech:alpine_bind [2021/07/08 16:31] – 建立 jonathan | tech:alpine_bind [2022/01/30 16:50] (目前版本) – jonathan | ||
|---|---|---|---|
| 行 44: | 行 44: | ||
| </ | </ | ||
| </ | </ | ||
| + | ===== 增加查詢與運行的相關紀錄 ===== | ||
| + | * 設定 / | ||
| + | logging { | ||
| + | channel default_file { | ||
| + | file "/ | ||
| + | severity dynamic; | ||
| + | print-time yes; | ||
| + | }; | ||
| + | channel general_file { | ||
| + | file "/ | ||
| + | severity dynamic; | ||
| + | print-time yes; | ||
| + | }; | ||
| + | channel database_file { | ||
| + | file "/ | ||
| + | severity dynamic; | ||
| + | print-time yes; | ||
| + | }; | ||
| + | channel security_file { | ||
| + | file "/ | ||
| + | severity dynamic; | ||
| + | print-time yes; | ||
| + | }; | ||
| + | channel config_file { | ||
| + | file "/ | ||
| + | severity dynamic; | ||
| + | print-time yes; | ||
| + | }; | ||
| + | channel resolver_file { | ||
| + | file "/ | ||
| + | severity dynamic; | ||
| + | print-time yes; | ||
| + | }; | ||
| + | channel xfer-in_file { | ||
| + | file "/ | ||
| + | severity dynamic; | ||
| + | print-time yes; | ||
| + | }; | ||
| + | channel xfer-out_file { | ||
| + | file "/ | ||
| + | severity dynamic; | ||
| + | print-time yes; | ||
| + | }; | ||
| + | channel notify_file { | ||
| + | file "/ | ||
| + | severity dynamic; | ||
| + | print-time yes; | ||
| + | }; | ||
| + | channel client_file { | ||
| + | file "/ | ||
| + | severity dynamic; | ||
| + | print-time yes; | ||
| + | }; | ||
| + | channel unmatched_file { | ||
| + | file "/ | ||
| + | severity dynamic; | ||
| + | print-time yes; | ||
| + | }; | ||
| + | channel queries_file { | ||
| + | file "/ | ||
| + | severity dynamic; | ||
| + | print-time yes; | ||
| + | }; | ||
| + | channel network_file { | ||
| + | file "/ | ||
| + | severity dynamic; | ||
| + | print-time yes; | ||
| + | }; | ||
| + | channel update_file { | ||
| + | file "/ | ||
| + | severity dynamic; | ||
| + | print-time yes; | ||
| + | }; | ||
| + | channel dispatch_file { | ||
| + | file "/ | ||
| + | severity dynamic; | ||
| + | print-time yes; | ||
| + | }; | ||
| + | channel dnssec_file { | ||
| + | file "/ | ||
| + | severity dynamic; | ||
| + | print-time yes; | ||
| + | }; | ||
| + | channel lame-servers_file { | ||
| + | file "/ | ||
| + | severity dynamic; | ||
| + | print-time yes; | ||
| + | }; | ||
| + | |||
| + | category default { default_file; | ||
| + | category general { general_file; | ||
| + | category database { database_file; | ||
| + | category security { security_file; | ||
| + | category config { config_file; | ||
| + | category resolver { resolver_file; | ||
| + | category xfer-in { xfer-in_file; | ||
| + | category xfer-out { xfer-out_file; | ||
| + | category notify { notify_file; | ||
| + | category client { client_file; | ||
| + | category unmatched { unmatched_file; | ||
| + | category queries { queries_file; | ||
| + | category network { network_file; | ||
| + | category update { update_file; | ||
| + | category dispatch { dispatch_file; | ||
| + | category dnssec { dnssec_file; | ||
| + | category lame-servers { lame-servers_file; | ||
| + | }; | ||
| + | </ | ||
| + | * 建立 named 的 log 路徑< | ||
| + | mkdir / | ||
| + | chown -R named:named / | ||
| + | </ | ||
| + | * 重新啟動 named <cli> | ||
| + | rc-service named restart | ||
| + | </ | ||
| + | * 在 / | ||
| ===== 參考網址 ===== | ===== 參考網址 ===== | ||
| * https:// | * https:// | ||
| * https:// | * https:// | ||
| + | * https:// | ||
| {{tag> | {{tag> | ||