{"id":426,"date":"2014-03-04T03:07:47","date_gmt":"2014-03-03T18:07:47","guid":{"rendered":"http:\/\/darkgray.homelinux.com\/modules\/xpress\/?p=426"},"modified":"2014-03-04T03:07:47","modified_gmt":"2014-03-03T18:07:47","slug":"named-%e8%a8%ad%e5%ae%9a%e3%83%a1%e3%83%a2%ef%bc%9a%e3%80%80rndc-key","status":"publish","type":"post","link":"https:\/\/darkgray.homelinux.com\/blog\/?p=426","title":{"rendered":"named \u8a2d\u5b9a\u30e1\u30e2\uff1a\u3000rndc.key\u95a2\u9023"},"content":{"rendered":"<p>\u6628\u65e5\u306b\u5f15\u304d\u7d9a\u3044\u3066\u3000named\u8a2d\u5b9a\u30e1\u30e2\u3002\u3000\u3068\u308a\u3042\u3048\u305a\u306f\u52d5\u3044\u3066\u308b\u3093\u3060\u3051\u3069\u306d\u3002<br \/>\n\u30ed\u30b0\u3092\u78ba\u8a8d\u3057\u3066\u307f\u308b\u3068\u3000&#8221;open: \/etc\/rndc.key: permission denied&#8221;\uff08rndc.key\u304c\u898b\u3048\u306d\uff5e\u305e\uff01\u30cb\u30e3\u30ed\u30e1\uff5e\uff01\uff09\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u6b8b\u3063\u3066\u3044\u308b\u3002<br \/>\n<!--more--><br \/>\nnamed.conf\u306b\u3000rndc.key\u306b\u95a2\u3059\u308b\u8a18\u8ff0\u306f\u4e00\u884c\u3082\u7121\u3044\u3002\u3000rndc.conf\u306f\u30d5\u30a1\u30a4\u30eb\u81ea\u4f53\u304c\u7121\u3044\u3002\u30c7\u30d5\u30a9\u3067named\u304c\u8aad\u307f\u8fbc\u3093\u3067\u308b\u306e\u304b\uff1f<\/p>\n<p>\u307e\u305a\u306fSELinx\u306b\u95a2\u3059\u308b\u30a2\u30af\u30bb\u30b9\u8a2d\u5b9a\u3092\u8abf\u6574\u3059\u308b\u3002\uff08\u4ee5\u4e0b\u306e\u4f8b\u306fchroot\u74b0\u5883\u3067\u306e\u8a2d\u5b9a\u4f8b\uff09\u3000etc\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306e\u5168\u30d5\u30a1\u30a4\u30eb\u306b\u5bfe\u3057\u3066\u30a2\u30af\u30bb\u30b9\u8abf\u6574\u3057\u3066\u307f\u308b\u3002<br \/>\n[code]<br \/>\n[root@xxxx ]# restorecon -R \/var\/named\/chroot\/etc<br \/>\n[\/code]<\/p>\n<p>\u66f4\u306b\u30d5\u30a1\u30a4\u30eb\u6240\u6709\u8005\u3068\u30a2\u30af\u30bb\u30b9\u6a29\u9650\u3092\u8abf\u6574\u3057\u3066\u3000\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3059\u308b\u3068\u30a8\u30e9\u30fc\u306f\u51fa\u306a\u304f\u306a\u3063\u305f\u3002\u305f\u3060\u3057\u3000\u6700\u9069\u306e\u8a2d\u5b9a\u4f8b\u304b\u3069\u3046\u304b\u306f\u30fb\u30fb\u30fb\u3000\u4fdd\u969c\u3067\u304d\u306a\u3044\u3002\uff08\u5ff5\u306e\u70ba\uff09<br \/>\n[code]<br \/>\n[root@xxxx ]# ll -Z \/var\/named\/chroot\/etc\/rndc.key<br \/>\n-rw-r&#8212;&#8211;. root named unconfined_u:object_r:dnssec_t:s0 \/var\/named\/chroot\/etc\/rndc.key<br \/>\n[root@xxxx ]#<br \/>\n[\/code]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6628\u65e5\u306b\u5f15\u304d\u7d9a\u3044\u3066\u3000named\u8a2d\u5b9a\u30e1\u30e2\u3002\u3000\u3068\u308a\u3042\u3048\u305a\u306f\u52d5\u3044\u3066\u308b\u3093\u3060\u3051\u3069\u306d\u3002 \u30ed\u30b0\u3092\u78ba\u8a8d\u3057\u3066\u307f\u308b\u3068\u3000&#8221;open: \/etc\/rndc.key: permission denied&#8221;\uff08rndc.key\u304c &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/darkgray.homelinux.com\/blog\/?p=426\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;named \u8a2d\u5b9a\u30e1\u30e2\uff1a\u3000rndc.key\u95a2\u9023&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[3,5,14],"tags":[],"class_list":["post-426","post","type-post","status-publish","format-standard","hentry","category-centos-setup","category-darkgray-server","category-named"],"_links":{"self":[{"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/426","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=426"}],"version-history":[{"count":0,"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/426\/revisions"}],"wp:attachment":[{"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=426"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=426"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=426"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}