{"id":2655,"date":"2013-11-29T11:13:19","date_gmt":"2013-11-29T03:13:19","guid":{"rendered":"http:\/\/rmohan.com\/?p=2655"},"modified":"2013-11-29T11:13:19","modified_gmt":"2013-11-29T03:13:19","slug":"fixing-the-bind-named-service-bug-generating-etcrndc-key-redhat-and-centos-fedora","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=2655","title":{"rendered":"Fixing the BIND (named) Service Bug \u2013 Generating \/etc\/rndc.key Redhat and Centos Fedora"},"content":{"rendered":"<p>Fixing the BIND (named) Service Bug \u2013 Generating \/etc\/rndc.key<\/p>\n<p>I must admit, I have never had this bug for a very loong time. I thought It must have been fixed or rather removed all together. It was first reported with RHEL 6.1 and was removed as commented here by the developers.<\/p>\n<p>However, I came accross this bug again while trying configure one of my DNS servers running on CentOS 6.3. The DNS (named) service always stopped on the following<\/p>\n<p>Problem:<\/p>\n<p>#service named restart<\/p>\n<p>Generating \/etc\/rndc.key:<\/p>\n<p>Solution:<\/p>\n<p>Just exceute the following command:<\/p>\n<p>#rndc-confgen -a -r \/dev\/urandom<\/p>\n<p>and if you\u2019re runing chroot under \/var\/named\/chroot, you must add \u201c-t \/var\/named\/chroot\u201d to the command above. It should look like this:<\/p>\n<p>#rndc-confgen -a -r \/dev\/urandom -t \/var\/named\/chroot<\/p>\n<p>More description to rndc-confgen can be found here<\/p>\n<p>You should be able to start DNS (named) service after executing these commands.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Fixing the BIND (named) Service Bug \u2013 Generating \/etc\/rndc.key<\/p>\n<p>I must admit, I have never had this bug for a very loong time. I thought It must have been fixed or rather removed all together. It was first reported with RHEL 6.1 and was removed as commented here by the developers.<\/p>\n<p>However, I came accross [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/2655"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2655"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/2655\/revisions"}],"predecessor-version":[{"id":2656,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/2655\/revisions\/2656"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2655"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2655"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2655"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}