On 07/29/2011 10:36 AM, uifid...@gmail.com wrote:
the zones file is located at /var/named/chroot/var/named/domainx.zones.
#cat var/domainx.zones should be var/named/domainx.zones
#cat var/domainx.zone should be var/named/domain.zone
Sorry for my typo.

So this should be OK then.

Your view statements in this example say that 'localhost' will use the 'localhost_resolver' and everything else will use the 'viewx' view - but you don't have the 'domainx.zone' in your 'localhost_resolver' view.

Try adding 'include "domainx.zones";' to the 'localhost_resolver' view...

 Danilo



2011/7/29 Danilo Godec<danilo.go...@agenda.si>:
On 07/29/2011 08:17 AM, uifid...@gmail.com wrote:
cat var/named/named.conf
//
// named.caching-nameserver.conf
//
options {
        listen-on port 53 { 192.168.18.128; 127.0.0.1; };
        listen-on-v6 port 53 { ::1; };
        directory       "/var/named";
        dump-file       "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
        memstatistics-file "/var/named/data/named_mem_stats.txt";
};
logging {
        channel default_debug {
                file "data/named.run";
                severity dynamic;
        };
};
view localhost_resolver {
        match-clients      { localhost; };
        match-destinations { localhost; };
        recursion yes;
        include "/etc/named.rfc1912.zones";
};
view viewx {
        include "domainx.zones";
};


#cat var/domainx.zones
zone "domainx" IN {
        type master;
        file "domainx.zone";
        allow-update { none; };
};
Where on the filesystem is your 'domainx.zones' file?

According to you 'include "domainx.zones"' it should be
'/var/named/domainx.zones', but according to your 'cat var/domainx.zones'
it's in some 'var/' subdirectory.

Either use the full path for the include or move the domainx.zones file into
the /var/named and use a relative path from there.

  Danilo

_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to
unsubscribe from this list

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

_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

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


--
Danilo Godec, sistemska podpora / system administration

Predlog! Obiscite prenovljeno spletno stran www.agenda.si

ODPRTA KODA IN LINUX
STORITVE : POSLOVNE RESITVE : UPRAVLJANJE IT : INFRASTRUKTURA IT : 
IZOBRAZEVANJE : PROGRAMSKA OPREMA

Visit our updated web page at www.agenda.si

OPEN SOURCE AND LINUX
SERVICES : BUSINESS SOLUTIONS : IT MANAGEMENT : IT INFRASTRUCTURE : TRAINING : 
SOFTWARE

_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

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

Reply via email to