Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Install BIND9 on Ubuntu Server 12.04 LTS


Published on

Tutorial on how to install DNS Server using BIND9 on Ubuntu Server 12.04 LTS

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Install BIND9 on Ubuntu Server 12.04 LTS

  1. 1.                               Install  BIND9  on  Ubuntu  12.04
  2. 2. We’re going to setup DNS server using ISC BIND (version 9) on Ubuntu Server 12.04 LTS. First, update your OS: sudo apt-get update && sudo apt-get upgrade After that, install BIND9: sudo apt-get install bind9 Now that BIND is installed, we’re going to edit /etc/bind/named.conf.options and configure BIND to cache requests and forward unresolved queries. sudo nano /etc/bind/named.conf.options Remove the comments from the ‘forwarders’ section and add your external DNS servers. In the below example I’m using Google’s public DNS servers ( and forwarders {;; }; So now the next thing that we need to do is to create the actual zone file for our domain (of which in this example is ‘yoursite.db‘): sudo nano /etc/bind/named.conf.local * Replace “” with your domain name. Add a zone for our local domain like so: zone "" IN { type master; file "/etc/bind/zones/yoursite.db"; }; Now we create the actual the zone database file for our ‘yoursite.db‘ domain: sudo mkdir /etc/bind/zones sudo nano /etc/bind/zones/yoursite.db
  3. 3. Now add the following content into the file (obviously replace the hostnames/IP address with your own personal setup etc.): ; ; BIND data file for ; $TTL 604800 @ IN SOA ( 4 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL ; 86400 IN NS 86400 IN NS IN A localhost. IN A IN MX 10 mail IN CNAME www IN CNAME blog IN CNAME wiki IN CNAME We’re nearly there, now we simply need to restart the BIND daemon for the changes to take effect: sudo /etc/init.d/bind9 restart