
Warning: Error while sending QUERY packet. PID=14633 in /home/uls/public_html/wordpress/wp-includes/class-wpdb.php on line 2357
{"id":84,"date":"2010-12-03T10:11:17","date_gmt":"2010-12-03T10:11:17","guid":{"rendered":"http:\/\/192.168.1.20\/wordpress\/freebsd\/2010\/12\/03\/bind_962-p2_dns\/"},"modified":"2015-01-25T02:13:43","modified_gmt":"2015-01-25T02:13:43","slug":"bind_962-p2_dns","status":"publish","type":"post","link":"http:\/\/uls.self.jp\/wordpress\/freebsd\/?p=84","title":{"rendered":"BIND 9.6.2-P2 (DNS\u30b5\u30fc\u30d0)"},"content":{"rendered":"<p>FreeBSD 8.1\u3092\u5165\u308c\u305f\u3068\u3053\u308d\u3001BIND\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c9.6.2-P2\u306b\u306a\u3063\u3066\u304a\u308a\u3001\u8a2d\u5b9a\u65b9\u6cd5\u304c\u5909\u308f\u3063\u305f\u306e\u3067\u3001\u66f8\u3044\u3066\u304a\u304f\u3002<\/p>\n<h4>1. rndc.key\u306e\u4f5c\u6210<\/h4>\n<p>\u3000BIND\u3092\u30ed\u30fc\u30ab\u30eb\u3001\u30ea\u30e2\u30fc\u30c8\u304b\u3089\u30b3\u30de\u30f3\u30c9\u3067\u5236\u5fa1\u3059\u308b\u305f\u3081\u306ekey\u3067\u3001\u3053\u308c\u3092\u4f5c\u6210\u3059\u308b\u3002<br \/>\n\u3000(\u4f7f\u7528\u6cd5\u306f\u3001Net\u3067\u53c2\u7167\u306e\u3053\u3068)<br \/>\n\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u3001rndc.key\u304c\u4f5c\u6210\u3055\u308c\u308b\u3002<\/p>\n<pre># rndc-confgen -a<\/pre>\n<h4>2. named.conf\u306e\u4f8b<\/h4>\n<pre>options {\ndirectory       \"\/etc\/namedb\";\npid-file        \"\/var\/run\/named\/pid\";\ndump-file       \"\/var\/dump\/named_dump.db\";\nstatistics-file \"\/var\/stats\/named.stats\";\nlisten-on {127.0.0.1; 192.168.1.0\/24;};\nforwarders {210.188.224.10;};\n};\ninclude \"\/etc\/namedb\/rndc.key\";\ncontrols {\ninet 127.0.0.1 allow { 127.0.0.1; } keys { \"rndc-key\"; };\n};\nview \"internal\" {\nmatch-clients {192.168.1.0\/24; 127.0.0.0\/8; };\nrecursion yes;\nzone \".\" {type hint; file \"\/etc\/namedb\/named.root\";};\nzone \"localhost\" {\ntype master;\nfile \"\/etc\/namedb\/master\/localhost-forward.db\";\n};\nzone \"127.in-addr.arpa\"  {\ntype master;\nfile \"\/etc\/namedb\/master\/localhost-reverse.db\";\n\u3000\u3000\u3000\u3000};\nzone \"1.168.192.in-addr.arpa\" {\ntype master;\nfile \"\/etc\/namedb\/slave\/canal.rev\";\nallow-update { none; };\n};\nzone \"fam.cx\" {\ntype master;\nfile \"\/etc\/namedb\/slave\/canal.zone\";\nallow-update { none; };\n};\n\/\/zone \"idema-jp.org\" {\n\/\/        type master;\n\/\/        file \"slave\/idema.zone\";\n\/\/        };\n};<\/pre>\n<ul>\n<li>master\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30fc\u5185<\/li>\n<p>\u3000namedb\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30fc\u306e\u4e2d\u306b\u306f\u3001master\u306e\u540d\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30fc\u304c\u3042\u308a\u3001<br \/>\n\u3000\u305d\u306e\u4e2d\u306b\u306f\u3001<br \/>\n\u3000\u30fbempty.db<br \/>\n\u3000\u30fblocalhost-forward.db<br \/>\n\u3000\u30fblocalhost-reverse.db<br \/>\n\u3000\u304c\u5165\u3063\u3066\u3044\u308b\u3002<\/p>\n<li>slave\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30fc\u5185<\/li>\n<p>\u3000slave\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30fc\u306f\u3001\u6700\u521d\u304b\u3089\u3042\u308bmaster\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30fc\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u3068\u533a\u5225\u3059\u308b\u305f\u3001\u65b0\u305f\u306b\u4f5c\u308a\u3001\u305d\u306e\u4e2d\u306b\u30be\u30fc\u30f3\u30d5\u30a1\u30a4\u30eb\u3068\u9006\u5f15\u304d\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u5165\u308c\u305f\u3002<\/li>\n<\/ul>\n<pre>\/etc\/namedb \u2192 named.conf, named.root, rndc.key\n\u3000\u3000\u3000\u3000\uff5c\n\u3000\u3000\u3000\u3000\uff0b\u30fc master \u2192 empty.db, localhost-forward.db, localhost-reverse.db\n\u3000\u3000\u3000\u3000\uff0b\u30fc slave \u2192 canal.zone, canal.rev<\/pre>\n<p>\u3000(1) canal.zone (\u6b63\u5f15\u304d\u5b9a\u7fa9)<\/p>\n<pre>$TTL 3600       ; 1 hour\n@             IN      SOA   uls.fam.cx.  root.uls.fam.cx.(\n2006121601 ; serial\n10800      ; refresh (3 hours)\n3600       ; retry (1 hour)\n3600000    ; expire (5 weeks 6 days 16 hours)\n3600       ; minimum (1 hour)\n)\nIN       NS      uls.fam.cx.\nIN       MX      10 uls.fam.cx.\nuls            IN       A       192.168.1.5\nwww        IN       CNAME   uls\nftp            IN       CNAME   uls\nuls2          IN       A       192.168.1.6<\/pre>\n<p>\u3000(2) canal.rev (\u9006\u5f15\u304d\u5b9a\u7fa9)<\/p>\n<pre>$TTL 3600       ; 1 hour\n@             IN      SOA   uls.fam.cx.  root.uls.fm.cx.(\n2006121602 ; serial\n10800      ; refresh (3 hours)\n900        ; retry (15 minutes)\n3600000    ; expire (5 weeks 6 days 16 hours)\n3600       ; minimum (1 hour)\n)\nIN   NS   uls.fam.cx.\n5                      IN   PTR  uls.fam.cx.\n6                      IN   PTR  uls2.fam.cx.<\/pre>\n<h4>3. \/etc\/resolv.conf<\/h4>\n<pre>nameserver   127.0.0.1<\/pre>\n<h4>4. \/etc\/rc.conf\u306b\u6b21\u3092\u8ffd\u52a0<\/h4>\n<pre>named_enable=\"YES\"\nnamed_program=\"\/usr\/sbin\/named\"<\/pre>\n<h4>5. \u52d5\u4f5c\u78ba\u8a8d\u4f8b<\/h4>\n<p>\u3000google\u306eIP\u30a2\u30c9\u30ec\u30b9\u3092\u6c42\u3081\u3066\u307f\u308b\u3002<\/p>\n<pre>$ nslookup www.google.com\nServer:         127.0.0.1\nAddress:        127.0.0.1#53\nNon-authoritative answer:\nwww.google.com  canonical name = www.l.google.com.\nName:   www.l.google.com\nAddress: 66.249.89.104\nName:   www.l.google.com\nAddress: 66.249.89.99<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>FreeBSD 8.1\u3092\u5165\u308c\u305f\u3068\u3053\u308d\u3001BIND\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c9.6.2-P2\u306b\u306a\u3063\u3066\u304a\u308a\u3001\u8a2d\u5b9a\u65b9\u6cd5\u304c\u5909\u308f\u3063\u305f\u306e\u3067\u3001\u66f8\u3044\u3066\u304a\u304f\u3002 1. rndc.key\u306e\u4f5c\u6210 \u3000BIND\u3092\u30ed\u30fc\u30ab\u30eb\u3001\u30ea\u30e2\u30fc\u30c8\u304b\u3089\u30b3\u30de\u30f3\u30c9\u3067\u5236\u5fa1\u3059\u308b\u305f\u3081\u306eke &hellip; <a href=\"http:\/\/uls.self.jp\/wordpress\/freebsd\/?p=84\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-84","post","type-post","status-publish","format-standard","hentry","category-freebsd","wpautop"],"_links":{"self":[{"href":"http:\/\/uls.self.jp\/wordpress\/freebsd\/index.php?rest_route=\/wp\/v2\/posts\/84","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/uls.self.jp\/wordpress\/freebsd\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/uls.self.jp\/wordpress\/freebsd\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/uls.self.jp\/wordpress\/freebsd\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/uls.self.jp\/wordpress\/freebsd\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=84"}],"version-history":[{"count":6,"href":"http:\/\/uls.self.jp\/wordpress\/freebsd\/index.php?rest_route=\/wp\/v2\/posts\/84\/revisions"}],"predecessor-version":[{"id":300,"href":"http:\/\/uls.self.jp\/wordpress\/freebsd\/index.php?rest_route=\/wp\/v2\/posts\/84\/revisions\/300"}],"wp:attachment":[{"href":"http:\/\/uls.self.jp\/wordpress\/freebsd\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=84"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/uls.self.jp\/wordpress\/freebsd\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=84"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/uls.self.jp\/wordpress\/freebsd\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=84"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}