DNS Views Problem

Ryan K. Pederson ryan.pederson at shaw.ca
Thu Jul 24 21:22:04 UTC 2003


Hey,

I've been having some trouble with DNS views with BIND 9.2.2 on
Windows 2000.

OS: Windows 2000 Server SP4
BIND Version: 9.2.2

I currently have the machine configured with two network cards.  One
is on the internal network and the other is on the internet.  It is
running NAT.  I need to use views in BIND so that I can have my
internet IP accessible from the 'net and my internal IP accessible by
the workstations.
When I use the 'views' option in my named.conf file and run
named-checkconf.exe, I get the error:

..\etc\named.conf:31: unknown option 'view'
..\etc\named.conf:41: unexpected token near end of file

Short of a complete reinstall of BIND, I have tried everything.

Here's my named.conf right now:

*START*
options {
	directory "c:\windows\system32\dns";
};

acl "internal" { 192.168.0/24; };

view "internal" {  // internal view of our zones

	match-clients { "internal"; };

	zone "domain.ca" {
		type master;
		file "domain.ca.internal.dns";
	};

	zone "0.168.192.in-addr.arpa" {
		type master;
		file "0.168.192.dns";
	};

	zone "0.0.127.in-addr.arpa" {
		type master;
		file "0.0.127.dns";
	};

	zone "." {
		type hint;
		file "named.ca.dns";
};

view "external" {  // view of our zones for the rest of the world

	match-clients { any; };  // implicit
	recursion no;            // outside of our subnet, they shouldn't be
                             // requesting recursion
	zone "domain.ca" {
		type master;
		file "domain.ca.external.dns";
	};
}
*END*

I can't explain it... Hopefully somebody in cyberspace can...

Thank you,

Ryan


More information about the bind-users mailing list