How to Setup a DNS server with BIND on Windows 7 (Part 2)

..continued from Part 1.

 

Setup

 

Configuration Files

1 . Now this is the hardest part of the tutorial. Firstly download file called named.root from

ftp://ftp.internic.net/domain/

2 . Copy the downloaded file to the DNS\etc folder.Depending on your Windows version, for 32 bit the location is

C:\Windows\System32\dns\etc

and for Windows 64 bit

C:\Windows\SysWOW64\dns\etc

3 . We will generate a BIND key by running:

rndc-confgen -a

4 . Next will generate a file called rndc.conf by runnning:

rndc-confgen > C:\Windows\SysWOW64\dns\etc\rndc.conf

(depending on the Windows version)

5 . We will open the file rndc.conf using notepad+ and copy the highlighted lines

and close the file.

6 . With notepad+ create a file called named.conf and paste the lines into the file.

7 . At the top of the line, type:

options {
    directory “C:\Windows\SysWOW64\dns\etc”;
};

8 . Uncomment the lines by removing the # sign as in the picture.

and save file.

9 .  Create another file called resolv.conf and type 127.0.0.1 at the top of the file. Type your DNS server from your ISP to the next two nameserver. For my machine, I use google dns address which is 8.8.8.8 and 8.8.4.4. Press enter at the end of the lines. Save the file.

 

Windows Service

1 . Click Start button and type ” services.msc ” inside the box.

2 . Locate ISC BIND and double click. Go to Logon Tab and please select “Local System Account” and check the box under it.

3 . Go to general tab and click Start button. The service should start or check the log if it fails to start.Click ok and close the window.

 

Network Configuration

1 . Click Start button and type Network Connections inside the box.

2 . Choose your internet adapter, right click and select properties.

3 . Look for Internet Protocol Version 4 and double click.

4 . Now select ” Use the following DNS server addresses” and type 127.0.0.1 in the first box. Click Ok and close then box.

That’s it!

 

Results

We have to verify the functionality of the DNS server. Fire up Command Prompt box and type

host websiteaddress.com

and verify the details.

 

Next, run these commands

dig websiteaddress.com

and observe the Query time.

 

Now run the command again and you will see a much lower query time. Repeat with other website to see how much time you can shave with BIND.

 

Summary

This guide does not promise a faster internet experience for all user. While the improvement of speed in browsing may be increased by a small percentage, the fun is in knowing that you have managed to run your own DNS server. How cool is that :)

 

 

EasyFreeAds Blog News Facebook Twitter Myspace Friendfeed Technorati del.icio.us Digg Google Yahoo Buzz StumbleUpon

Comments are closed.