Include statement does not work in view statement (named.conf) in bind-9.1.3
Mark_Andrews at isc.org
Mark_Andrews at isc.org
Tue Sep 18 23:17:02 UTC 2001
Carl this c.p.d.b is also a mailing list. It is extemely
impolite to uses fake email addresses with a mailing list.
If you want help have the decency to put a valid email
address in. Email address harvesters will remove things
like "_no_spam" and then try both. You just annoy the
people who can help you as they don't know whether to remove
it or not and will get a bounce back if they try both.
The restriction is lifted in BIND 9.2 which has a new parser.
Mark
> Hi,
> i can't get the include-statement to work (with bind-9.1.3) when it is put
> inside a view-statement. named-checkconf (as well as named itself) says
> "/etc/named.conf:32: parse error near include". It works fine (as far as the
> named.conf-parsing is concerned) when i put it outside the view-statement. I
> kind of thought that the include-statement should be transparent to where
> you put it in the config file!? The file "include.zones" (see below) is
> located in the home-directory of named - the on specified with the directory
> statement.
>
> I use it there to include a whole bunch of zones that should appear in both
> of the views that i want to define. Is there any other (better) way to do
> this maybe?
>
> --Kalle
>
>
> Here is a snippet out of /etc/named.conf that doesn't work.
>
> __CUT__
> view "internal" {
> match-clients { internal_hosts; };
> recursion yes;
>
> ## itkonsult.se
> zone "itkonsult.se" in { type master; file
> "itkonsult.se.int"; };
> zone "32.168.192.in-addr.arpa" in { type master; file
> "int.itkonsult.se.rev"; };
> zone "int.itkonsult.se" in { type master; file
> "int.itkonsult.se."; };
>
> zone "." in { type hint; file
> "named.ca"; };
> ## Loopback-interface
> zone "0.0.127.in-addr.arpa" in { type master; file
> "named.local"; };
>
> ## all other zones
> include "include.zones";
>
> };
> __UNCUT__
>
>
>
> ---
> Carl Bingel
> Svensk IT Konsult AB, Thulegatan 13, 172 78 Sundbyberg
> Telephone +46-8-6350916, Mobile +46-70-3739258
>
>
>
--
Mark Andrews, Internet Software Consortium
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742 INTERNET: Mark.Andrews at isc.org
More information about the bind-users
mailing list