A
A
Arthur2015-11-30 03:01:10
ubuntu
Arthur, 2015-11-30 03:01:10

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

1 answer(s)
V
Vlad Zhivotnev, 2015-11-30
@inkvizitor68sl

Somewhere in your config you have zones that are outside the view.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question