{"id":1879,"date":"2024-06-11T13:26:19","date_gmt":"2024-06-11T04:26:19","guid":{"rendered":"https:\/\/knowhow.hirohiro716.com\/?p=1879"},"modified":"2026-02-12T11:14:48","modified_gmt":"2026-02-12T02:14:48","slug":"bind%e3%81%a7%e7%89%b9%e5%ae%9a%e3%81%ae%e3%83%89%e3%83%a1%e3%82%a4%e3%83%b3%e3%82%92%e5%90%8d%e5%89%8d%e8%a7%a3%e6%b1%ba%e3%81%95%e3%81%9b%e3%81%aa%e3%81%84","status":"publish","type":"post","link":"https:\/\/weblog.hirohiro716.com\/?p=1879","title":{"rendered":"DNS\u30b5\u30fc\u30d0\u30fc(bind)\u3067\u7279\u5b9a\u306e\u30c9\u30e1\u30a4\u30f3\u3092\u540d\u524d\u89e3\u6c7a\u3055\u305b\u306a\u3044"},"content":{"rendered":"<pre class=\"brush: plain; title: \u74b0\u5883; notranslate\" title=\"\u74b0\u5883\">\r\nAlmaLinux release 8.10 (Cerulean Leopard)\r\nbind 9.11.36\r\n<\/pre>\n<p>bind\u306e\u8a2d\u5b9a\u306bRPZ(Response Policy Zones)\u306e\u8a2d\u5b9a\u3092\u8ffd\u8a18\u3059\u308b\u3002<br \/>\n\u203b\u5909\u66f4\u7b87\u6240\u306e\u307f\u8a18\u8f09<\/p>\n<pre class=\"brush: plain; title: \/etc\/named.conf; notranslate\" title=\"\/etc\/named.conf\">\r\noptions {\r\n        \u2026\r\n        response-policy { zone &quot;blocked-domains&quot;; };\r\n};\r\n\u2026\r\nzone &quot;blocked-domains&quot; {\r\n    type master;\r\n    file &quot;blocked-domains.zone&quot;;\r\n};\r\n<\/pre>\n<p>\u3055\u3063\u304d\u6307\u5b9a\u3057\u305fzone\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u3002<\/p>\n<pre class=\"brush: plain; title: \/var\/named\/blocked-domains.zone; notranslate\" title=\"\/var\/named\/blocked-domains.zone\">\r\n$TTL 86400\r\n@    IN    SOA    localhost.    root.localhost. (\r\n           2024061101\r\n           10800\r\n           36400\r\n           604800\r\n           86400\r\n)\r\n@    IN    NS     localhost.\r\nexample.com CNAME .\r\n*.example.com CNAME .\r\n<\/pre>\n<p>\u4f5c\u6210\u3057\u305f\u3089\u30d5\u30a1\u30a4\u30eb\u306e\u6240\u6709\u30b0\u30eb\u30fc\u30d7\u3092named\u306b\u5909\u66f4\u3059\u308b\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# chown named:named \/var\/named\/blocked-domains.zone\r\n<\/pre>\n<p>\u30b5\u30fc\u30d3\u30b9\u3092\u518d\u8d77\u52d5\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# systemctl restart named\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>AlmaLinux release 8.10 (Cerulean Leopard) bind 9.11.36 bind\u306e\u8a2d\u5b9a\u306bRPZ(Response Policy Zones)\u306e\u8a2d\u5b9a\u3092\u8ffd\u8a18\u3059\u308b\u3002 \u203b\u5909\u66f4\u7b87\u6240\u306e\u307f\u8a18\u8f09 o [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-1879","post","type-post","status-publish","format-standard","hentry","category-linux"],"views":943,"_links":{"self":[{"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=\/wp\/v2\/posts\/1879","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1879"}],"version-history":[{"count":9,"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=\/wp\/v2\/posts\/1879\/revisions"}],"predecessor-version":[{"id":3193,"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=\/wp\/v2\/posts\/1879\/revisions\/3193"}],"wp:attachment":[{"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1879"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1879"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/weblog.hirohiro716.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1879"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}