{"id":400,"date":"2021-07-02T02:34:39","date_gmt":"2021-07-01T17:34:39","guid":{"rendered":"https:\/\/blog.daichang.me\/?p=400"},"modified":"2025-11-18T00:25:00","modified_gmt":"2025-11-17T15:25:00","slug":"unbound-%e3%81%a7%e3%83%ad%e3%82%b0%e3%81%ae%e6%9b%b8%e3%81%8d%e5%87%ba%e3%81%97%e3%81%ab%e5%a4%b1%e6%95%97%e3%81%99%e3%82%8b-2","status":"publish","type":"post","link":"https:\/\/blog.daichang.me\/?p=400","title":{"rendered":"unbound \u3067\u30ed\u30b0\u306e\u66f8\u304d\u51fa\u3057\u306b\u5931\u6557\u3059\u308b"},"content":{"rendered":"<p>\u81ea\u5b85\u306e DNS \u3092 NSD &amp; Unbound (Raspbian stretch) \u304b\u3089 Unbound (Ubuntu Focal Fossa) \u306e\u307f\u306b\u5909\u66f4\u3057\u307e\u3057\u305f\u3002<br \/>\n\u30c8\u30e9\u30d6\u30eb\u5bfe\u51e6\u306e\u305f\u3081\u306b\u3001\u4e00\u6642\u7684\u306b\u30af\u30a8\u30ea\u30ed\u30b0\u51fa\u529b\u3092\u3057\u305f\u3044\u3068\u304d\u304c\u3042\u308b\u306e\u3067\u3059\u304c\u3001\u305d\u306e\u3068\u304d\u306b syslog \u3092\u6c5a\u3055\u308c\u308b\u306e\u306f\u56f0\u308a\u307e\u3059\u3002<br \/>\n\u305d\u306e\u305f\u3081\u3001\u30ed\u30b0\u3092\u5225\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066\u66f8\u304d\u51fa\u3057\u305f\u3044\u306e\u3067\u3059\u304c\u3001\u66f8\u304d\u51fa\u3057\u306b\u5931\u6557\u3057\u307e\u3057\u305f\u306e\u3067\u3001\u305d\u306e\u5bfe\u51e6\u5185\u5bb9\u3092\u30e1\u30e2\u306b\u6b8b\u3057\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\n<!--more--><\/p>\n<p>\u305d\u306e\u3068\u304d\u306e\u30ed\u30b0\u306f\u3053\u3061\u3089\u3002<\/p>\n<pre class=\"prettyprint linenums\">error: Could not open logfile &#47;var&#47;log&#47;unbound&#47;unbound.log: Permission denied\r\n<\/pre>\n<p>\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u306b\u554f\u984c\u304c\u3042\u308b\u304b\u306e\u3088\u3046\u306b\u51fa\u3066\u3044\u307e\u3059\u304c\u3001\u65e2\u306b\u30d5\u30a1\u30a4\u30eb\u306f\u4f5c\u6210\u3057\u3001\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u306f\u9069\u5207\u306b unbound \u306b\u6e21\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u3067\u306f\u3001\u4f55\u304c\u554f\u984c\u306a\u306e\u304b\u3002\u7b54\u3048\u306f AppArmor \u306b\u3088\u308b\u3082\u306e\u3067\u3057\u305f\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001unbound \u306b\u95a2\u3059\u308b\u30dd\u30ea\u30b7\u30fc\u3092\u8a18\u8f09\u3057\u3001\u305d\u308c\u3092 AppArmor \u306b\u8aad\u307e\u305b\u305f\u5f8c\u3001unbound \u3092\u518d\u8d77\u52d5\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"prettyprint linenums\">% sudo vim &#47;etc&#47;apparmor.d&#47;local&#47;usr.sbin.unbound\r\n&#47;var&#47;log&#47;unbound&#47;unbound.log rw,\r\n\r\n\r\n% sudo apparmor_parser -r &#47;etc&#47;apparmor.d&#47;usr.sbin.unbound\r\n% sudo systemctl restart unbound.service\r\n<\/pre>\n<p>\u3053\u308c\u3067 unbound \u306e\u30ed\u30b0\u3092\u66f8\u304d\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u81ea\u5b85\u306e DNS \u3092 NSD &amp; Unbound (Raspbian stretch) \u304b\u3089 Unbound (Ubuntu Focal Fossa) \u306e\u307f\u306b\u5909\u66f4\u3057\u307e\u3057\u305f\u3002 \u30c8\u30e9\u30d6\u30eb\u5bfe\u51e6\u306e\u305f\u3081\u306b\u3001\u4e00\u6642\u7684\u306b\u30af\u30a8\u30ea\u30ed\u30b0 [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"https:\/\/blog.daichang.me\/?p=400\">\u7d9a\u304d\u3092\u8aad\u3080&#8230;<span class=\"screen-reader-text\"> from unbound \u3067\u30ed\u30b0\u306e\u66f8\u304d\u51fa\u3057\u306b\u5931\u6557\u3059\u308b<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[8,14,25,26],"class_list":["post-400","post","type-post","status-publish","format-standard","hentry","category-tech","tag-dns","tag-linux","tag-ubuntu","tag-unbound"],"_links":{"self":[{"href":"https:\/\/blog.daichang.me\/index.php?rest_route=\/wp\/v2\/posts\/400","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.daichang.me\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.daichang.me\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.daichang.me\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.daichang.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=400"}],"version-history":[{"count":1,"href":"https:\/\/blog.daichang.me\/index.php?rest_route=\/wp\/v2\/posts\/400\/revisions"}],"predecessor-version":[{"id":433,"href":"https:\/\/blog.daichang.me\/index.php?rest_route=\/wp\/v2\/posts\/400\/revisions\/433"}],"wp:attachment":[{"href":"https:\/\/blog.daichang.me\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=400"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.daichang.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=400"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.daichang.me\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=400"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}