{"id":1596,"date":"2016-05-12T08:47:00","date_gmt":"2016-05-11T23:47:00","guid":{"rendered":"http:\/\/www.hbnet.jp\/papas\/weblog\/2016\/05\/12\/%e3%80%8cbind%e3%80%8d%e3%81%ae%e3%80%8cchroot%e3%80%8d%e5%8c%96\/"},"modified":"2016-05-12T08:47:00","modified_gmt":"2016-05-11T23:47:00","slug":"post-1596","status":"publish","type":"post","link":"http:\/\/www.hbnet.jp\/papas\/weblog\/2016\/05\/12\/post-1596\/","title":{"rendered":"\u300cbind\u300d\u306e\u300cchroot\u300d\u5316"},"content":{"rendered":"<p>\u540d\u524d\u89e3\u6c7a\u306f\u5927\u5909\u91cd\u8981\u3067\u3059\u3002<br \/>\n\u30b5\u30fc\u30d0\uff08\u30b7\u30b9\u30c6\u30e0\uff09\u3092\u69cb\u7bc9\u3059\u308b\u5834\u5408\u3001OS\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u7d42\u3064\u3066\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u8a2d\u5b9a\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u6b21\u306f\u540d\u524d\u89e3\u6c7a\u306e\u8a2d\u5b9a\u3067\u3059\u3002<br \/>\n\u3061\u3083\u3093\u3068\u89e3\u6c7a\u3067\u304d\u3066\u308b\u3068\u3001\u305d\u306e\u5f8c\u306e\u30b5\u30fc\u30d0\u8a2d\u5b9a\u304c\u697d\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u672c\u30b5\u30fc\u30d0\u300cCentOS\u300d\u3067\u3082\u540c\u3058\u306a\u306e\u3067\u3059\u304c\u3001\u69cb\u7bc9\u6642 bind \u3067\u69cb\u7bc9\u3057\u3066\u3044\u308b\u540d\u524d\u89e3\u6c7a\u3001bind-chroot \u74b0\u5883\u306b\u79fb\u884c\u3057\u3066\u898b\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<br \/>\n<b>#yum -y install bind bind-chroot<\/b><br \/>\n\u3044\u3084\u30fc\u30cd\u30c3\u30c8\u306b\u7e4b\u304c\u3063\u3066\u308b\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3082\u697d\u3067\u3059\u306d\u3002<br \/>\n\u53d6\u308a\u6562\u3048\u305a\u73fe\u5728\u52d5\u3044\u3066\u308b bind \u3092\u505c\u3081\u307e\u3057\u3087\u3046\u3002<br \/>\n<b>#systemctl stop named.service<\/b><br \/>\n\u6b21\u306b\u81ea\u52d5\u8d77\u52d5\u3092\u505c\u6b62\u3002<br \/>\n<b>#systemctl disable named.service<\/b><br \/>\n\u3055\u3066\u3001bind-chroot \u3092\u6a5f\u52d5\u3057\u3066\u307f\u307e\u3059\u3002<br \/>\n<b>#systemctl start named-chroot.service<\/b><br \/>\n\u6700\u5f8c\u306b\u3001\u81ea\u52d5\u8d77\u52d5\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<br \/>\n<b>#systemctl enable named-chroot.service<\/b><br \/>\n\u53d6\u308a\u6562\u3048\u305a\u3001\u554f\u984c\u306a\u304f\u6a5f\u52d5\u3057\u305f\u307f\u305f\u3044\u3002<br \/>\n<b># systemctl list-unit-files | grep named<br \/>\nnamed-chroot.service           enabled<br \/>\nnamed.service                      disabled<\/b><br \/>\n\u4e00\u5fdc\u8a2d\u5b9a\u306f\u3053\u308c\u3067\u7d42\u308f\u3063\u305f\u3093\u3067\u3059\u304c\u3001\u6614\u306f\u3084\u3063\u3066\u305f named \u30d5\u30a1\u30a4\u30eb\u306e\u30d5\u30a9\u30eb\u30c0\u79fb\u52d5\u304c\u7701\u304b\u308c\u3066\u307e\u3059\u3002<br \/>\n\u8272\u3005\u8abf\u3079\u308b\u3068\u3001<b>named-chroot<\/b> \u304c\u81ea\u52d5\u7684\u306b\u30de\u30c3\u30d7\u3057\u3066\u304f\u308c\u3066\u308b\u307f\u305f\u3044\u3002<br \/>\n\u8d77\u52d5\u3059\u308b\u3068<br \/>\n<b>\/usr\/libexec\/setup-named-chroot.sh \/var\/named\/chroot on<\/b><br \/>\n\u4fee\u4e86\u3059\u308b\u3068<br \/>\n<b>\/usr\/libexec\/setup-named-chroot.sh \/var\/named\/chroot off<\/b><br \/>\n\u304c\u81ea\u52d5\u7684\u306b\u5b9f\u884c\u3055\u308c\u3066\u3001\/var\/named\/chroot \u914d\u4e0b\u306b\u30d5\u30a1\u30a4\u30eb\u304c\u51fa\u73fe\u3057\u307e\u3059\u3002<br \/>\n\u3068\u3053\u308d\u304c\u3001\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3092\u691c\u67fb\u3059\u308b\u3068<br \/>\n<b>\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306e\u30eb\u30fc\u30d7\u304c\u691c\u51fa\u3055\u308c\u307e\u3057\u305f\u3002<br \/>\n\u2018\/var\/named\/chroot\/var\/named\u2019 \u306f<br \/>\n\u2018\/var\/named\u2019<\/b> \u306e\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u306e\u30eb\u30fc\u30d7\u306e\u4e00\u90e8\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n\u3067\u3082\u3001\u4e0a\u8a18\u30e1\u30c3\u30bb\u30fc\u30b8\u306f\u3001\u6c17\u6301\u3061\u60aa\u3044\u3002<br \/>\n\u3053\u308c\u3067\u8a2d\u5b9a\u6b63\u3057\u3044\u306e\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u540d\u524d\u89e3\u6c7a\u306f\u5927\u5909\u91cd\u8981\u3067\u3059\u3002 \u30b5\u30fc\u30d0\uff08\u30b7\u30b9\u30c6\u30e0\uff09\u3092\u69cb\u7bc9\u3059\u308b\u5834\u5408\u3001OS\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u7d42\u3064\u3066\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u8a2d\u5b9a\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u6b21\u306f\u540d\u524d\u89e3\u6c7a\u306e\u8a2d\u5b9a\u3067\u3059\u3002 \u3061\u3083\u3093\u3068\u89e3\u6c7a\u3067\u304d\u3066\u308b\u3068\u3001\u305d\u306e\u5f8c\u306e\u30b5\u30fc\u30d0\u8a2d\u5b9a\u304c\u697d\u306b\u306a\u308a\u307e\u3059\u3002 \u672c\u30b5\u30fc\u30d0\u300cCent [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-1596","post","type-post","status-publish","format-standard","hentry","category-7"],"_links":{"self":[{"href":"http:\/\/www.hbnet.jp\/papas\/weblog\/wp-json\/wp\/v2\/posts\/1596","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.hbnet.jp\/papas\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.hbnet.jp\/papas\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.hbnet.jp\/papas\/weblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.hbnet.jp\/papas\/weblog\/wp-json\/wp\/v2\/comments?post=1596"}],"version-history":[{"count":1,"href":"http:\/\/www.hbnet.jp\/papas\/weblog\/wp-json\/wp\/v2\/posts\/1596\/revisions"}],"predecessor-version":[{"id":6424,"href":"http:\/\/www.hbnet.jp\/papas\/weblog\/wp-json\/wp\/v2\/posts\/1596\/revisions\/6424"}],"wp:attachment":[{"href":"http:\/\/www.hbnet.jp\/papas\/weblog\/wp-json\/wp\/v2\/media?parent=1596"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.hbnet.jp\/papas\/weblog\/wp-json\/wp\/v2\/categories?post=1596"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.hbnet.jp\/papas\/weblog\/wp-json\/wp\/v2\/tags?post=1596"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}