{"id":492,"date":"2010-05-04T14:58:16","date_gmt":"2010-05-04T19:58:16","guid":{"rendered":"http:\/\/it.thelibrarie.com\/weblog\/?p=492"},"modified":"2010-05-04T15:01:06","modified_gmt":"2010-05-04T20:01:06","slug":"bind-dns-godaddy-ubuntu","status":"publish","type":"post","link":"https:\/\/it.thelibrarie.com\/weblog\/2010\/05\/bind-dns-godaddy-ubuntu\/","title":{"rendered":"BIND, DNS, Godaddy, Ubuntu"},"content":{"rendered":"<p>Customer purchased Comcast Business cable for their primary internet provider.  They also purchase a domain name through godaddy.  I used to think godaddy was a horrible\/awful\/pile of dung, but now that I&#8217;m starting to find out where everything is hidden they&#8217;re turning out to be moderately OK.<\/p>\n<p>Background:<br \/>\nUbuntu 10.04 x32 Server LAMP<br \/>\nBIND 9.7.0<br \/>\nWebmin 1.510<br \/>\nSonicwall TZ180W Enhanced<br \/>\nGodaddy account information and domain name<\/p>\n<p>I updated their ubuntu server from 9.04 to 9.10, then now to 10.04.  I installed webmin as the customer wanted a GUI to be able to edit the config files.  And, despite resistance from CLI users, webmin is a pretty powerful suite.  I secured the server as much as I could.  I then made sure that port 53 for UDP and TCP was opened for DNS to\/from the server.<\/p>\n<p>Now the fun part begins.  Login on your webmin server (usually https:\/\/webminserver&#8217;sIPaddress:10000) and navigate to Servers > Bind DNS Server.<\/p>\n<p><strong>Create BIND Master Zone<\/strong><br \/>\nUnder Existing DNS Zones, Click on Create Master Zone.<\/p>\n<blockquote><p>Zone type: Forward<br \/>\nDomain Name\/Network: yourdomain.tld<br \/>\nRecords file: Automatic<br \/>\nMaster server: yourdomain.tld, uncheck Add NS record for master server<br \/>\nEmail address: admin@yourdomain.tld<br \/>\nUse zone template: No<br \/>\nIP Address for template records: Your PUBLIC IP address<br \/>\nAdd reverses for template addresses: Yes<br \/>\nLeave the TTL as is, unless you want longer\/shorter timeouts<br \/>\nClick Create<\/p><\/blockquote>\n<p><strong>Add Name Records<\/strong><br \/>\nNow you should be in the Address Records for your new domain.  If not, navigate to Servers > BIND DNS Server > Existing DNS Zones > Yourdomain.tld > Address.<br \/>\nNOTE: Notice the &#8216;.&#8217; at the end of the names.<\/p>\n<blockquote><p>Name: ns1.yourdomain.tld.<br \/>\nTime-To-Live: default<br \/>\nAddress: Your PUBLIC IP address<br \/>\nUpdate reverse: Yes<br \/>\nCreate<br \/>\nName: ns2.yourdomain.tld.<br \/>\nTime-To-Live: default<br \/>\nAddress: Your PUBLIC IP address<br \/>\nUpdate reverse: Yes<br \/>\nCreate<br \/>\nName: yourdomain.tld.<br \/>\nTime-To-Live: default<br \/>\nAddress: Your PUBLIC IP address<br \/>\nUpdate Reverse: Yes<br \/>\nCreate<br \/>\nName: www.yourdomain.tld.<br \/>\nTime-To-Live: default<br \/>\nAddress: Your PUBLIC IP address<br \/>\nUpdate Reverse: Yes<br \/>\nCreate\n<\/p><\/blockquote>\n<p><strong>Add Name Servers<\/strong><br \/>\nReturn to Record Types.  Now click on Name Server.<\/p>\n<blockquote><p>Zone Name:<br \/>\nTime-To-Live: 300<br \/>\nName Server: ns1.yourdomain.tld.<br \/>\nCreate<br \/>\nZone Name:<br \/>\nTime-To-Live: 300<br \/>\nName Server: ns2.yourdomain.tld.<br \/>\nCreate<\/p><\/blockquote>\n<p><strong>Restart BIND<\/strong><br \/>\nYou have two ways to do this (well, more than that, but you know how it is):<\/p>\n<blockquote><p>1.) Login as root using SSH to your BIND Server.  Run:<br \/>\n<code>sudo \/etc\/init.d\/bind9 restart<\/code><br \/>\n2.) On Webmin, Click on System > Bootup and Shutdown > bind9<br \/>\n<code>Click on the Restart Now button<\/code><\/p><\/blockquote>\n<p><strong>Test your configuration:<\/strong><\/p>\n<blockquote><p>Login to your BIND Server using SSH<br \/>\n<code>nano \/etc\/resolv.conf<\/code><br \/>\n<code>search yourdomain.tld<\/code><br \/>\n<code>nameserver 127.0.0.1<\/code><br \/>\nAdd &#8216;#&#8217; to any other name servers in the list<br \/>\nSave and Exit Nano<br \/>\n<code>dig yourdomain.tld<\/code><br \/>\nMake sure the HEADER Flags have: qr aa rd ra.  Well, the &#8216;aa&#8217; is the most important part &#8211; that shows it&#8217;s that authority for this domain.\n<\/p><\/blockquote>\n<p><strong>Change the DNS Servers of your Godaddy account<\/strong><\/p>\n<blockquote><p>Login on your godaddy domain manager<br \/>\nI added the DNS entries for ns1.yourdomain.tld and ns2.yourdomain.tld in the custom DNS area.  Point those both to your public IP address.<br \/>\nIn the lower left corner of the Domain Manager screen (after you click on the domain you want to manage) you will see a Host Summary area.<br \/>\nAdd NS1.yourdomain.tld with your PUBLIC IP<br \/>\nAdd NS2.yourdomain.tld with your PUBLIC IP<br \/>\nI had to wait 5 minutes or so before everything was happy.<\/p><\/blockquote>\n<p>Now change the DNS servers from NSxx.DOMAINCONTROL.COM to NS1.YOURDOMAIN.TLD AND NS2.YOURDOMAIN.TLD.<\/p>\n<p>If you get a message about your name servers not being registered, you probably forgot to add the domains into the Host Summary area.  Either that or you haven&#8217;t waited long enough.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Customer purchased Comcast Business cable for their primary internet provider. They also purchase a domain name through godaddy. I used to think godaddy was a horrible\/awful\/pile of dung, but now that I&#8217;m starting to find out where everything is hidden they&#8217;re turning out to be moderately OK. Background: Ubuntu 10.04 x32 Server LAMP BIND 9.7.0 &hellip; <a href=\"https:\/\/it.thelibrarie.com\/weblog\/2010\/05\/bind-dns-godaddy-ubuntu\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">BIND, DNS, Godaddy, Ubuntu<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-492","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/492","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/comments?post=492"}],"version-history":[{"count":3,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/492\/revisions"}],"predecessor-version":[{"id":495,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/492\/revisions\/495"}],"wp:attachment":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/media?parent=492"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/categories?post=492"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/tags?post=492"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}