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!