{"id":100,"date":"2010-11-04T18:25:55","date_gmt":"2010-11-04T18:25:55","guid":{"rendered":"http:\/\/www.omniweb.com\/wordpress\/?p=100"},"modified":"2010-11-04T19:18:54","modified_gmt":"2010-11-04T19:18:54","slug":"install-bind-on-centos","status":"publish","type":"post","link":"https:\/\/www.omniweb.com\/wordpress\/?p=100","title":{"rendered":"Install Bind on Centos"},"content":{"rendered":"<p>I have a couple of name servers running and figured it would be a good idea to have multiple backups actually running in place and fully up to date, so when one of the real ones goes down, the process of finding a replacement will be completely painless.<\/p>\n<p><code>rpm -qa bind*<br \/>\nbind-utils-9.3.6-4.P1.el5_4.2<br \/>\nbind-libs-9.3.6-4.P1.el5_4.2<\/code><\/p>\n<p><a href=\"http:\/\/www.centos.org\/modules\/newbb\/viewtopic.php?topic_id=12684\">http:\/\/www.centos.org\/modules\/newbb\/viewtopic.php?topic_id=12684<\/a><br \/>\n<code>yum -y install bind<br \/>\n...<br \/>\n\/etc\/init.d\/named start<br \/>\nLocating \/\/etc\/named.conf failed:<br \/>\n[FAILED]<\/code><br \/>\ncopy over my &#8216;secondary&#8217; named.conf file, try again:<\/p>\n<p><code>\/etc\/init.d\/named start<br \/>\n\/etc\/named.conf:10: open: \/etc\/ns1_rndc.key: file not found<\/code><br \/>\ncopied over the file \/etc\/ns1_rndc.key from my other name server<br \/>\n<code><br \/>\nzone 0.0.127.IN-ADDR.ARPA\/IN: loading master file rev.localhost: file not found<\/code><br \/>\ncopied over &#038; updated the rev.localhost file from the other name server<\/p>\n<p><code>could not configure root hints from 'named.root': file not found<\/code><br \/>\ncopy over the named.root file from my other server<\/p>\n<p><code>couldn't open pid file 'named.pid': Permission denied<\/code><br \/>\nchange the permission on the \/var\/named folder to group writable with<br \/>\n<code>chmod 2774 \/var\/named<\/code><\/p>\n<p>and the secondary is now fully backed up.<br \/>\nNext I set up some shell scripts that copy the named.conf file from the actual secondary name server into place on the backup name servers, so they&#8217;ll always be up to date without me needing to do anything further.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have a couple of name servers running and figured it would be a good idea to have multiple backups actually running in place and fully up to date, so when one of the real ones goes down, the process &hellip; <a href=\"https:\/\/www.omniweb.com\/wordpress\/?p=100\">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":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/100"}],"collection":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=100"}],"version-history":[{"count":8,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/100\/revisions"}],"predecessor-version":[{"id":108,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/100\/revisions\/108"}],"wp:attachment":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=100"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=100"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}