Debian Operating System (OS) is free and open source OS (download). It have been around for a while now almost two decade (initial release on 1993). It’s currently at its 6th version also know as “Squeeze”. This OS is very stable as so many of its derivatives OS are flowering and gaining more popularity. One of the example would be “Ubuntu” (download).
1. To setup Debian as DNS server, first we need to update our application database
Now I will install aptitude application. This is a advance version of apt-get and has much more function.
After this, we need to install bind9. This will act as DNS server.
Again, we need to edit name.conf.option to assign DNS.
Make that option look like this. I am using OpenDns. It gives you more option to configure your network like blocking adware and other domain (Only downside is that you should have static ip or if you have dynamic ip then you have to install opendns ip updater software for more info go here)
OR you can use Google DNS, remove forward slash and put that infront of 126.96.36.199, 188.8.131.52.
Just to be sure which DNS is fast you can use. For Mac & Windows user : Namebench (download). This application can identify which DNS is faster for you and you can use that DNS ip in this configure file. Just add that ip below New ip.
2. Setting up DHCP server, we need to install isc-dhcp-server
Now we need to configure its setting
After that give a domain name and server ip. Also you can see that I have given my ip range starting from 100 and ending 200. You can change that according to your need.
Restart dhcp server
You server will start assigning ip once client request it. I think one more thing that you need to do is, you need to change your router settings and change it to forward ip to dhcp server but every router.