Answer the question
In order to leave comments, you need to log in
How to list all zones in bind9?
Hello.
I try to use view in my config, but when I run bind I get this error - when using 'view' statements, all zones must be in views. I tried to specify all zones there, as shown below, but there is no result. Also tried include "/etc/bind/named.conf.default-zones";
acl locals {
10.0.0.0/8;
127.0.0.1;
};
view "locals" {
match-clients { "internals"; };
recursion yes;
zone "zona.ru" {
type master;
file "/etc/bind/local.zona.ru";
allow-query { any; };
allow-transfer { locals; };
zone "." {
type hint;
file "/etc/bind/db.root";
};
zone "localhost" {
type master;
file "/etc/bind/db.local";
};
zone "127.in-addr.arpa" {
type master;
file "/etc/bind/db.127";
};
zone "0.in-addr.arpa" {
type master;
file "/etc/bind/db.0";
};
zone "255.in-addr.arpa" {
type master;
file "/etc/bind/db.255";
};
};
Answer the question
In order to leave comments, you need to log in
Somewhere in your config you have zones that are outside the view.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question