{"id":463,"date":"2021-12-15T14:33:28","date_gmt":"2021-12-15T05:33:28","guid":{"rendered":"https:\/\/blog.nishinari.or.jp\/?p=463"},"modified":"2021-12-16T01:04:38","modified_gmt":"2021-12-15T16:04:38","slug":"%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e5%86%8d%e6%a7%8b%e7%af%89%e8%a6%9a%e6%9b%b8%ef%bc%88006%ef%bc%89%e3%83%bc%e3%82%a4%e3%83%b3%e3%83%95%e3%83%a9%e6%95%b4%e5%82%99%ef%bc%8803%ef%bc%89","status":"publish","type":"post","link":"https:\/\/blog.nishinari.or.jp\/?p=463","title":{"rendered":"\u30b5\u30fc\u30d0\u30fc\u518d\u69cb\u7bc9\u899a\u66f8\uff08006\uff09\u30fc\u30a4\u30f3\u30d5\u30e9\u6574\u5099\uff0803\uff09"},"content":{"rendered":"<p>\u25ceDNS \u8a2d\u5b9a<br \/>\n\u30cd\u30c3\u30c8\u74b0\u5883\u30fc\u30a4\u30f3\u30d5\u30e9\u6574\u5099\u306e\u5927\u304d\u306a\u300c\u809d\u300d\u3068\u306a\u308b\u306e\u304c\u3001DNS\uff08Domain Name Server\uff09\u3067\u3042\u308b\u3002\u307e\u305a\u3001\u30cd\u30fc\u30e0\u30b5\u30fc\u30d0\u30fc\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\uff08\u30c7\u30fc\u30e2\u30f3\uff09\u3068\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002\u4e3b\u306b\u5916\u306b\u5411\u3051\u305f\u30b5\u30fc\u30d0\u30fc\u3067\u3042\u308b\u306e\u3067\u3001\u516c\u958bIP\u756a\u53f7\u21d4\u30c9\u30e1\u30a4\u30f3\u540d\u306e\u300c\u540d\u524d\u89e3\u6c7a\u300d\u3092\u56f3\u308b\u3002\u30c9\u30e1\u30a4\u30f3\u540d\u306f\u3001nishinari.or.jp \u3068nishinari.coop \u306e\u4e8c\u3064\u3001\u305d\u308c\u305e\u308c\u5225\u306e\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u306b\u5272\u308a\u4ed8\u3051\u308b\u3002\u307e\u305f\u3001nishinari.or.jp \u306f\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u30fc\u3082\u517c\u306d\u308b\u306e\u3067\u3001\u300c\u6b63\u5f15\u304d\u300d\u3068\u300c\u9006\u5f15\u304d\u300d\u306e\u540d\u524d\u89e3\u6c7a\u3068\u3059\u308b\u3002\uff08\u305d\u3046\u3057\u306a\u3044\u3068\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fc\u306e\u9762\u3067\u3001\u30e1\u30fc\u30eb\u3055\u308c\u306a\u3044\u30b5\u30fc\u30d0\u30fc\u304c\u3042\u308b\u3002\u4e0b\u56f3\u53c2\u7167\uff09<\/p>\n<div id='gallery-1' class='gallery galleryid-463 gallery-columns-2 gallery-size-medium'><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/blog.nishinari.or.jp\/wp-content\/uploads\/2021\/12\/01.png'><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"69\" src=\"https:\/\/blog.nishinari.or.jp\/wp-content\/uploads\/2021\/12\/01-300x69.png\" class=\"attachment-medium size-medium\" alt=\"\" srcset=\"https:\/\/blog.nishinari.or.jp\/wp-content\/uploads\/2021\/12\/01-300x69.png 300w, https:\/\/blog.nishinari.or.jp\/wp-content\/uploads\/2021\/12\/01-1024x234.png 1024w, https:\/\/blog.nishinari.or.jp\/wp-content\/uploads\/2021\/12\/01-768x176.png 768w, https:\/\/blog.nishinari.or.jp\/wp-content\/uploads\/2021\/12\/01.png 1102w\" sizes=\"auto, 100vw\" \/><\/a>\n\t\t\t<\/div><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/blog.nishinari.or.jp\/wp-content\/uploads\/2021\/12\/02.png'><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"122\" src=\"https:\/\/blog.nishinari.or.jp\/wp-content\/uploads\/2021\/12\/02-300x122.png\" class=\"attachment-medium size-medium\" alt=\"\" srcset=\"https:\/\/blog.nishinari.or.jp\/wp-content\/uploads\/2021\/12\/02-300x122.png 300w, https:\/\/blog.nishinari.or.jp\/wp-content\/uploads\/2021\/12\/02-1024x415.png 1024w, https:\/\/blog.nishinari.or.jp\/wp-content\/uploads\/2021\/12\/02-768x311.png 768w, https:\/\/blog.nishinari.or.jp\/wp-content\/uploads\/2021\/12\/02.png 1160w\" sizes=\"auto, 100vw\" \/><\/a>\n\t\t\t<\/div><\/figure>\n\t\t<\/div>\n\n<p><code><br \/>\n# apt -y install bind9 bind9utils<br \/>\n<\/code><br \/>\n\u3053\u3053\u304b\u3089\u304c\u8a2d\u5b9a\u3067\u3042\u308b\u3002<br \/>\n<code><br \/>\n# jed \/etc\/bind\/named.conf<br \/>\n<\/code><br \/>\n<code><br \/>\ninclude \"\/etc\/bind\/named.conf.options\";<br \/>\ninclude \"\/etc\/bind\/named.conf.local\";<br \/>\ninclude \"\/etc\/bind\/named.conf.default-zones\";<br \/>\ninclude \"\/etc\/bind\/named.conf.external-zones\";<br \/>\n<\/code><br \/>\n<code><br \/>\n# jed \/etc\/bind\/named.conf.options<br \/>\n<\/code><br \/>\n<code><br \/>\noptions {<br \/>\ndirectory \"\/var\/cache\/bind\";<br \/>\ndnssec-validation auto;<br \/>\n# IPV6 \u3092\u5229\u7528\u3057\u306a\u3044\u5834\u5408\u306f [any] \u3092 [none] \u306b\u5909\u66f4<br \/>\nlisten-on-v6 { none; };<br \/>\n};<br \/>\n<\/code><br \/>\n\u3053\u3053\u3067\u306f\u3001nishinari.or.jp \u3068 nishinari.coop \u306e2\u3064\u306e\u30c9\u30e1\u30a4\u30f3\u3092\u5b9a\u7fa9\u3059\u308b\u3002\u524d\u8005\u306f\u3001\u300c\u9006\u5f15\u304d\u300d\u53ef\u80fd\u3068\u3057\u3001\u307e\u305a\u3001\u5b9a\u7fa9\u30d5\u30a1\u30a4\u30eb\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u66f8\u304f\u3002<br \/>\n<code><br \/>\n# jed named.conf.external-zones<br \/>\n# \u81ea\u8eab\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3068\u30c9\u30e1\u30a4\u30f3\u540d\u306e\u5b9a\u7fa9\u3092\u8ffd\u8a18<br \/>\nzone \"nishinari.or.jp\" IN {<br \/>\ntype master;<br \/>\nfile \"\/etc\/bind\/nishinari.or.jp.zone\";<br \/>\nallow-update { none; };<br \/>\n};<br \/>\nzone \"nishinari.coop\" IN {<br \/>\ntype master;<br \/>\nfile \"\/etc\/bind\/nishinari.coop.zone\";<br \/>\nallow-update { none; };<br \/>\n};<br \/>\nzone \"xxxh.xxx.xxx.210.in-addr.arpa\" IN {<br \/>\ntype master;<br \/>\nfile \"\/etc\/bind\/xxxh.xxx.xxx.210.in-addr.arpa\";<br \/>\nallow-update { none; };<br \/>\n};<br \/>\n<\/code><br \/>\n<code><br \/>\nnishinari.or.jp \u30c9\u30e1\u30a4\u30f3\u306b\u306f\u3001\u540c\u4e00PC\u3067\u306e\u3001\u9055\u3063\u305fIP\u756a\u53f7\u3068\u3001\u5225PC\uff08\u4e88\u5099\u30b5\u30fc\u30d0\u30fc\uff09\u3067\u306e\u3001IP\u756a\u53f7\u3092\u5b9a\u7fa9\u3059\u308b\u3002<br \/>\n# jed nishinari.or.jp.zone<br \/>\n@ IN SOA komachi.nishinari.or.jp.  (<br \/>\n2021101001<br \/>\n10800<br \/>\n3600<br \/>\n604800<br \/>\n86400 )<br \/>\n;<br \/>\nIN NS xxx.nishinari.or.jp.<br \/>\nIN MX 10 mail.nishinari.or.jp.<br \/>\n;<br \/>\n; the role of servers (1)<br \/>\n;<br \/>\nmail.nishinari.or.jp. IN A xxx.xxx.xxx.210<br \/>\n;<br \/>\n; the female name of servers (1)<br \/>\n;<br \/>\nkomachi.nishinari.or.jp. IN A xxx.xxx.xxx.210<br \/>\nns.nishinari.or.jp. IN A xxx.xxx.xxx.210<br \/>\nnishinari.or.jp. IN A xxx.xxx.xxx.210<br \/>\nwww.nishinari.or.jp. IN A xxx.xxx.xxx.211<br \/>\nblog.nishinari.or.jp. IN A xxx.xxx.xxx.211<br \/>\njirou.nishinari.or.jp. IN A xxx.xxx.xxx.212<br \/>\n; miscellous name of servers<br \/>\n*.nishinari.or.jp. IN CNAME mail.nishinari.or.jp.<br \/>\n<\/code><br \/>\nxxx.xxx.xxx.210\uff5e213 \u306f\u3001\u9006\u5f15\u304d\u306e\u5b9a\u7fa9\u3082\u884c\u3046\u3002<br \/>\n<code><br \/>\n# jed xxxh.xxx.xxx.210.in-addr.arpa<br \/>\n@       IN      SOA     komachi.nishinari.or.jp.  (<br \/>\n2021101004<br \/>\n10800<br \/>\n3600<br \/>\n604800<br \/>\n86400 )<br \/>\n;<br \/>\nIN NS komachi.nishinari.or.jp.<br \/>\nIN MX 10 mail.nishinari.or.jp.<br \/>\n;<br \/>\n;<br \/>\n;<br \/>\n210     IN PTR   komachi.nishinari.or.jp.<br \/>\n211     IN PTR   www.nishinari.or.jp.<br \/>\n212     IN PTR   jirou.nishinari.or.jp.<br \/>\n213     IN PTR   takeru.nishinari.coop.<\/code><br \/>\n<code><br \/>\n# jed nishinari.coop.zone<br \/>\n@ IN SOA xxx.nishinari.coop.  (<br \/>\n2021101001 ; Serial<br \/>\n10800    ; Refresh<br \/>\n3600     ; Retry<br \/>\n604800   ; Expire<br \/>\n86400 )  ; Minimum<br \/>\n;<br \/>\nIN NS xxx.nishinari.or.jp.<br \/>\n;<br \/>\nwww.nishinari.coop. IN A xxx.xxx.xxx.213<br \/>\nnishinari.coop. IN A xxx.xxx.101.213<br \/>\nmatsubokkuri.nishinari.coop. IN CNAME nishinari.coop.<br \/>\n<\/code><br \/>\n\u30af\u30e9\u30a4\u30a8\u30f3\u30c8\u3068\u3057\u3066\u3001Macbook\u304b\u3089\u306e\u540d\u524d\u89e3\u6c7a\uff08dig\uff09\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3002<br \/>\n<code><br \/>\noosato-no-MacBook-Air:~ mitsu$ dig mail.nishinari.or.jp<br \/>\n<\/code><br \/>\n<code><br \/>\n; &lt;&lt;&gt;&gt; DiG 9.10.6 &lt;&lt;&gt;&gt; mail.nishinari.or.jp<br \/>\n;; global options: +cmd<br \/>\n;; Got answer:<br \/>\n;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: NOERROR, id: 63333<br \/>\n;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1<\/p>\n<p>;; OPT PSEUDOSECTION:<br \/>\n; EDNS: version: 0, flags:; udp: 512<br \/>\n;; QUESTION SECTION:<br \/>\n;mail.nishinari.or.jp. IN A<\/p>\n<p>;; ANSWER SECTION:<br \/>\nmail.nishinari.or.jp. 21600 IN A xxx.xxx.xxx.210<\/p>\n<p>;; Query time: 17 msec<br \/>\n;; SERVER: 8.8.8.8#53(8.8.8.8)<br \/>\n;; WHEN: Wed Dec 08 08:33:46 JST 2021<br \/>\n;; MSG SIZE rcvd: 65<br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u25ceDNS \u8a2d\u5b9a \u30cd\u30c3\u30c8\u74b0\u5883\u30fc\u30a4\u30f3\u30d5\u30e9\u6574\u5099\u306e\u5927\u304d\u306a\u300c\u809d\u300d\u3068\u306a\u308b\u306e\u304c\u3001DNS\uff08Domain Name Server\uff09\u3067\u3042\u308b\u3002\u307e\u305a\u3001\u30cd\u30fc\u30e0\u30b5\u30fc\u30d0\u30fc\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\uff08\u30c7\u30fc\u30e2\u30f3\uff09\u3068\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002\u4e3b\u306b\u5916\u306b\u5411\u3051\u305f\u30b5\u30fc\u30d0 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.nishinari.or.jp\/?p=463\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u30b5\u30fc\u30d0\u30fc\u518d\u69cb\u7bc9\u899a\u66f8\uff08006\uff09\u30fc\u30a4\u30f3\u30d5\u30e9\u6574\u5099\uff0803\uff09&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[14,13],"tags":[],"class_list":["post-463","post","type-post","status-publish","format-standard","hentry","category-ubuntu","category-13"],"_links":{"self":[{"href":"https:\/\/blog.nishinari.or.jp\/index.php?rest_route=\/wp\/v2\/posts\/463","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.nishinari.or.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.nishinari.or.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.nishinari.or.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.nishinari.or.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=463"}],"version-history":[{"count":18,"href":"https:\/\/blog.nishinari.or.jp\/index.php?rest_route=\/wp\/v2\/posts\/463\/revisions"}],"predecessor-version":[{"id":486,"href":"https:\/\/blog.nishinari.or.jp\/index.php?rest_route=\/wp\/v2\/posts\/463\/revisions\/486"}],"wp:attachment":[{"href":"https:\/\/blog.nishinari.or.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=463"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.nishinari.or.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=463"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.nishinari.or.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=463"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}