{"id":1094,"date":"2020-01-02T16:19:49","date_gmt":"2020-01-02T07:19:49","guid":{"rendered":"http:\/\/sunao-mita.pgw.jp\/blog\/?p=1094"},"modified":"2020-01-03T09:34:35","modified_gmt":"2020-01-03T00:34:35","slug":"%e5%b1%8b%e5%86%85%e3%81%ae%e3%83%8d%e3%83%bc%e3%83%a0%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc","status":"publish","type":"post","link":"http:\/\/sunao-mita.pgw.jp\/blog\/?p=1094","title":{"rendered":"\u5bb6\u5c4b\u5185\u306e\u30cd\u30fc\u30e0\u30b5\u30fc\u30d0\u30fc"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">\u30ed\u30fc\u30ab\u30eb\u306e\u30cd\u30fc\u30e0\u30b5\u30fc\u30d0\u30fc<\/h3>\n\n\n\n<p>\u7d30\u304b\u3044\u3053\u3068\u306f\u77e5\u308a\u307e\u305b\u3093\u304c\u3001\u73fe\u5728 IPv4\u3067\u6a5f\u80fd\u3059\u308b\u30cd\u30fc\u30e0\u30b5\u30fc\u30d0\u30fc\u3092\u5bb6\u306e\u4e2d\u306b\u7acb\u3066\u3066\u3044\u307e\u3059\u3002\u5bb6\u5c4b\u5185\u306e\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30a2\u30c9\u30ec\u30b9\u3092\u5272\u308a\u632f\u308b DHCP\u30b5\u30fc\u30d0\u30fc\u306b\u3001\u30ed\u30fc\u30ab\u30eb\u306e\u30cd\u30fc\u30e0\u30b5\u30fc\u30d0\u30fc\u306e\u30a2\u30c9\u30ec\u30b9\u3092\u6e21\u3057\u3066\u3001IPv4 \/ IPv6 \u30a2\u30c9\u30ec\u30b9\u5171\u306b\u540d\u524d\u89e3\u6c7a\u3092\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h6 class=\"wp-block-heading\">\u65e5\u672c\u56fd\u5185\u3067\u306f\u3001IPv4\/IPv6\u304c\u6df7\u5728\u3057\u3066\u3044\u308b\u3089\u3057\u3044<\/h6>\n\n\n\n<p>\u3086\u304f\u3086\u304f\u306f\u30cd\u30c3\u30c8\u74b0\u5883\u304c\u3001IPv6\u306e\u4e16\u754c\u306b\u5b8c\u5168\u79fb\u884c\u3057\u3066\u4e0d\u8981\u306b\u306a\u308b\u306e\u3060\u308d\u3046\u3068\u601d\u3063\u3066\u3044\u307e\u3059\u3002\u8da3\u5473\u3067\u5317\u6d77\u9053\u3068\u304b\u51fa\u6b69\u304f\u3053\u3068\u3082\u3042\u3063\u3066\u3001\u65c5\u5148\u304b\u3089\u30ea\u30e2\u30fc\u30c8\u3067\u5bb6\u306b\u7f6e\u304b\u308c\u305f\u516c\u958b\u30b5\u30fc\u30d0\u30fc\u3092\u64cd\u4f5c\u3059\u308b\u3053\u3068\u3082\u6642\u3005\u3042\u308b\u306e\u3067\u3059\u304c\u3001\u5834\u6240\u306b\u3088\u3063\u3066\u306f IPv4 \u3060\u3063\u305f\u308a IPv6\u3060\u3063\u305f\u308a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>IPv4 \u306a\u3089\u5bb6\u306b\u7f6e\u304b\u308c\u305f\u30db\u30fc\u30e0\u30b2\u30fc\u30c8\u30a6\u30a7\u30a4\u3067\u3001\u5165\u53e3\u306e\u30b0\u30ed\u30fc\u30d0\u30eb\u30a2\u30c9\u30ec\u30b9\u304b\u3089\u5bb6\u5c4b\u5185\u306b\u7f6e\u304b\u308c\u305f\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30a2\u30c9\u30ec\u30b9\u306e\u516c\u958b\u30b5\u30fc\u30d0\u30fc\u306b\u30a2\u30c9\u30ec\u30b9\u5909\u63db\u3057\u3066\u63a5\u7d9a\u3057\u307e\u3059\u304c\u3001IPv6 \u306e\u30a2\u30c9\u30ec\u30b9\u306f\u5bb6\u5c4b\u5185\u306e\u6a5f\u5668\u306b\u3082\u4e00\u5f8b\u306b\u5272\u308a\u632f\u3089\u308c\u3066\u3044\u3066\u3001\u5916\u90e8\u306b\u7f6e\u304b\u308c\u305f DDNS \u3067\u540d\u524d\u304b\u3089\u76f4\u63a5\u30a2\u30c9\u30ec\u30b9\u304c\u5f15\u304b\u308c\u308b\u3068\u3001\u305d\u306e\u307e\u307e\u30c0\u30a4\u30ec\u30af\u30c8\u306b\u6a5f\u5668\u306b\u63a5\u7d9a\u3055\u308c\u308b\u30a4\u30e1\u30fc\u30b8\u306a\u306e\u3067\u5bb6\u5c4b\u5185\u306b\u30ed\u30fc\u30ab\u30eb\u306e\u30cd\u30fc\u30e0\u30b5\u30fc\u30d0\u30fc\u306f\u4e0d\u8981\u306e\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">\u305f\u3076\u3093\u5f53\u9762\u306f\u30ed\u30fc\u30ab\u30eb\u306e\u30cd\u30fc\u30e0\u30b5\u30fc\u30d0\u30fc\u304c\u5fc5\u8981\u304b\u3068<\/h5>\n\n\n\n<p>\u3044\u305a\u308c\u306b\u3057\u3066\u3082\u30ed\u30fc\u30ab\u30eb\u3067\u3001IPv4 \u3092\u4f75\u7528\u3057\u3066\u3044\u308b\u6a5f\u5668\u304c\u5bb6\u5c4b\u5185\u306b\u73fe\u5b58\u3057\u3066\u3044\u308b\u9650\u308a\u3001\u30ed\u30fc\u30ab\u30eb\u306e\u30cd\u30fc\u30e0\u30b5\u30fc\u30d0\u30fc\u304c\u5fc5\u8981\u306a\u306e\u3060\u308d\u3046\u3068\u601d\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h6 class=\"wp-block-heading\">\u516c\u958bWeb\u30b5\u30fc\u30d0\u30fc\u3092\u30ed\u30fc\u30ab\u30eb\u30cd\u30fc\u30e0\u30b5\u30fc\u30d0\u30fc\u4ed5\u7acb\u3066\u307e\u3059<\/h6>\n\n\n\n<p>\u305d\u3053\u3067\u3001\u30cf\u30fc\u30c9\u7684\u306b\u306f\u4f59\u88d5\u306e\u3042\u308b\u30aa\u30fc\u30d0\u30fc\u30b9\u30da\u30c3\u30af\u306e\u30e9\u30ba\u30d1\u30a4\u3067\u3001\u3053\u306e\u30d6\u30ed\u30b0\u304c\u5229\u7528\u3057\u3066\u3044\u308b\u516c\u958b\u30b5\u30fc\u30d0\u30fc\u3092\u30ed\u30fc\u30ab\u30eb\u306e\u30cd\u30fc\u30e0\u30b5\u30fc\u30d0\u30fc\u306e\uff11\u3064\u3068\u3057\u3066\u6a5f\u80fd\u8ffd\u52a0\u3057\u3088\u3046\u3068\u8003\u3048\u305f\u306e\u3067\u3059\u304c\u3001\u904e\u53bb\u306e\u7acb\u4e0a\u3052\u304b\u3089\u9577\u3044\u5e74\u6708\u304c\u904e\u304e\u3066\u3044\u308b\u306e\u3067\u4f5c\u696d\u5185\u5bb9\u3082\u66d6\u6627\u3067\u3059\u3002\u6b21\u304c\u3042\u308b\u306e\u304b\u306f\u5206\u304b\u308a\u307e\u305b\u3093\u304c\u3001\u30c8\u30e9\u30d6\u3063\u305f\u6642\u306e\u53c2\u8003\u8cc7\u6599\u3068\u3057\u3066\u3082\u6709\u52b9\u304b\u3068\u601d\u3044\u307e\u3068\u3081\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">\u30cd\u30fc\u30e0\u30b5\u30fc\u30d0\u30fc\u306eBIND9 \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h5>\n\n\n\n<p>\u6b21\u306e\u30d5\u30a1\u30a4\u30eb\u30ea\u30b9\u30c8\u304c\u3001\u30cd\u30fc\u30e0\u30b5\u30fc\u30d0\u30fc\u306e BIND9 \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u6642\u306e\u521d\u671f\u72b6\u614b\u306e\u30d5\u30a1\u30a4\u30eb\u7fa4\u3067\u3059\u3002\u4ee5\u524d\u306b\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u305f\u6642\u306f\u3001 db.root \u306e\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u3063\u305f\u3088\u3046\u3067\u3059\u304c\u3001\u540c\u69d8\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u5225\u306e\u5834\u6240\u306b\u79fb\u3055\u308c\u305f\u3088\u3046\u3067\u3059\u3002 \u2192 \/usr\/share\/dns\/root.hints<\/p>\n\n\n<pre>root@web-server:~# ls -l \/etc\/bind\n\u5408\u8a08 48\n-rw-r--r-- 1 root root 2761  6\u6708 21  2019 bind.keys\n-rw-r--r-- 1 root root  237  6\u6708 21  2019 db.0\n-rw-r--r-- 1 root root  271  6\u6708 21  2019 db.127\n-rw-r--r-- 1 root root  237  6\u6708 21  2019 db.255\n-rw-r--r-- 1 root root  353  6\u6708 21  2019 db.empty\n-rw-r--r-- 1 root root  270  6\u6708 21  2019 db.local\n-rw-r--r-- 1 root bind  463  6\u6708 21  2019 named.conf\n-rw-r--r-- 1 root bind  498  6\u6708 21  2019 named.conf.default-zones\n-rw-r--r-- 1 root bind  165  6\u6708 21  2019 named.conf.local\n-rw-r--r-- 1 root bind  846  6\u6708 21  2019 named.conf.options\n-rw-r----- 1 bind bind   77  1\u6708  1 12:10 rndc.key\n-rw-r--r-- 1 root root 1317  6\u6708 21  2019 zones.rfc1918\n<\/pre>\n\n\n<p>db.root \u306e\u79fb\u884c\u306f\u3001named.conf.default-zones \u306e\u4e2d\u306e\u982d\u306e\u90e8\u5206\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u8907\u6570\u30b5\u30fc\u30d0\u30fc\u3092\u7acb\u3066\u3001\u30de\u30b9\u30bf\u30fc\u3068\u30b9\u30ec\u30fc\u30d6\u306b\u4ed5\u7acb\u3066\u307e\u3059<\/h4>\n\n\n\n<p>\u3053\u306e\u30e9\u30ba\u30d1\u30a4\u30b5\u30fc\u30d0\u30fc\u3092\u30de\u30b9\u30bf\u30fc\u306b\u3057\u3066\u3001\u4ed6\u306b\u7a3c\u50cd\u3059\u308b\u30cd\u30fc\u30e0\u30b5\u30fc\u30d0\u30fc\u3092\u30b9\u30ec\u30fc\u30d6\u3068\u3057\u3066\u30c7\u30fc\u30bf\u3092\u53d7\u53d6\u308a\u306a\u304c\u3089\u7a3c\u50cd\u3059\u308b\u30b5\u30fc\u30d0\u30fc\u306b\u4ed5\u7acb\u3066\u308b\u4e88\u5b9a\u3067\u3059\u3002<\/p>\n\n\n<pre>bind.keys  <span style=\"color: #999999;\">\u2026\u305d\u306e\u307e\u307e<\/span>\ndb.0     <span style=\"color: #999999;\">\u2026\u305d\u306e\u307e\u307e<\/span>\ndb.127   <span style=\"color: #999999;\">\u2026\u305d\u306e\u307e\u307e<\/span>\ndb.255   <span style=\"color: #999999;\">\u2026\u305d\u306e\u307e\u307e<\/span>\ndb.empty <span style=\"color: #999999;\">\u2026\u305d\u306e\u307e\u307e<\/span>\ndb.local <span style=\"color: #999999;\">\u2026\u305d\u306e\u307e\u307e<\/span>\nnamed.conf <span style=\"color: #999999;\">\u2026\u305d\u306e\u307e\u307e<\/span>\nnamed.conf.default-zones <span style=\"color: #999999;\">\u2026\u305d\u306e\u307e\u307e<\/span>\n<strong>named.conf.local<\/strong>   <span style=\"color: #ff6600;\">\u2026\u5909\u66f4\u3059\u308b (\u81ea\u5206\u3067\u5b9a\u7fa9\u3057\u305f\u3044\u30be\u30fc\u30f3\u3092\u3053\u3053\u3067\u6307\u5b9a\u3059\u308b)<\/span>\n<strong>named.conf.options<\/strong> <span style=\"color: #ff6600;\">\u2026\u5909\u66f4\u3059\u308b (\u5168\u4f53\u7684\u306a\u52d5\u4f5c\u3092\u5b9a\u7fa9\u3059\u308b\u3089\u3057\u3044)<\/span>\nrndc.key      <span style=\"color: #999999;\">\u2026\u305d\u306e\u307e\u307e<\/span>\nzones.rfc1918 <span style=\"color: #999999;\">\u2026\u305d\u306e\u307e\u307e\n<\/span><\/pre>\n\n\n<h5 class=\"wp-block-heading\">\u30be\u30fc\u30f3\u306e\u5b9a\u7fa9\u306f\u30d5\u30a1\u30a4\u30eb\u3092\u8ffd\u52a0\u3001\u30d5\u30a1\u30a3\u30eb\u3068\u306e\u5bfe\u5fdc\u3092\u8a18\u8ff0<\/h5>\n\n\n\n<p>\u81ea\u5206\u3067\u5b9a\u7fa9\u3059\u308b\u30be\u30fc\u30f3\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u3001\u3053\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u8ffd\u52a0\u3059\u308b\u3068\u5171\u306b\u3001\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u914d\u5e03\u306e\u5143\u306b\u306a\u308b\u30de\u30b9\u30bf\u30fc\u304b\u3001\u914d\u5e03\u3055\u308c\u305f\u30b3\u30d4\u30fc\u306e\u30b9\u30ec\u30fc\u30d6\u306a\u306e\u304b\u3001\u66f4\u306b\u306f\u3069\u3053\u304b\u3089\u914d\u5e03\u3092\u53d7\u53d6\u308b\u306e\u304b\u3084\u3001\u3069\u3053\u306b\u914d\u5e03\u3059\u308b\u306e\u304b\u3082\u542b\u3081\u3066\u3001 named.conf.local \u30d5\u30a1\u30a4\u30eb\u306b\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">\u30b5\u30fc\u30d0\u30fc\u306e\u5168\u4f53\u7684\u306a\u632f\u821e\u3092\u5b9a\u7fa9<\/h5>\n\n\n\n<p>\u307e\u305f\u3001\u30ed\u30fc\u30ab\u30eb\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u6d41\u308c\u3084\u89e3\u6c7a\u3067\u304d\u306a\u3044\u60c5\u5831\u3092\u4e0a\u4f4d\u306e\u30b5\u30fc\u30d0\u30fc\u306b\u6e21\u3059\u5148\u306b\u3064\u3044\u3066\u306e\u30b5\u30fc\u30d0\u30fc\u5168\u4f53\u306e\u52d5\u4f5c\u306b\u95a2\u3059\u308b\u60c5\u5831\u306a\u3069\u306f\u3001 named.conf.options \u30d5\u30a1\u30a4\u30eb\u306b\u8a18\u8ff0\u3059\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<p>named.conf.options \u306b\u306f\u3001\u6b21\u306e\u30d6\u30eb\u30fc\u306e\u90e8\u5206\u306e\u8ffd\u52a0\u3068\u4fee\u6b63\u3092\u884c\u3044\u307e\u3057\u305f\u3002\u3069\u3053\u304b\u3089\u306e\u60c5\u5831\u304b\u306f\u4e0d\u660e\u3067\u3059\u304c\u3001\u3044\u307e\u307e\u3067\u540c\u69d8\u306e\u8a2d\u5b9a\u3067\u7a3c\u50cd\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u6df1\u304f\u8003\u3048\u305a\u306b\u305d\u306e\u307e\u307e\u79fb\u884c\u3057\u307e\u3059\u3002<\/p>\n\n\n<pre><strong><span style=\"color: #0000ff;\">\/\/ LAN\u5185\u306eIP\u30a2\u30c9\u30ec\u30b9\u30b0\u30eb\u30fc\u30d7\u3092LOCAL\u3068\u5b9a\u7fa9\nacl \"LOCAL\" {\n  192.168.11.0\/24;\n  240d:1a:34d:7f00::\/64;\n  localhost;\n  localnets;\n};\n\n\/\/ \u30cd\u30fc\u30e0\u30b5\u30fc\u30d0\u30fc\u5171\u901a\u8a2d\u5b9a\n<\/span><\/strong>options {\n\tdirectory \"\/var\/cache\/bind\";\n\n\t\/\/ If there is a firewall between you and nameservers you want\n\t\/\/ to talk to, you may need to fix the firewall to allow multiple\n\t\/\/ ports to talk.  See http:\/\/www.kb.cert.org\/vuls\/id\/800113\n\n\t\/\/ If your ISP provided one or more IP addresses for stable \n\t\/\/ nameservers, you probably want to use them as forwarders.  \n\t\/\/ Uncomment the following block, and insert the addresses replacing \n\t\/\/ the all-0's placeholder.\n\n<strong><span style=\"color: #0000ff;\">\tforwarders { 8.8.8.8; 8.8.4.4;};\n\n        allow-query { LOCAL; };\n        allow-query-cache { LOCAL; };\n\n\tallow-transfer  { none; };\n\n\tmasterfile-format text;\n\n<\/span><\/strong>\t\/\/========================================================================\n\t\/\/ If BIND logs error messages about the root key being expired,\n\t\/\/ you will need to update your keys.  See https:\/\/www.isc.org\/bind-keys\n\t\/\/========================================================================\n\tdnssec-validation auto;\n\n<strong><span style=\"color: #0000ff;\">\tauth-nxdomain no;    # conform to RFC1035\n<\/span><\/strong>\tlisten-on-v6 { any; };\n};\n\n<\/pre>\n\n\n<p>192.168.11.0\/24 \u304c\u3001IPv4 \u306e\u30ed\u30fc\u30ab\u30eb\u30cd\u30c3\u30c8\u30a2\u30c9\u30ec\u30b9\u3067\u3001 240d:1a:\u301c::\/64 \u304c IPv6 \u306e\u30ed\u30fc\u30ab\u30eb\u30cd\u30c3\u30c8\u30a2\u30c9\u30ec\u30b9\u3067\u3059\u3002<\/p>\n\n\n\n<h6 class=\"wp-block-heading\">\u7ba1\u7406\u3059\u308b\u30be\u30fc\u30f3\u306e\u540d\u524d\u3068\u30a2\u30c9\u30ec\u30b9\u306e\u5bfe\u5fdc\u8868\u3092\u4f5c\u308a\u307e\u3059<\/h6>\n\n\n\n<p>\u305d\u3057\u3066\u3001\u81ea\u5206\u3067\u5b9a\u7fa9\u3057\u305f\u30be\u30fc\u30f3\u30d5\u30a1\u30a4\u30eb\u306f\u3001\u5f8c\u3067\u8b58\u5225\u3057\u3084\u3059\u3044\u3088\u3046\u306b \u301c.zone \u3092\u30d5\u30a1\u30a4\u30eb\u306e\u6700\u5f8c\u306b\u4ed8\u52a0\u3057\u3066\u304a\u304f\u3053\u3068\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n<pre>sunao-mita.pgw.jp.zone      \u2026\u540d\u524d\u304b\u3089\u30a2\u30c9\u30ec\u30b9\u306b\u5909\u63db\u3059\u308b\u5b9a\u7fa9\n11.168.192.rev.zone         \u2026IPv4\u306e\u30a2\u30c9\u30ec\u30b9\u304b\u3089\u540d\u524d\u306b\u5909\u63db\u3059\u308b\u9006\u5f15\u304d\u30d5\u30a1\u30a4\u30eb\n240d:1a:34d:7f00::.rev.zone \u2026IPv6\u306e\u30a2\u30c9\u30ec\u30b9\u304b\u3089\u540d\u524d\u306b\u5909\u63db\u3059\u308b\u9006\u5f15\u304d\u30d5\u30a1\u30a4\u30eb\n<span style=\"color: #999999;\">MyMemories.localdomain.zone \u2026\u8a66\u9a13\u7684\u306b\u5909\u63db\u3055\u305b\u308b\u30aa\u30de\u30b1\u306e\u30d5\u30a1\u30a4\u30eb<\/span><\/pre>\n\n\n<h3 class=\"wp-block-heading\">\u7ba1\u7406\u3059\u308b\u30be\u30fc\u30f3\u5b9a\u7fa9\u306e\u95a2\u9023\u4ed8\u3051<\/h3>\n\n\n\n<p>\u521d\u671f\u306e named.conf.local \u30d5\u30a1\u30a4\u30eb\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u5bfe\u5fdc\u3059\u308b\u30be\u30fc\u30f3\u306e\u5b9a\u7fa9\u3068\u5bfe\u5fdc\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u3001\u30de\u30b9\u30bf\u30fc\u3068\u3057\u3066\u8ee2\u9001\u3059\u308b\u5834\u5408\u306f\u9001\u308a\u5148\u306e\u30a2\u30c9\u30ec\u30b9\u3001\u30b9\u30ec\u30fc\u30d6\u3068\u3057\u3066\u53d7\u53d6\u308b\u306a\u3089\u30de\u30b9\u30bf\u30fc\u306b\u306a\u308b\u30b5\u30fc\u30d0\u30fc\u306e\u30a2\u30c9\u30ec\u30b9\u7b49\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n\n\n<pre>\/\/\n\/\/ Do any local configuration here\n\/\/\n  <span style=\"color: #ff0000;\">\/\/ \u3053\u306e\u90e8\u5206\u306b\u30be\u30fc\u30f3\u60c5\u5831\u3092\u8ffd\u52a0\u3057\u307e\u3059<\/span>\n\/\/ Consider adding the 1918 zones here, if they are not used in your\n\/\/ organization\n\/\/include \"\/etc\/bind\/zones.rfc1918\";  <span style=\"color: #ff0000;\">\/\/ \u30b3\u30e1\u30f3\u30c8\u304b\u3089\u6709\u52b9\u306b\u5909\u66f4\n<\/span><\/pre>\n\n\n<h5 class=\"wp-block-heading\">\u5b9a\u7fa9\u306e\u95a2\u9023\u4ed8\u3051\u4f8b<\/h5>\n\n\n\n<p>\u5358\u7d14\u306b\u5358\u72ec\u3067\u6a5f\u80fd\u3055\u305b\u308b\u3060\u3051\u306e\u30b5\u30fc\u30d0\u30fc\u306a\u3089\u3001\u6b63\u5f15\u304d\u9006\u5f15\u304d\u306e\u5404\u30be\u30fc\u30f3\u6bce\u306b\u5b9a\u7fa9\u3057\u3066\u3001\u6b21\u306e\u3088\u3046\u306a\u5185\u5bb9\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002\u3053\u306e\u5834\u5408\u306f\u3001\/etc\/bind \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4e0b\u306b sunao-mita.pgw.jp.zone \u3068\u547d\u540d\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u304c\u7f6e\u304b\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h6 class=\"wp-block-heading\">\u30b7\u30f3\u30d7\u30eb\u306a\u8a18\u8ff0\u4f8b\u3001\u5358\u72ec\u3067\u30d5\u30a1\u30a4\u30eb\u7ba1\u7406<\/h6>\n\n\n<pre>zone \"sunao-mita.pgw.jp\" {\n        type master;\n        file \"\/etc\/bind\/sunao-mita.pgw.jp.zone\";\n};\n<\/pre>\n\n\n<h5 class=\"wp-block-heading\">\u30de\u30b9\u30bf\u30fc\u30d5\u30a1\u30a4\u30eb\u3092\u7ba1\u7406\u3057\u3001\u30b9\u30ec\u30fc\u30d6\u306b\u8ee2\u9001<\/h5>\n\n\n\n<p>\u306a\u304a\u3001\u8907\u6570\u306e\u30cd\u30fc\u30e0\u30b5\u30fc\u30d0\u30fc\u3092\u7a3c\u50cd\u3055\u305b\u3066\u3044\u3066\u3001\u30de\u30b9\u30bf\u30fc\u306e\u30b5\u30fc\u30d0\u30fc\u306e\u30c7\u30fc\u30bf\u3092\u66f4\u65b0\u3057\u305f\u3089\u3001\u30b9\u30ec\u30fc\u30d6\u5074\u306e\u30b5\u30fc\u30d0\u30fc\u306b\u81ea\u52d5\u8ee2\u9001\u3055\u305b\u308b\u306b\u306f\u3001\u5404\u30be\u30fc\u30f3\u6bce\u306b\u6b21\u306e\u3088\u3046\u306a\u8a18\u8ff0\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n\n\n<pre>zone \"sunao-mita.pgw.jp\" {\n        type master;   <span style=\"color: #ff0000;\">\/\/ \u8ee2\u9001\u5148\u306e\u30b9\u30ec\u30fc\u30d6\u30b5\u30fc\u30d0\u30fc\u3092\u5217\u8a18<\/span>\n<span style=\"color: #0000ff;\">        allow-transfer { 192.168.11.23; 192.168.11.20; 192.168.11.21; };\n        notify yes;\n        also-notify { 192.168.11.23; 192.168.11.20; 192.168.11.21; };<\/span>\n        file \"\/etc\/bind\/sunao-mita.pgw.jp.zone\";\n};\n<\/pre>\n\n\n<p>\u793a\u3057\u305f\u30be\u30fc\u30f3\u306e\u5b9a\u7fa9\u306f\u3001\u30de\u30b9\u30bf\u30fc\u3068\u3057\u3066\u7ba1\u7406\u3057\u30b9\u30ec\u30fc\u30d6\uff13\u53f0\u306b\u914d\u9001\u3059\u308b\u5b9a\u7fa9\u3067\u3059\u3002\u30b9\u30ec\u30fc\u30d6\u5074\u3067\u306f\u3001\u53d7\u53d6\u3063\u305f\u30c7\u30fc\u30bf\u3092\u81ea\u5206\u3067\u7ba1\u7406\u3059\u308b\u30de\u30b9\u30bf\u30fc\u306e\u30c7\u30fc\u30bf\u3068\u6df7\u4e71\u3057\u306a\u3044\u3088\u3046\u306b\u3001slaves \u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u3066\u305d\u306e\u4e2d\u306b\u53d7\u53d6\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">\u30b9\u30ec\u30fc\u30d6\u3067\u3001\u30de\u30b9\u30bf\u30fc\u304b\u3089\u53d7\u53d6\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u5206\u3051\u308b<\/h5>\n\n\n<pre>zone \"sunao-mita.pgw.jp\" {\n        type <span style=\"color: #008000;\">slave<\/span>;\n        <span style=\"color: #0000ff;\">masters {\n                192.168.11.2;  <span style=\"color: #ff0000;\">\/\/ \u30de\u30b9\u30bf\u30fc\u306e\u30c7\u30fc\u30bf\u3092\u7ba1\u7406\u3059\u308b\u30b5\u30fc\u30d0\u30fc<\/span>\n        };<\/span>\n        file \"\/etc\/bind\/<span style=\"color: #ff00ff;\">slaves<\/span>\/sunao-mita.pgw.jp.zone\";\n};\n<\/pre>\n\n\n<p>\u30de\u30b9\u30bf\u30fc\u30c7\u30fc\u30bf\u306f\u3001\u5404\u30be\u30fc\u30f3\u6bce\u306b\u5b9a\u7fa9\u3059\u308b\u305f\u3081\u3001\u8907\u6570\u30b5\u30fc\u30d0\u30fc\u3067\u3001\u5404\u30be\u30fc\u30f3\u6bce\u306b\u30de\u30b9\u30bf\u30fc\u30c7\u30fc\u30bf\u3092\u7ba1\u7406\u3059\u308b\u30b5\u30fc\u30d0\u30fc\u3092\u6c7a\u3081\u3066\u7a3c\u50cd\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5c11\u3057\u5b9f\u884c\u3055\u305b\u3066\u307f\u3066\u3001\u30b9\u30ec\u30fc\u30d6\u5074\u306e\u30b5\u30fc\u30d0\u30fc\u306b\u30de\u30b9\u30bf\u30fc\u3067\u66f4\u65b0\u3057\u305f\u6700\u65b0\u306e\u30b7\u30ea\u30a2\u30eb\u30ca\u30f3\u30d0\u30fc\u306e\u30c7\u30fc\u30bf\u304c\u914d\u5e03\u3055\u308c\u305f\u3088\u3046\u3067\u3001\u7f6e\u304b\u308c\u3066\u3044\u308b\u306e\u3092\u78ba\u8a8d\u3067\u304d\u305f\u306e\u3067\u3001\u3053\u308c\u3067\u5b8c\u4e86\u3067\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h6 class=\"wp-block-heading\">\u7de8\u96c6\u3057\u305f\u30de\u30b9\u30bf\u30fc\u30c7\u30fc\u30bf\u3068\u914d\u5e03\u3055\u308c\u305f\u30b3\u30d4\u30fc<\/h6>\n\n\n\n<p>\u30b9\u30ec\u30fc\u30d6\u306b\u30b3\u30d4\u30fc\u3055\u308c\u305f\u30c7\u30fc\u30bf\u306f\u3001\u30de\u30b9\u30bf\u30fc\u5074\u306e\u66f4\u65b0\u3057\u305f\u30c7\u30fc\u30bf\u3092\u76f4\u63a5\u30b3\u30d4\u30fc\u3057\u305f\u3082\u306e\u3067\u306f\u306a\u304f\u3001\u9069\u5ea6\u306b\u7de8\u96c6\u3055\u308c\u3066\u914d\u5e03\u3055\u308c\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u53c2\u8003\u307e\u3067\u306b\u30de\u30b9\u30bf\u30fc\u5074\u306e\u539f\u672c\u3068\u30b9\u30ec\u30fc\u30d6\u5074\u306e\u30b3\u30d4\u30fc\u306e\u4e2d\u8eab\u3092\u8868\u793a\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u7d20\u4eba\u306e\u8a18\u8ff0\u5185\u5bb9\u306b\u554f\u984c\u304c\u591a\u304f\u3066\u9055\u3044\u304c\u5927\u304d\u3044\u306e\u304b\u306f\u5206\u304b\u308a\u307e\u305b\u3093\u304c\u2026<\/p>\n\n\n<pre>;;  sunao-mita.pgw.jp\n\n$TTL    86400\n@      IN      SOA    sunao-mita.pgw.jp.  root.sunao-mita.pgw.jp. (\n        2020010202      ;Serial\n        3600            ;Refresh\n        900             ;Retry\n        604800          ;Expire\n        86400           ;Minimum TTL\n)\n                IN      NS      dns.sunao-mita.pgw.jp.\n                IN      NS      dns2.sunao-mita.pgw.jp.\n                IN      NS      gate.sunao-mita.pgw.jp.\n                IN      MX      10 mail.sunao-mita.pgw.jp.\n\n                IN      A       192.168.11.2\n                IN      AAAA    240d:1a:34d:7f00:a284:cc24:64bd:daae\ndns2            IN      A       192.168.11.20\ndns             IN      A       192.168.11.2\nubuntu-sv       IN      A       192.168.11.199\nrpi1-disk       IN      A       192.168.11.23\nrpi1-disk       IN      AAAA    240d:1a:34d:7f00:11cf:af0d:3b62:8501\nubuntu-dtp      IN      A       192.168.11.100\ngate            IN      A       192.168.11.1\nvirt            IN      A       192.168.11.105\nRadio           IN      A       192.168.11.20\nDebianPogo      IN      A       192.168.11.22\nDebianPogo      IN      AAAA    240d:1a:34d:7f00:225:31ff:fe00:9df0\nmail            IN      A       192.168.11.2\nmail            IN      AAAA    240d:1a:34d:7f00:a284:cc24:64bd:daae\nPogoV6          IN      AAAA    240d:1a:34d:7f00:225:31ff:fe00:9df0\ndns2            IN      AAAA    240d:1a:34d:7f00:ba27:ebff:feac:28a8\ndns             IN      AAAA    240d:1a:34d:7f00:a284:cc24:64bd:daae\nwww             IN      A       192.168.11.2\nwww             IN      AAAA    240d:1a:34d:7f00:a284:cc24:64bd:daae\nRadioV6         IN      AAAA    240d:1a:34d:7f00:ba27:ebff:feac:28a8\nrpi1-com2       IN      A       192.168.11.21\nrpi1-com2       IN      AAAA    240d:1a:34d:7f00:ba27:ebff:fe0c:5ef3\nnote            IN      A       192.168.11.51\nnote            IN      AAAA    240d:1a:34d:7f00:3906:1714:acef:3e46\nweb-server      IN      A       192.168.11.2\nweb-server      IN      AAAA    240d:1a:34d:7f00:a284:cc24:64bd:daae\n\n\n\ncollection      IN      CNAME   virt\nshare           IN      CNAME   rpi1-disk\n<\/pre>\n\n\n<p>\u306a\u304a\u3001\u52d5\u304d\u304c\u628a\u63e1\u3067\u304d\u3066\u3044\u307e\u305b\u3093\u304c\u3001\u8a18\u8ff0\u30df\u30b9\u306b\u6c17\u304c\u4ed8\u304d\u4fee\u6b63\u3057\u3066\u30de\u30b9\u30bf\u30fc\u5074\u3067 bind9 \u3092 restart \u3059\u308b\u3068\u3001\u5185\u5bb9\u304c\u76f4\u3050\u306b\u53cd\u6620\u3057\u307e\u3057\u305f\u304c\u3001\u305d\u306e\u5f8c\u3082\u914d\u5e03\u3055\u308c\u3066\u3044\u308b\u306b\u3082\u95a2\u308f\u3089\u305a\u30b9\u30ec\u30fc\u30d6\u5074\u306e\u30c7\u30fc\u30bf\u5185\u5bb9\u306f\u53e4\u3044\u30b7\u30ea\u30a2\u30eb\u306e\u7269\u3092\u53d7\u53d6\u3063\u3066\u3044\u308b\u307e\u307e\u3067\u3057\u305f\u3002<\/p>\n\n\n<pre>$ORIGIN .\n$TTL 86400      ; 1 day\nsunao-mita.pgw.jp       IN SOA  sunao-mita.pgw.jp. root.sunao-mita.pgw.jp. (\n                                2020010202 ; serial\n                                3600       ; refresh (1 hour)\n                                900        ; retry (15 minutes)\n                                604800     ; expire (1 week)\n                                86400      ; minimum (1 day)\n                                )\n                        NS      dns.sunao-mita.pgw.jp.\n                        NS      dns2.sunao-mita.pgw.jp.\n                        NS      gate.sunao-mita.pgw.jp.\n                        A       192.168.11.2\n                        MX      10 mail.sunao-mita.pgw.jp.\n                        AAAA    240d:1a:34d:7f00:a284:cc24:64bd:daae\n$ORIGIN sunao-mita.pgw.jp.\ncollection              CNAME   virt\nDebianPogo              A       192.168.11.22\n                        AAAA    240d:1a:34d:7f00:225:31ff:fe00:9df0\ndns                     A       192.168.11.2\n                        AAAA    240d:1a:34d:7f00:a284:cc24:64bd:daae\ndns2                    A       192.168.11.20\n                        AAAA    240d:1a:34d:7f00:ba27:ebff:feac:28a8\ngate                    A       192.168.11.1\nmail                    A       192.168.11.2\n                        AAAA    240d:1a:34d:7f00:a284:cc24:64bd:daae\nnote                    A       192.168.11.51\n                        AAAA    240d:1a:34d:7f00:3906:1714:acef:3e46\nPogoV6                  AAAA    240d:1a:34d:7f00:225:31ff:fe00:9df0\nRadio                   A       192.168.11.20\nRadioV6                 AAAA    240d:1a:34d:7f00:ba27:ebff:feac:28a8\nrpi1-com2               A       192.168.11.21\n                        AAAA    240d:1a:34d:7f00:ba27:ebff:fe0c:5ef3\nrpi1-disk               A       192.168.11.23\n                        AAAA    240d:1a:34d:7f00:11cf:af0d:3b62:8501\nshare                   CNAME   rpi1-disk\nubuntu-dtp              A       192.168.11.100\nubuntu-sv               A       192.168.11.199\nvirt                    A       192.168.11.105\nweb-server              A       192.168.11.2\n                        AAAA    240d:1a:34d:7f00:a284:cc24:64bd:daae\nwww                     A       192.168.11.2\n                        AAAA    240d:1a:34d:7f00:a284:cc24:64bd:daae\n<\/pre>\n\n\n<h6 class=\"wp-block-heading\">\u30de\u30b9\u30bf\u30fc\u306e\u66f4\u65b0\u3092\u76f4\u3061\u306b\u30b9\u30ec\u30fc\u30d6\u306b\u53cd\u6620\u3055\u305b\u308b\u306b\u306f<\/h6>\n\n\n\n<p>\u4fee\u6b63\u3092\u76f4\u3061\u306b\u53cd\u6620\u3055\u305b\u308b\u305f\u3081\u306b\u306f\u3001\u4f55\u304b\u306e\u30a2\u30af\u30b7\u30e7\u30f3\u304c\u5fc5\u8981\u306e\u3088\u3046\u3067\u3059\u3002\u30cd\u30c3\u30c8\u3067\u8abf\u3079\u3066\u307f\u308b\u3068 reload \u306e\u30ad\u30fc\u30ef\u30fc\u30c9\u304c\u898b\u4ed8\u304b\u308a\u307e\u3057\u305f\u3002\u4ed6\u306b\u3082\u5f37\u5236\u7684\u306b\u914d\u5e03\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3082\u3042\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n<pre># service bind9 reload<\/pre>\n\n\n<p>\u5b9f\u884c\u3057\u3066\u307f\u308b\u3068\u30b9\u30ec\u30fc\u30d6\u5074\u306e\u30c7\u30fc\u30bf\u3082\u6700\u65b0\u306e\u30b7\u30ea\u30a2\u30eb\u306b\u66f4\u65b0\u3055\u308c\u305f\u3088\u3046\u3067\u3059\u3002 \u5b9a\u7fa9\u306e\u4e2d\u306b\u3001$TTL 86400 ; 1day \u306e\u8a18\u8ff0\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u66f4\u65b0\u3055\u308c\u3066\u3082\uff11\u65e5\u306f\u524d\u306e\u60c5\u5831\u3092\u4fdd\u6301\u3059\u308b\u6307\u5b9a\u306a\u306e\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30ed\u30fc\u30ab\u30eb\u306e\u30cd\u30fc\u30e0\u30b5\u30fc\u30d0\u30fc \u7d30\u304b\u3044\u3053\u3068\u306f\u77e5\u308a\u307e\u305b\u3093\u304c\u3001\u73fe\u5728 IPv4\u3067\u6a5f\u80fd\u3059\u308b\u30cd\u30fc\u30e0\u30b5\u30fc\u30d0\u30fc\u3092\u5bb6\u306e\u4e2d\u306b\u7acb\u3066\u3066\u3044\u307e\u3059\u3002\u5bb6\u5c4b\u5185\u306e\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30a2\u30c9\u30ec\u30b9\u3092\u5272\u308a\u632f\u308b DHCP\u30b5\u30fc\u30d0\u30fc\u306b\u3001\u30ed\u30fc\u30ab\u30eb\u306e\u30cd\u30fc\u30e0\u30b5\u30fc\u30d0\u30fc\u306e\u30a2\u30c9\u30ec\u30b9\u3092\u6e21\u3057\u3066\u3001I &hellip; <a href=\"http:\/\/sunao-mita.pgw.jp\/blog\/?p=1094\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">\u5bb6\u5c4b\u5185\u306e\u30cd\u30fc\u30e0\u30b5\u30fc\u30d0\u30fc<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5,9,13,14],"tags":[],"_links":{"self":[{"href":"http:\/\/sunao-mita.pgw.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1094"}],"collection":[{"href":"http:\/\/sunao-mita.pgw.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/sunao-mita.pgw.jp\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/sunao-mita.pgw.jp\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/sunao-mita.pgw.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1094"}],"version-history":[{"count":8,"href":"http:\/\/sunao-mita.pgw.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1094\/revisions"}],"predecessor-version":[{"id":1105,"href":"http:\/\/sunao-mita.pgw.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1094\/revisions\/1105"}],"wp:attachment":[{"href":"http:\/\/sunao-mita.pgw.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1094"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/sunao-mita.pgw.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1094"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/sunao-mita.pgw.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1094"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}