Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

View doesn't work in Bind9

Status
Not open for further replies.

cub2000

IS-IT--Management
Jan 15, 2005
4
US
I need some help with bind 9 views. External view doesn't seem to work, but internal view works fine. I already match client to specific IP address for both views and only the zones defined in internal view works. I did try to 'nslookup' from the clients I defined in the match-clients directive. I have pasted the named.conf here


-----start paste ---

options {
directory "/var/named";
pid-file "/var/run/named.pid";

forwarders { 63.240.76.19; 204.127.198.19; };

# hide our "real" version number
version "[secured]";
};

include "/etc/rndc.key";


controls {
inet 127.0.0.1 allow { localhost; } keys { dnsadmin; };
};




view "internal" {

match-clients { 192.168.1.7; };
recursion no;

# The root nameservers
zone "." {
type hint;
file "named.ca";
};

# localhost - forward zone
zone "localhost" {
type master;
file "localhost.zone";
notify no;
};


zone "bostonfx.com" {
type master;
file "bostonfx.zone";
};


zone "nixbum.com" {
type master;
file "nixbum.zone";
};

# localhost - inverse zone
zone "0.0.127.in-addr.arpa" {
type master;
file "0.0.127.in-addr.arpa";
notify no;
};



zone "1.168.192.in-addr.arpa" {
type master;
file "1.168.192.in-addr.arpa";
notify no;
};
};


view "external" {


match-clients { 192.168.1.8; };
recursion no;


# The root nameservers
zone "." {
type hint;
file "named.ca";
};

zone "nixout.com" {
type master;
file "nixout.zone";
notify no;
};

zone "1.168.192.in-addr.arpa" {
type master;
file "1.168.192.in-addr.arpa";
notify no;
};
};


---- end paste ---


Many thanks in advance
 
Are you seeing any errors in the logs when you load the zone? What happens when you dig on that zone from the server itself? Are there any errors in the zone file?

Chris.

**********************
Chris A.C, CCNA, CCSA
**********************
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top