- To: Richard Luckhurst <rickl@xxxxxxxxxxxxxxxxxxxx>
- Subject: Re: [SLUG] Webserver behind ADSL router
- From: Peter Rundle <prundle@xxxxxxxxxxxxxx>
- Date: Wed, 31 Aug 2005 10:31:43 +1000
- Cc: james@xxxxxxxxxxxxxxxx, Slug <slug@xxxxxxxxxxx>
- User-agent: Mozilla Thunderbird 1.0.6-1.1.fc4 (X11/20050720)
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
};
};