Richard Luckhurst wrote:
am now even more confused. Does anyone have a nice explanation of how to use
the "view" directive? I guess this is what is known as split DNS isn't it?
Here is a snippet of my /etc/named.conf
Access to the name service from either the local host or 192.168 address
results in the name servive recursing to either resolve a remote host,
or serving out an internal address.
Access from any other hosts results in only resovlving limited names to
external IP's.
HTH
P.
--
view "goodguys" {
match-clients { 127.0.0.1; 192.168.0.0/16; };
recursion yes;
zone "." {
type hint;
file "named.cache";
};
zone "mydomain.com.au" {
type master;
notify no;
file "mydomain.com.au.db";
};
}
view "badguys"
{
match-clients {"any"; };
recursion no;
zone "mhl.nsw.gov.au" {
type master;
file "mydomain.com.au.db-ext"; // only public hosts in this file
};
};
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html