view function of Bind 9

Kevin Darcy kcd at daimlerchrysler.com
Tue Apr 3 23:23:31 UTC 2007


edwardspl at ita.org.mo wrote:
> Dear All,
>
> If all of service ( include Firewall ) in the same server, and the 
> server use Private IP and connection with Router / HUB...
> Then use the NAT ( iptable function ) to transfer the IP Address ( 
> Public <-> Private )...
> So, is there need to define an external area ( public ip network ) of 
> DNS for other client ( Internet ) ?
> If need, is there an simple sample for reference ?
>   
Minimally (using the compiled-in root hints defaults):

view "internal" {
match-clients { 192.168.1.0/24; };
recursion yes; // Not strictly necessary, since this is the default

zone "example.com" {
type master;
file "internal/example.com";
};
};

view "external" {
match-clients { any; };
recursion no;

zone "example.com" {
type master;
file "external/example.com";
};
};

- Kevin



More information about the bind-users mailing list