On 31/05/11 09:49, Lic. Manuel Salgado wrote:
Saludos nuevamente a todos:
Quiero montar un DNS con Bind con dos vistas. He configurado ya los
respectivos ficheros de zona, pero al reiniciar el servicio se me devuelve
el siguiente error:

Starting domain name service...: bind9 failed!
zeus:~# tail -f /var/log/daemon.log
May 30 18:57:18 zeus named[6524]: loading configuration: unexpected token
May 30 18:57:18 zeus named[6524]: exiting (due to fatal error)
May 31 08:36:54 zeus named[7100]: starting BIND 9.5.1-P3 -u bind
May 31 08:36:54 zeus named[7100]: found 1 CPU, using 1 worker thread
May 31 08:36:54 zeus named[7100]: using up to 4096 sockets
May 31 08:36:54 zeus named[7100]: loading configuration from
'/etc/bind/named.conf'
May 31 08:36:54 zeus named[7100]: /etc/bind/named.conf.local:23: unknown
option 'view'
May 31 08:36:54 zeus named[7100]: /etc/bind/named.conf:41: unexpected token
near end of file
May 31 08:36:54 zeus named[7100]: loading configuration: unexpected token
May 31 08:36:54 zeus named[7100]: exiting (due to fatal error)

Esta es mi configuracion:

view "externa" {
match-clients { any; };
recursion no;

zone "mi.zona.cu" {
     type master;
     file "/etc/bind/wan-directa";
     };
zone "xx.yy.zz.in-addr.arpa" {
     type master;
     file "/etc/bind/wan-inversa";
};

view "interna" {
match-clients {w.x.y.z/24; 127.0.0.0/8; };
recursion yes;
zone "mi.zona.cu" {
     type master;
     file "/etc/bind/interna-lan";
     };

zone "xx.yy.zz.in-addr.arpa" {
     type master;
     file "/etc/bind/lan-inversa";
};
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL:<http://listas.jovenclub.cu/pipermail/gutl-l/attachments/20110531/3d826543/attachment.htm>
______________________________________________________________________
Lista de correos del Grupo de Usuarios de Tecnologías Libres de Cuba.
Gutl-l@jovenclub.cu
https://listas.jovenclub.cu/cgi-bin/mailman/listinfo/gutl-l
Colega la tienes que poner las zonas del name.conf en cada vista que declares en el named.conf.local, asi mira la mia sino te da bateo mira la mía

logging {
category lame-servers {null; };
category edns-disabled { null; };
};

view "vwan" {
       match-clients { any; };
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";
 };
zone "dominio.cu" IN {
        type master;
        file "/var/cache/bind/dominio.cu.zone";
        allow-query  { any; };
        allow-transfer {slave; };
        also-notify {mi slave;};
#       notify yes;
     };
zone "inverso.in-addr.arpa" IN {
        type master;
        file "/var/cache/bind/inverso.in-addr.arpa";
        allow-query  { any; };
        allow-transfer {slave; };
        also-notify {mi slave;};
#       notify yes;
   };
 };

view "vlan" {
       match-clients { any; };

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";
  };
zone "dominio.cu" IN {
       type master;
       file "/var/cache/bind/dominio.lan.zone";
       allow-transfer {mi slave lan; };
        also-notify {slave lan;};
 };
zone "inverso lan.in-addr.arpa" IN {
       type master;
       file "/var/cache/bind/lan.in-addr.arpa";
       allow-transfer {slave lan; };
        also-notify {slave lan;};
  };




--
********************************
  * Yuniesky Machado Rojas       *
    * Administrador de Redes       *
    * Instituto Nacional de Investigación en Viandas Tropicales *
    * Santo Domingo, Villa Clara, Cuba   *
    * Tel: (53) (042) 403689            *
 *GNU/Linux User #481684 (http://counter.li.org)        *       
********************************



______________________________________________________________________
Lista de correos del Grupo de Usuarios de Tecnologías Libres de Cuba.
Gutl-l@jovenclub.cu
https://listas.jovenclub.cu/cgi-bin/mailman/listinfo/gutl-l

Reply via email to