A private internal DNS server is an excellent choice in setting up a public accessible DNS server to access a web server or other services hosted on your internal network. Keeping track of the host file for every client on your network can be tedious. Maintaining host information in one central area and allowing DNS to manage host names is more efficient. A DNS server doesn’t need much in the way of hardware or bandwidth. DNS requests are very low-bandwidth; after all, a single UDP packet is all it takes to satisfy a request. Ideally, you’ll have enough RAM to keep all zone and cache data in memory.
Setup DNS on Debian
Bind, otherwise known as the Berkeley Internet Naming Daemon. Complete the following steps to install and configure Bind 9 on your Debian Server.
Insert the following in the named.conf file you have open in nano:
#Replace seowebz.com with your own domain name.
zone “seowebz.com” {
type master;
file “/etc/bind/db.seowebz.com”;
};
Save and exit the file.
Step 3: Next, we need to copy the db.local file and save it as our company domain db file. To copy db.local type the following in a terminal window: cp db.local db.seowebz.com next, we need to modify the file we just created, type the following: nano db.seowebz.com and enter the following information in the file: Refer to the illustration below for info to input. When finished save and close the file.

You will notice in the screenshot above there is a field to place the serial number. The serial number should stipulate the date you made the record, plus the number of the changes to the record. In the example above the date I used was May 10th 2011 plus the 02 for the second change.
Next, we need to setup a reverse zone file for the domain. Type the following in a terminal window:
That is it, we now have a functioning authoratative DNS server. Your company db file should look similar to the illustration below:

That is it, you should be up and running. I am only human so if you see an error please let me know by leaving a comment. Create a great day!
Upon initial install the Bind service is setup as a caching only DNS server, you can have hosts query against it and your server will memorize any values that are returned from remote DNS hosts, thus providing faster subsequent resolution. So, the initial install is a caching only server regardless of any Linux distribution.