guy labs guy labs

Install BIND 9 in Ubuntu 13.04

Linux
/by
  Hi, today I want to show you how to install BIND 9 in Ubuntu 13.04. I have installed it on my own server at home, such that I am able to use the DNS names for my applications which I use from the outside. For example git.guylabs.ch etc. It also boosts the performance if you have an internal DNS server, because now the request doesn't need to be resolved on a public DNS name server anymore. Ok lets get started. First of all we need to install the necessary package by executing the following command: Next we need to add forwarder DNS name servers which are used when the internal name server cannot resolve the DNS name requested. For that open up the file /etc/bind/named.conf.options as root and add or uncomment the two name server IP addresses to the forwarders block. (Here we use the public DNS name server IP's from Google) After that we need to add the local name server and the search domains to the static local interface. To do this open up the file /etc/network/interfaces as root and add the following two properties to the static defined interface. (It's good to have the DNS server configured with a static IP address. If you don't know how to do this, please read this article) Next we need to define the zones for our local domain. For that open up the /etc/bind/named.conf.local as root and add the following two code blocks and adapt it for your environment. (In this example we use the network 192.168.1.0. And the...