Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-30-2013, 07:28 PM   #1
LQ Newbie
Registered: Aug 2013
Posts: 4

Rep: Reputation: Disabled
Smile Installing BIND Locally

I got BIND installed (CentOS) all is good I can do dns etc.

What I do want to do is install BIND (Dns) locally as we have 2 networks and I want only the intranet to work with that server. All I really need is 10.x.x.x/24 servers to do a dns lookups (BIND Dns Cache) and thats it.

Not sure what I need all to put in named.conf to get that all done.

Please if you could guide me bit through what I need to place in named.conf (I dont need a domain name) so I am assuming zone can be taken off?

So here it is what I got so far.
// /var/named/chroot/etc/named.conf
options {
        listen-on port 53 {; };   // I Tried placing ; any ; 
        listen-on-v6 port 53 { ::1; };
        directory       "/var/named";
        dump-file       "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
        memstatistics-file "/var/named/data/named_mem_stats.txt";
        allow-query     { localhost; 10.x.x.x/24; };
        allow-query-cache    { localhost; 10.x.x.x/24; };
        recursion yes;

        dnssec-enable yes;
        dnssec-validation yes;
        dnssec-lookaside auto;

        /* Path to ISC DLV key */
        bindkeys-file "/etc/named.iscdlv.key";

        managed-keys-directory "/var/named/dynamic";

zone "." IN {
        type hint;
        file "";

logging {
        channel default_debug {
                file "data/";
                severity dynamic;

include "/etc/named.rfc1912.zones";

It works locally on the server it self, but if I put this dns server on windows as (primary dns server) its not resolving. I get timeout..

Not sure what I am missing, iptables?

Thank you a lot!
Old 08-31-2013, 02:31 AM   #2
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,566

Rep: Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794Reputation: 1794
listen-on port 53 {; }; // I Tried placing ; any ;
listen-on-v6 port 53 { ::1; };
Remove or comment out the above lines, so named listens on all available interfaces. Of course if you want you can use the following:
       listen-on port 53 {; 10.x.y.z;};   // I Tried placing ; any ; 
       listen-on-v6 port 53 { ::1; X:Y:Z;};
wher 10.x.y.z and X:Y:Z are the ipv4 and ipv6 addresses of your dns server.
Also check if your firewall blocks port 53 udp/tcp.
And better restrict recursion to your LAN using
allow-recursion {10.x.x.x/24; };
instead of
recursion yes;

Last edited by bathory; 08-31-2013 at 02:42 AM. Reason: typos
Old 09-01-2013, 09:29 AM   #3
LQ Newbie
Registered: Aug 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thank you, ill try.
One thing to mention is that the 10. is private network (does not go out) yet lets say 11.x network is going out through nat fw

FYI locally on server it works just fine

nslookup 10.x.x.x

Last edited by joeswat; 09-01-2013 at 09:40 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing libmp3lame locally JavaNinja Linux - Newbie 6 10-01-2011 09:26 AM
BIND - reverse dns queries only working locally, forward dns works fine. SloS13 Linux - Networking 3 08-25-2011 12:46 PM
BIND answers locally but not when queried by remote servers grob115 Linux - Server 3 08-14-2010 10:12 AM
Installing applications locally Master_9 Linux - Newbie 5 11-06-2009 12:34 PM
BIND - Locally OK, LAN cleints unable to resolve? Xaque208 Linux - Networking 2 08-08-2005 09:32 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:58 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration