{"id":502,"date":"2010-12-01T14:37:41","date_gmt":"2010-12-01T14:37:41","guid":{"rendered":"http:\/\/blog.stmellion.org\/?p=502"},"modified":"2010-12-01T14:37:41","modified_gmt":"2010-12-01T14:37:41","slug":"dnssec-howto-for-idiots-like-me","status":"publish","type":"post","link":"https:\/\/blog.stmellion.org\/?p=502","title":{"rendered":"DNSSEC &#8211; HOWTO for idiots like me"},"content":{"rendered":"<p>There seems to be plenty of DNSSEC HOWTO&#8217;s on the Web but I&#8217;m struggling to find a compendium of steps I need to perform in order to secure my zone and trust others.<\/p>\n<h1>Securing a zone<\/h1>\n<p>Before doing anything, it&#8217;s worth creating a directory structure where each zonefile resides in its own directory using the structure: \/etc\/bind\/zonename\/zonefile<br \/>\nThe zonefile should be identical to the zonename until it&#8217;s signed, at which time zonefile becomes zonename.signed.  Generated ZSK&#8217;s and KSK&#8217;s should reside within the directory of the zonename they relate to.  Don&#8217;t forget to update named.conf.local to reflect changes in the name and location of the zonefiles.<\/p>\n<h2>Enable DNSSEC<\/h2>\n<p>options {<br \/>\n  dnssec-enable yes;<br \/>\n  dnssec-validation yes;<br \/>\n};<\/p>\n<h2>Generate Keys<\/h2>\n<p><em>dnssec-keygen -a RSASHA1 -b 1024 -n ZONE zonename<\/em><br \/>\n<em>dnssec-keygen -a RSASHA1 -b 4096 -n ZONE -f KSK zonename<\/em><\/p>\n<h2>Add keys to zonefile<\/h2>\n<p>; Zone Signing Key<br \/>\n$INCLUDE Kzonename.+001+11111.key<br \/>\n; Key Signing Key<br \/>\n$INCLUDE Kzonename.+001+22222.key<\/p>\n<h2>Sign the Zone<\/h2>\n<p><em>dnssec-signzone zonefile<\/em><br \/>\nOutput is zonefile.signed<\/p>\n<h2>Validate the zonefile<\/h2>\n<p><em>donuts zonefile.signed zonename<\/em><\/p>\n<h2>Publish the signed zone<\/h2>\n<p>In named.conf.local:<br \/>\nzone &#8220;zonename&#8221; {<br \/>\n  file &#8220;\/etc\/bind\/zonename\/zonefile.signed&#8221;;<br \/>\n};<\/p>\n<h2>Testing<\/h2>\n<p><em>dig zonename SOA +dnssec +multiline<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>There seems to be plenty of DNSSEC HOWTO&#8217;s on the Web but I&#8217;m struggling to find a compendium of steps I need to perform in order to secure my zone and trust others. Securing a zone Before doing anything, it&#8217;s worth creating a directory structure where each zonefile resides in its own directory using the&hellip; <a class=\"more-link\" href=\"https:\/\/blog.stmellion.org\/?p=502\">Continue reading <span class=\"screen-reader-text\">DNSSEC &#8211; HOWTO for idiots like me<\/span><\/a><\/p>\n","protected":false},"author":24,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-502","post","type-post","status-publish","format-standard","hentry","category-debian","entry"],"_links":{"self":[{"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=\/wp\/v2\/posts\/502","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=\/wp\/v2\/users\/24"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=502"}],"version-history":[{"count":9,"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=\/wp\/v2\/posts\/502\/revisions"}],"predecessor-version":[{"id":511,"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=\/wp\/v2\/posts\/502\/revisions\/511"}],"wp:attachment":[{"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=502"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=502"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=502"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}