How do I make my internal dns forward requests to a given server
Posted
by ankimal
on Server Fault
See other posts from Server Fault
or by ankimal
Published on 2010-05-03T19:41:08Z
Indexed on
2010/05/03
19:48 UTC
Read the original article
Hit count: 684
We have a DNS server internally that looks up IP addresses for all internal hosts and connects to root dns servers for all other domains (the rest of the internet). Here is my config
options {
listen-on port 53 { 127.0.0.1;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 {192.168.1.0/24; 127.0.0.1; };
recursion yes;
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
view “internal” { // What the home network will see
match-clients { 127.0.0.1;any; };
match-destinations { 127.0.0.1;any; };
recursion yes;
zone "." IN {
type hint;
file "named.ca";
};
include "internal_zones.conf";
};
We need to tweak this to go to our ISPs dns, x.y.z.w instead of the root dns servers if the host cannot be resolved internally.
Config:
Fedora 10/Bind 9.5.2
© Server Fault or respective owner