People who can read man pages can certainly read emails :-)

He was running named-checkconf, not named-checkzone.

It appears that the default view is locked to class IN, so if you need a zone in another class, you need to define a view, even if trivially defined:

options {
directory "/tmp";
};

view "blah" class999 {
match-clients { any; };

zone "foo" class999 {
type master;
file "foo";
};
};


- Kevin

Stephane Bortzmeyer wrote:
On Mon, Nov 30, 2009 at 10:43:08PM +0100,
JFC Morfin <jef...@jefsey.com> wrote a message of 15 lines which said:

I guessed the format from the code. But it fails.  named-checkconf
says that "CLASS999 does not match view\default class"?

People who read the code can certainly read the man page:

       -c class
           Specify the class of the zone. If not specified, "IN" is assumed.


% named-checkzone -c CLASS42 example example.zone
zone example/CLASS42: loaded serial 13
OK

% cat example.zone
$TTL    300
@       CLASS42 SOA     localhost. root.localhost. (
                              13                ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
@       CLASS42 NS      localhost

www     CLASS42  CNAME foo.bar.
troll   CLASS42 TXT "test"
_______________________________________________
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users



_______________________________________________
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Reply via email to