Graphic Motion Video Art, Website, IT Network, Culture

Loading...
Building Local Dns Server Using BIND for Windows to the local Network.

DNS Server is the database server which will be distributed and mapping the hostnames to the IP address and otherwise. This is the process which must be passed when we are connected to the internet to access any servers in the world. So when we use the specific dns server such google dns, we will follow the domain database rules on this server. For example if google dns has blocked any webhosting server, we will not be able to access the webhosting server using this dns server. I personally prefer to use google dns because the resolve dns response more quickly and widely, but this would depend on your purposes.

From ISP (Internet Service Provider) itself many has been implemented the Internal DNS Server to their clients internet services for some reasons . This will greatly depend on the quality and ability of their internal dns sever to serve their clients. If sometime their dns server having a problems, automatically their services will be disrupted, although their internet connection in good condition. This could be a factor that could be a problem and the resolve dns response of their dns server to serve many clients.
In some other cases building local dns server will be the alternative way which can increase the internet speed and can be fix the problem dns server to our local internet network. When we have used local dns server, we can make our rules for the local dns server, and all the responsibility is fully on our hands to manage the rules of local dns server. Ok we begin immediately how to build local dns server for our local network using BIND (Berkeley Internet Name Domain) on windows. BIND is the open source or free software that allow you to build your local DNS Server.

1. Download and Install Bind on windows for Local Dns Server

BIND (Berkeley Internet Name Domain) is free software that allow us to build dns server that can be run for some operating system. In this case, we will implement Bind on window 7 32bit. You can download Bind application version by visiting www.isc.org/downloads/bind/ or just download this file here.
After you have download you can extract the zip file at first and you can run BINDInstall.exe. Then you can fill where the installation files will be placed.
Target Directory : c:\windows\system32\dns
Service Account Password : named
Password : Up to you!

For more details you can see the picture below! After you fill the installation configuration, you can click install!


If something happen during installation such a Problem from "vcredist.msi "file.  You can find vcredist_x86.exe  from the source BIND installation files, and you can extract this exe file and you can see vcredist.msi to the extracted files. Then you can browse the asking file and the installation process will be continued. Until you have found successful Bind Installation, you can close Bind Installer.

2. Configuration of the Variables Path to the Bind Installation Root

Make sure the variables Path of Environment Variables in system properties has added the string. Look at the two pictures below!
Windows 64 bits ;%SYSTEMROOT%\SysWOW64\dns\bin;
Windows 32 bits ;%SYSTEMROOT%\system32\dns\bin;
And the complete variables path that have been added string will be like this
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\squid\bin;C:\squid\sbin;%SYSTEMROOT%\system32\dns\bin; 

3. Bind Installation files and Adding a New Folders

Go to the Bind Installation Path c:\windows\system32\dns. And you will see Bind Installation has 2 main folders/directories, that is bin and etc folders. Run the command prompt, by typing cmd on start menu, right click, and run as administrator

We are going to create log and zone folder on Bin installation files using command prompt (CMD).  After cmd has running and type the command below!
mkdir log
mkdir zone

4. Create the configuration files in Bind Files and Drivers\etc

To make the local dns server we have to create some configuration dns files as the local Dns Server.  The configuration files require further understanding in DNS programming to build dns server as the specific characters and rules of your dns server as you like. You can learn more about DNS programming www.isc.org. But now I will give the configuration as the basic local dns server that you can customize as dns server and rules.

Create named.conf in System32\dns\ etc


Proceed from the active root from the command prompt before. Still at the active root/path on cmd. Next we will continue of the next command to create the bind configuration files, just continue type :

cd etc
notepad named.conf

named.conf :
options {
    directory "C:\Windows\System32\dns\zone";
    allow-query { localhost; clients ; };
    forwarders { 8.8.8.8; 8.8.4.4; 208.67.222.222; 208.67.220.220; };
    forward only;
    max-cache-size 2097152 ; 
    empty-zones-enable yes;
};

acl  clients    {
    192.168.1.0/24  ; 192.168.137.0/24  ;
};

zone "go2net.com" { type master; file "dummy-block"; };
zone "infospace.com" { type master; file "dummy-block"; };
zone "kcookie.netscape.com" { type master; file "dummy-block"; };
zone "linksynergy.com" { type master; file "dummy-block"; };
zone "yimg.com" { type master; file "dummy-block"; };
zone "zedo.com" { type master; file "dummy-block"; };

logging {
    channel queries_log {
        file "C:\Windows\System32\dns\log\queries.log";
        print-severity yes;
        print-time yes;
    };
    category queries { queries_log ; };
};

zone "localhost." IN {
    type master;
    file "localhost.zone";
    allow-update { none; };
};
zone "0.0.127.in-addr.arpa." IN {
    type master;
    file "localhost.rev";
    allow-update { none; };
};

include "C:\Windows\System32\dns\etc\rndc.key"; 


This named configuration using forwarders as parent dns server by google dns, you can change or add another dns server as forwarders. The acceleration access for the local network, you can adjust the IP network as your own. If you want to block the access hostname/url, you can fill the hostname on zone with dummy block. And make sure queries.log and rndc.key in the right path that we will created next.

Create localhost.zone and localhost.rev in System32\dns\etc

cd..
cd zone
notepad localhost.zone
notepad localhost.rev

localhost.zone :
$TTL    86400
@               IN SOA  @       root (
                                        42              ; serial
                                        3H              ; refresh
                                        15M             ; retry
                                        1W              ; expiry
                                        1D )            ; minimum
                IN NS           @
                IN A            127.0.0.1
                IN AAAA         ::1 

localhost.rev :
$TTL    86400
@       IN      SOA     localhost. root.localhost.  (
                                      1997022700 ; Serial
                                      28800      ; Refresh
                                      14400      ; Retry
                                      3600000    ; Expire
                                      86400 )    ; Minimum
        IN      NS      localhost.
1       IN      PTR     localhost. 


Create queries.log in System32\dns\log

cd..
cd log
notepad queries.log

we just create queries.log file that the path file is related to named queries.log  configuration, leave it blank! this file will be the place as the record of the log dns access.

Create rndc.key in System32\dns\etc

cd..
cd bin
rndc-confgen –a

The rndc.key (remote name daemon control) that program file that allow us as the system administrator to control the operation of a name server, this will created automatically in dns\etc by the above command.

Create resolve.conf in System32\drivers\etc

The resolve.conf  consist with the IP nameservers as the IP address of dns server itself. If you want to access the local dns server on the unit server where the local dns installed you can access 127.0.0.1 as the localhost IP. But from the client network it can be accessed by 192.168.137.1 as the localnetwork IP address that connected with.
cd..
cd..
cd drivers
cd etc
notepad resolv.conf

resolv.conf :
nameserver 127.0.0.1
nameserver 192.168.137.1
nameserver 192.168.1.1

5. Run Local Bind Dns Server on Windows Services

After we have created the all configuration of the local Bind Dns Server, to use Bind Dns server we have to run the service on windows system. Ok we can run the service by typing services.msc on the windows start menu and click services, and you try to start ISC BIND on services, perhaps you will find the error warning to run ISC BIND services like the picture below!

Ok we have to fix this problem by right click on ISC BIND and click properties. On ISC BIND properties you click on the tab “Log On” and select Local System account as shown like the picture below! And you can try again to start ISC BIND Services.

6. Setup Network Configuration to Use Bind Dns Server

Assuming that local Bind Dns Server have installed on Wan server which directly connected to ISP internet connection. In this case I use dial-up connection, actually this kind ISP can not allow you change the dns server by external dns server such google dns (8.8.8.8), if you do like this you will lost the internet connection. But now I have local Bind Dns Server to this unit wan server and I'll use local dns server with the IP server 127.0.0.1 that has forwarders to google dns. And now I do not depend anymore to the ISP dns server.
In the purpose to use local Bind Dns Server to the local network that using mikrotik router, we have to setup dns server leading to the IP address of  the unit where the dns server is built or installed and connected with. It doesn’t means that local dns server must be installed as wan server. Local Dns Server also can be installed as the client network. Ok open your mikrotik winbox, click IP > DNS and you can insert the IP local dns server. In this case 192.168.137.1, it also as the IP wan server on my network. 

7. Testing and Resetting Local Bind Dns Server

To start using Local Bind Dns Server we should clear Windows DNS Cache. You can reopen again cmd and type.
ipconfig /flushdns  : clear all Dns Cache Server
rndc reload : reload bind Dns Server
dig google.com : interrogate google.com server

The Query time dig at 2  time and more should be smaller then when you dig at first time, because at 2 times and later will reload the dns cache server. 


To inspect the DNS Cache Server type : ipconfig /displaydns. The last command line will enable the query.log  record when restart ISC Bind Service : rndc querylog. That’all about building local dns server network using Bind using windows, have a try and good luck!

Share This Article :
Related Articles

38 comments :

  1. mu dear and sweet admin
    i have tryed many time to instal end run Bind but at the end of time i have got this error

    windows couldnot start the ISC BIND service on local computer
    Error 1067: the process terminated unexpectedly.

    do you have any slation to fix this error????

    ReplyDelete
    Replies
    1. I think any conflict with another software, try to check the event logs! :)

      Delete
    2. ok sir thanks

      i will try to resolving the problam :)

      Delete
    3. ISC BIND starting error 1067

      online help ans is here

      404 - File or directory not found.
      The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.

      Delete
    4. The rndc.key (remote name daemon control) that program file that allow us as the system administrator to control the operation of a name server, this will created automatically in dns\etc by the above command.

      rndc.key is not created automatically in dns\etc folder this is the issu dear admin any other command ????

      Delete
    5. its because of permission issue. give full control to installation folder to the user

      Delete
    6. its because of permission issue. give full control to installation folder to the user

      Delete
  2. I am sorry... I really don't know what actually the problem that you have found. I just can suggest you, to give attention every time you insert the command prompt, where is the path directories where currently you're active.

    ReplyDelete
  3. thank the good is great
    Welcome To Casino online Please Click the website
    thank you.
    gclub
    gclub online
    goldenslot

    ReplyDelete
  4. thanks for your share this good informations,click here if you want to play with casino online all game thank you.

    goldenslot casino
    บาคาร่าออนไลน์
    gclub casino


    ReplyDelete
  5. This comment has been removed by the author.

    ReplyDelete
  6. Kareerkonncect is a leading software training institute providing Software Training, Project Guidance, IT Consulting and Technology Workshops. Using our enhanced global software training delivery methodology, innovative software training approach and industry expertise, we provide high-value corporate training services that enable our clients to enhance business performance, accelerate time-to-market, increase productivity and improve customer service. Opt jobs in usa

    ReplyDelete
  7. At the point when an individual successes the Satta, the person is titled as the Satta King. At the point when an individual turns into a Satta King, his/her interest becomes climbed which impacts him/her to play this game much of the time. Prior the term Satta Bazar was utilized as Satta Matka wherein various tickets having numbers placed in a pot and that individual got the title of Satta Matka who got his number once the ticket is drawn out. Satta King online or gali satta is an illicit demonstration in India wherein at least two individuals are required to play this game by picking some number in like manner their desire. Furthermore, when they chose number goes out, at that point a victor is pronounced in like manner and all the cash moves to him as it were.

    ReplyDelete
  8. Stones International offers professional and tailored Best Real Estate Company in Dubai to our wide base of clients. With a diverse team of highly-qualified and experienced client managers on board, we are ready to assist our customers, whether you are a first-time property finder looking to Buy Property in Dubai, or an owner planning to sell a property in your possession.
    With ever-competitive Properties for rent in Dubai, we can provide you hassle-free property solutions, optimizing the best deals for owners and helping buyers acquire their dream property at the most competitive price.
    We have an extensive selection of properties such as villas, apartments, townhouse, office and retail spaces, plots and land, full buildings and Buy Apartment in Dubai our catalogue, located across a wide range

    ReplyDelete

  9. No doubt philosophy is a complex subject. Its complexity amd vastness has compelled students to look for Philosophy Assignment help providing sites online. If you too are looking for one, contact Best Assignment Experts and get rid of your worries and sleepless nights. Best Assignment Experts is the ideal place for students. It's extremely approachable. Our writers are experts in this subject and would curate your assignment just the way you want it to be done. When you place an order at Best Assignment Experts, no longer do you have to brainstorm your mind and invest time in researching and studying. You can hence, utlise this time in doing some other productive work.So without wasting any more time, contact us and get your work done at discounted rates.

    ReplyDelete
  10. We are a site that has been opened for a long time, ISC888 คาสิโน ฟรีเครดิต with professional staff, you can be sure that we are very stable with a simple system, just transfer money to your account immediately. Travel, deposit in 1 song and Easy to withdraw from web pages

    ReplyDelete

  11. We are a top rated marketing assignment help Online service here with experts specializing in a wide range of disciplines ensuring you get the assignments that score maximum grades.

    ReplyDelete
  12. The top Quality Assignment writingservice you have been looking for is here. Our online assignment service is the top class global assignment provider writing academic solutions for various subjects .Visit us to know more .

    ReplyDelete
  13. Get Assignment Help from a reliable UK writers at affordable price. Avail Best Online assignment help at 25% OFF, Quick Delivery, 24/7 Free Assistance .Get Essay Writing Services online by expert writers to secure good grades. Assignment Ace offers finest assignment writing service with unlimited discounts.

    ReplyDelete
  14. I have read your article, it is very informative and helpful for me. I admire the valuable information you offer in your articles. Thanks for posting it.

    Travel Boutique Online

    ReplyDelete
  15. If you are searching for authentic and reliable finance assignment help online? This is the right time to approach us.

    We provide the most reliable assignment writing service. Our experts are hailing from the top

    universities of the UK that deal with finance accounting.

    ReplyDelete
  16. Everyone knows due to this pandemic everyone has been stuck in their houses and it not easy to complete your assignment, coursework, essays or many more like these all. So you have to don't about your any kind of coursework help or ETC we are here to provide you best assignment writing services in UK from the natives of UK.

    ReplyDelete
  17. This blog has enlightened me on what I suppose to know about. As a matter of fact, it has shown me the necessary steps I should take. You can still click here to see. fugus cut off marks

    ReplyDelete
  18. This blog has enlightened me on what I suppose to know about. As a matter of fact, it has shown me the necessary steps I should take. You can still click here to see. fugus cut off marks

    https://infoguidenigeria.com/fugus-cut-off-mark/

    ReplyDelete
  19. I definitely enjoy every little bit of it and It is a great website. I want to thank you for the content. I learn a lot from your blog. Good job! You guys do a great blog and have some great content. Keep up the good work.
    Best School Management Software In India

    ReplyDelete
  20. I really enjoy reading your well-written articles. It looks like you spend a lot of effort and time on your blog. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work. ikcoed departmental cut off mark

    ReplyDelete
  21. Thanks for another excellent post. I've been exploring for a little bit for any high quality articles or blog posts on this sort of area. Thanks a lot for sharing. Visit here nmcn past questions and answers pdf download

    ReplyDelete
  22. Amazing blog, happy to have read through this auspicious article blog, It’s very interesting and valuable, I look forward to more of your useful post, thanks for sharing. past questions and answer for cipm nigeria

    ReplyDelete
  23. Very informative blog. I am extremely glad to visit your blog. I usually check your blog and find it very insightful. Thank you and waiting for your new post. Also, visit my website https://www.oddylabs.com/

    ReplyDelete


  24. Get MBA Essay Help service online from TreatAssignmenthelp.com by Expert writers. Contact now and get help in affordable prices by skilled writing experts. We have 24/7 Customer live support where you can discuss about your troubles with our specialized writers. We pioneer the custom writing industry due to the flair and subject expertise of our pool of writers who promise to deliver 100% plagiarism-free papers.

    ReplyDelete
  25. Your blog is pretty instructive and also an outstanding material that is perfect perusing for your viewers. Thanks for sharing. Click download oau jupeb post questions

    ReplyDelete
  26. Wow, wonderful blog layout! How long have you been blogging for? you make blogging look easy. The overall look of your blog is great, let alone the content!. lautech ast questions and answers

    ReplyDelete

Back to Top