{"id":169,"date":"2015-11-06T22:48:33","date_gmt":"2015-11-06T19:48:33","guid":{"rendered":"http:\/\/small-service.com\/?p=169"},"modified":"2015-11-06T22:48:33","modified_gmt":"2015-11-06T19:48:33","slug":"bind9-log-file-ubuntu","status":"publish","type":"post","link":"https:\/\/small-service.com\/?p=169","title":{"rendered":"bind9 log file Ubuntu"},"content":{"rendered":"<p>to forward log info from syslog to another file for bind9 server in Ubuntu you have to:<\/p>\n<ol style=\"list-style-type: lower-alpha;\">\n<li>add logging section in any name.conf* file:\n<pre>logging {\r\n    channel bind_log {\r\n    file \"\/var\/log\/named.log\";\r\n    print-time yes;\r\n    print-category yes;\r\n    print-severity yes;\r\n    };\r\n    category default { bind_log;};\r\n    category xfer-in { bind_log;};\r\n    category xfer-out { bind_log;};\r\n    category update { bind_log;};\r\n    category security { bind_log;};\r\n    category queries { bind_log;};\r\n};\r\n<\/pre>\n<\/li>\n<li>update apparmor config by adding to file \/etc\/apparmor.d\/usr.sbin.named\n<pre> \/var\/log\/named.log rw, <\/pre>\n<\/li>\n<li> <code>apparmor_parser -r \/etc\/apparmor.d\/usr.sbin.named<\/code><\/li>\n<li> <code>service bind9 restart<\/code><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>to forward log info from syslog to another file for bind9 server in Ubuntu you have to: add logging section in any name.conf* file: logging { channel bind_log { file &#8220;\/var\/log\/named.log&#8221;; print-time yes; print-category yes; print-severity yes; }; category default { bind_log;}; category xfer-in { bind_log;}; category xfer-out { bind_log;}; category update { bind_log;}; category [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[69,72,71,70,68],"_links":{"self":[{"href":"https:\/\/small-service.com\/index.php?rest_route=\/wp\/v2\/posts\/169"}],"collection":[{"href":"https:\/\/small-service.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/small-service.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/small-service.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/small-service.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=169"}],"version-history":[{"count":8,"href":"https:\/\/small-service.com\/index.php?rest_route=\/wp\/v2\/posts\/169\/revisions"}],"predecessor-version":[{"id":177,"href":"https:\/\/small-service.com\/index.php?rest_route=\/wp\/v2\/posts\/169\/revisions\/177"}],"wp:attachment":[{"href":"https:\/\/small-service.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=169"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/small-service.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=169"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/small-service.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=169"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}