LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 08-30-2013, 07:28 PM   #1
joeswat
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.
Code:
// /var/named/chroot/etc/named.conf
options {
        listen-on port 53 { 127.0.0.1; };   // 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 "named.ca";
};

logging {
        channel default_debug {
                file "data/named.run";
                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
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
listen-on port 53 { 127.0.0.1; }; // 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:
Code:
       listen-on port 53 { 127.0.0.1; 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
Code:
allow-recursion {10.x.x.x/24; };
instead of
Quote:
recursion yes;
Regards

Last edited by bathory; 08-31-2013 at 02:42 AM. Reason: typos
 
Old 09-01-2013, 09:29 AM   #3
joeswat
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 mydomain.com 10.x.x.x

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


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:05 PM.

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