Bind9
I’ve been with 02 for just over a year now and after having a fantastic setup from them and to be honest a really good connection (over 9MB most of the time). One thing has really disappointed me… their DNS servers never seem to be as reliable as they should be. I thought it was my router at first but using an IP address I can get out to the internet!
So today I decided I would use my linux machine to run as a DNS server for my network and it could cache them locally. Hopefully it would allow my computers to ride the o2 dns storm!
Setting up Bind I thought was going to be really painful but all I had to do was install it and change one configuration file! Using debian I did apt-get install bind9 and also apt-get install dnsutils. This installed everything that was needed! Sometimes I think linux really is easy to use when its as easy as that to install a dns server.
The final part that needs to be done is adding my ISP’s DNS servers to the forwarders section within /etc/bind/named.conf.options.
Last put no means least just need to restart the bind server using /etc/init.d/bind restart. Its then possible to start changing the IP settings of computers on your network to use the new DNS server. Its also possible to test the server by using the dig command. Running this command with a host name will return something like:
:/etc# dig lego.com
; <<>> DiG 9.6.1-P2 <<>> lego.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 27502
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 6, ADDITIONAL: 8
….
;; Query time: 2 msec
;; SERVER: xxx.xxx.xxx.xxx#53(xxx.xxx.xxx.xxx)
;; WHEN: Fri Dec 11 21:15:25 2009
;; MSG SIZE rcvd: 365
If you run the command twice you will see that the query time will have reduced to a smaller value. This means that the server has cached the request.
There is lots more information at ubuntu.com.



