Re:Multiples vistas bind9

2010-06-12 Por tema Machado





 Debes ser buen observador. Si te fijas debes cerrar la llave final de la
 declaración de las vistas, es por esto que bind te dice que las zonas
 deben ser declaradas dentro de la vistas cuando se trabajan con ellas.
 Prueba de esta manera:

 view vlan {
 match-clients { lan; !any; };
 allow-recursion { servidores-lan; };

  zone midom.cu IN {
 type master;
 file midom.cu.lan.zone;
 allow-update { none; };
 notify yes;
};

  zone rev.lan.in-addr.arpa IN {
 type master;
file rev.lan.in-addr.arpa;
 allow-update { none; };
 notify yes;
};
 };

  view vwan {
 match-clients { any; !lan; };
 allow-recursion { any; };

  zone midom.cu IN {
  type master;
  file midom.cu.zone;
 allow-query  { any; };
 allow-transfer {slave; };
 also-notify {ip;};

   };

  zone rev.in-addr.arpa IN {
  type master;
  file rev.in-addr.arpa;
 allow-query  { any; };
 allow-transfer {slave; };
 also-notify {ip;};

 };
 };


  chama a mi me pasa lo mismo cuando hice unos cambios, y no di en bola
 con
  lo que pasaba... ya seguire la lista haber si alguien te responde.
 
  suerte amigo
  adian
 
  
 
  miren lo deje asi
 
 
  // prime the server with knowledge of the root servers
  zone . {
type hint;
file /etc/bind/db.root;
   };
  //
   be authoritative for the localhost forward and reverse zones,
 and
  for
   broadcast zones as per RFC 1912
  //
  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;
  };
 
  acl lan { ip-lan; };
  acl servidores-lan { ip-lan/28; };
  acl servidores-wan { ip-wan/28; };
 
  view vlan {
 match-clients { lan; !any; };
 allow-recursion { servidores-lan; };
 
  zone midom.cu IN {
 type master;
 file midom.cu.lan.zone;
 allow-update { none; };
 notify yes;
};
 
  zone rev.lan.in-addr.arpa IN {
 type master;
 file rev.lan.in-addr.arpa;
 allow-update { none; };
 notify yes;
};
 
  view vwan {
 match-clients { any; !lan; };
 allow-recursion { any; };
 
  zone midom.cu IN {
  type master;
  file midom.cu.zone;
allow-query  { any; };
allow-transfer {slave; };
also-notify {ip;};
 
   };
 
  zone rev.in-addr.arpa IN {
  type master;
  file rev.in-addr.arpa;
allow-query  { any; };
allow-transfer {slave; };
also-notify {ip;};
 
 };
 
 
  pero me sigue dand el error
 
  /etc/bind/named.conf.local:10: when using 'view' statements, all
 zones
  must be
  in views
 
  en la linea 10
 
  Alguna ayudita plis
 
  Saludos
 
 
  --
  
   * Yuniesky Machado Rojas   *
   * Administrador de Redes   *
   * Instituto Nacional de Investigación en Viandas Tropicales
  *GNU/Linux User #481684 (http://counter.li.org)
   
 
 
 
 
  --
  
   * Yuniesky Machado Rojas   *
   * Administrador de Redes   *
   * Instituto Nacional de Investigación en Viandas Tropicales
  *GNU/Linux User #481684 (http://counter.li.org)
   
 
 
 
 
  --
  
   * Yuniesky Machado Rojas   *
   * Administrador de Redes   *
   * Instituto Nacional de Investigación en Viandas Tropicales
  *GNU/Linux User #481684 (http://counter.li.org)
   
 
 
 
  --
  To UNSUBSCRIBE, email to
 debian-user-spanish-requ...@lists.debian.org
  with a subject of unsubscribe. Trouble? Contact
  listmas...@lists.debian.org
  Archive:
 
 http://lists.debian.org/1663.169.158.79.75.1276287860.squir...@webmail.
 inivit.cu
 
 
  --
  Ahora la nueva direccion de correo es @tr.ss.rimed.cu.
 
 
 



 --
 Ahora la nueva direccion de correo es @tr.ss.rimed.cu.


 --
 To UNSUBSCRIBE, email to debian-user-spanish-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact
 listmas...@lists.debian.org
 Archive:
 http://lists.debian.org/e62b505836b6a176838c93dcd57008d8.squir...@webma
 il.tr.ss.rimed.cu




 Servicio de correo electrónico de la UEB Informática y Automatización Granma



 --
 To UNSUBSCRIBE, email to debian-user-spanish-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/wc20100611213751.260...@alimaticgr.co.cu



Ya habia probado asi antes pero da este error

unknown option 'view' en esta linea
view vwan {

Saludos




-- 

 * Yuniesky Machado Rojas   *
 * Administrador de Redes   *
 * Instituto Nacional de Investigación 

Re:Multiples vistas bind9(Solucionado)

2010-06-12 Por tema Machado






 pero me sigue dand el error

 /etc/bind/named.conf.local:10: when using 'view' statements, all zones
 must be
 in views

 en la linea 10

 Alguna ayudita plis

 Saludos


 Mira colega en mi caso yo lo tengo asi, en /etc/bind/named.conf tengo
 todas las lineas comentadas menos estas dos:

 include /etc/bind/named.conf.options;

 include /etc/bind/named.conf.local;

 Ahora en /etc/bind/named.conf.local tengo esto:

 view externa {
 //Zona pri.jovenclub.cu
   match-clients { 10.20.45.0/24; 10.20.46.0/24; 192.168.22.0/24; };

 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 pri.jovenclub.cu {
   type master;
   file /var/cache/bind/pri.jovenclub.cu-externa;
   };

 zone 22.168.192.in-addr.arpa {
   type master;
   file /var/cache/bind/22.168.192.in-addr.arpa;
   };
 };

 view interna {
 //Zona pri.jovenclub.cu
   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 pri.jovenclub.cu {
   type master;
   file /var/cache/bind/pri.jovenclub.cu-interna;
   };

 zone 5.168.192.in-addr.arpa {
   type master;
   file /var/cache/bind/5.168.192.in-addr.arpa;
   };
 };


 Asi me funciona perfecto hasta ahora!!


 Saludos...


 ___
 Eduardo R. Barrera Pérez
 Administrador Nodo Jovenclub
 Pinar del Rí­o
 Web-Site: http://www.pri.jovenclub.cu
 Email:  ebarr...@pri.jovenclub.cu
 Jabber: ebarr...@jabber.pri.jovenclub.cu
 Phone:  0148-755805
   _
   ___| |__   __ _ _ __ _ __ ___ _ __ __ _
  / _ \ '_ \ / _` | '__| '__/ _ \ '__/ _` |
 |  __/ |_) | (_| | |  | | |  __/ | | (_| |
  \___|_.__/ \__,_|_|  |_|  \___|_|  \__,_|




 --
 To UNSUBSCRIBE, email to debian-user-spanish-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive:
 http://lists.debian.org/e9915909629ae6dfd8acc4e66676a6a2.squir...@correoweb.pri.jovenclub.cu


Ya Solucionado, gracias a todos por la ayuda y en especial a Eduardo por ser la
clave de la solucion

Cambio y Fuera




-- 

 * Yuniesky Machado Rojas   *
 * Administrador de Redes   *
 * Instituto Nacional de Investigación en Viandas Tropicales
*GNU/Linux User #481684 (http://counter.li.org)
 



-- 
To UNSUBSCRIBE, email to debian-user-spanish-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/2341.169.158.79.75.1276348383.squir...@webmail.inivit.cu



Re:Multiples vistas bind9

2010-06-11 Por tema Machado
miren lo deje asi


// prime the server with knowledge of the root servers
zone . {
type hint;
file /etc/bind/db.root;
 };
//
 be authoritative for the localhost forward and reverse zones, and for
 broadcast zones as per RFC 1912
//
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;
};

acl lan { ip-lan; };
acl servidores-lan { ip-lan/28; };
acl servidores-wan { ip-wan/28; };

view vlan {
   match-clients { lan; !any; };
   allow-recursion { servidores-lan; };

zone midom.cu IN {
   type master;
   file midom.cu.lan.zone;
   allow-update { none; };
   notify yes;
  };

zone rev.lan.in-addr.arpa IN {
   type master;
   file rev.lan.in-addr.arpa;
   allow-update { none; };
   notify yes;
  };

view vwan {
   match-clients { any; !lan; };
   allow-recursion { any; };

zone midom.cu IN {
type master;
file midom.cu.zone;
allow-query  { any; };
allow-transfer {slave; };
also-notify {ip;};

 };

zone rev.in-addr.arpa IN {
type master;
file rev.in-addr.arpa;
allow-query  { any; };
allow-transfer {slave; };
also-notify {ip;};

   };


pero me sigue dand el error

/etc/bind/named.conf.local:10: when using 'view' statements, all zones must be
in views

en la linea 10

Alguna ayudita plis

Saludos


-- 

 * Yuniesky Machado Rojas   *
 * Administrador de Redes   *
 * Instituto Nacional de Investigación en Viandas Tropicales
*GNU/Linux User #481684 (http://counter.li.org)
 




-- 

 * Yuniesky Machado Rojas   *
 * Administrador de Redes   *
 * Instituto Nacional de Investigación en Viandas Tropicales
*GNU/Linux User #481684 (http://counter.li.org)
 




-- 

 * Yuniesky Machado Rojas   *
 * Administrador de Redes   *
 * Instituto Nacional de Investigación en Viandas Tropicales
*GNU/Linux User #481684 (http://counter.li.org)
 



-- 
To UNSUBSCRIBE, email to debian-user-spanish-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/1663.169.158.79.75.1276287860.squir...@webmail.inivit.cu



Re:Multiples vistas bind9

2010-06-11 Por tema a...@n RuiZ
 chama a mi me pasa lo mismo cuando hice unos cambios, y no di en bola con
 lo que pasaba... ya seguire la lista haber si alguien te responde.

 suerte amigo
 adian

 

 miren lo deje asi


 // prime the server with knowledge of the root servers
 zone . {
  type hint;
  file /etc/bind/db.root;
  };
 //
  be authoritative for the localhost forward and reverse zones, and
 for
  broadcast zones as per RFC 1912
 //
 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;
 };

 acl lan { ip-lan; };
 acl servidores-lan { ip-lan/28; };
 acl servidores-wan { ip-wan/28; };

 view vlan {
match-clients { lan; !any; };
allow-recursion { servidores-lan; };

 zone midom.cu IN {
type master;
file midom.cu.lan.zone;
allow-update { none; };
notify yes;
   };

 zone rev.lan.in-addr.arpa IN {
type master;
file rev.lan.in-addr.arpa;
allow-update { none; };
notify yes;
   };

 view vwan {
match-clients { any; !lan; };
allow-recursion { any; };

 zone midom.cu IN {
 type master;
 file midom.cu.zone;
  allow-query  { any; };
  allow-transfer {slave; };
  also-notify {ip;};

  };

 zone rev.in-addr.arpa IN {
 type master;
 file rev.in-addr.arpa;
  allow-query  { any; };
  allow-transfer {slave; };
  also-notify {ip;};

};


 pero me sigue dand el error

 /etc/bind/named.conf.local:10: when using 'view' statements, all zones
 must be
 in views

 en la linea 10

 Alguna ayudita plis

 Saludos


 --
 
  * Yuniesky Machado Rojas   *
  * Administrador de Redes   *
  * Instituto Nacional de Investigación en Viandas Tropicales
 *GNU/Linux User #481684 (http://counter.li.org)
  




 --
 
  * Yuniesky Machado Rojas   *
  * Administrador de Redes   *
  * Instituto Nacional de Investigación en Viandas Tropicales
 *GNU/Linux User #481684 (http://counter.li.org)
  




 --
 
  * Yuniesky Machado Rojas   *
  * Administrador de Redes   *
  * Instituto Nacional de Investigación en Viandas Tropicales
 *GNU/Linux User #481684 (http://counter.li.org)
  



 --
 To UNSUBSCRIBE, email to debian-user-spanish-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact
 listmas...@lists.debian.org
 Archive:
 http://lists.debian.org/1663.169.158.79.75.1276287860.squir...@webmail.inivit.cu


 --
 Ahora la nueva direccion de correo es @tr.ss.rimed.cu.






--
Ahora la nueva direccion de correo es @tr.ss.rimed.cu.


-- 
To UNSUBSCRIBE, email to debian-user-spanish-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/e62b505836b6a176838c93dcd57008d8.squir...@webmail.tr.ss.rimed.cu



Re:Multiples vistas bind9

2010-06-11 Por tema Camaleón
El Fri, 11 Jun 2010 16:24:20 -0400, Machado escribió:

 miren lo deje asi

(...)

 pero me sigue dand el error
 
 /etc/bind/named.conf.local:10: when using 'view' statements, all zones
 must be in views
 
 en la linea 10
 
 Alguna ayudita plis

Me parece que te está diciendo que tienes que poner las zonas (zone) 
*dentro* de las vistas (view), es decir:

***
view vlan {
   match-clients { lan; !any; };
   allow-recursion { servidores-lan; };
   zone midom.cu IN {
type master;
file midom.cu.lan.zone;
allow-update { none; };
notify yes;
   };
};
***

Saludos,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-spanish-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/pan.2010.06.11.20.38...@gmail.com



Re:Multiples vistas bind9

2010-06-11 Por tema Eduardo R . Barrera Pérez


 pero me sigue dand el error

 /etc/bind/named.conf.local:10: when using 'view' statements, all zones
 must be
 in views

 en la linea 10

 Alguna ayudita plis

 Saludos


Mira colega en mi caso yo lo tengo asi, en /etc/bind/named.conf tengo
todas las lineas comentadas menos estas dos:

include /etc/bind/named.conf.options;

include /etc/bind/named.conf.local;

Ahora en /etc/bind/named.conf.local tengo esto:

view externa {
//Zona pri.jovenclub.cu
match-clients { 10.20.45.0/24; 10.20.46.0/24; 192.168.22.0/24; };

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 pri.jovenclub.cu {
type master;
file /var/cache/bind/pri.jovenclub.cu-externa;
};

zone 22.168.192.in-addr.arpa {
type master;
file /var/cache/bind/22.168.192.in-addr.arpa;
};
};

view interna {
//Zona pri.jovenclub.cu
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 pri.jovenclub.cu {
type master;
file /var/cache/bind/pri.jovenclub.cu-interna;
};

zone 5.168.192.in-addr.arpa {
type master;
file /var/cache/bind/5.168.192.in-addr.arpa;
};
};


Asi me funciona perfecto hasta ahora!!


Saludos...


___
Eduardo R. Barrera Pérez
Administrador Nodo Jovenclub
Pinar del Rí­o
Web-Site: http://www.pri.jovenclub.cu
Email:  ebarr...@pri.jovenclub.cu
Jabber: ebarr...@jabber.pri.jovenclub.cu
Phone:  0148-755805
  _
  ___| |__   __ _ _ __ _ __ ___ _ __ __ _
 / _ \ '_ \ / _` | '__| '__/ _ \ '__/ _` |
|  __/ |_) | (_| | |  | | |  __/ | | (_| |
 \___|_.__/ \__,_|_|  |_|  \___|_|  \__,_|




--
To UNSUBSCRIBE, email to debian-user-spanish-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/e9915909629ae6dfd8acc4e66676a6a2.squir...@correoweb.pri.jovenclub.cu



Re:Multiples vistas bind9

2010-06-11 Por tema Manuel Salgado T.

Debes ser buen observador. Si te fijas debes cerrar la llave final de la
declaración de las vistas, es por esto que bind te dice que las zonas
deben ser declaradas dentro de la vistas cuando se trabajan con ellas.
Prueba de esta manera:

view vlan {
match-clients { lan; !any; };
allow-recursion { servidores-lan; };

 zone midom.cu IN {
type master;
file midom.cu.lan.zone;
allow-update { none; };
notify yes;
   };

 zone rev.lan.in-addr.arpa IN {
type master;
   file rev.lan.in-addr.arpa;
allow-update { none; };
notify yes;
   };
};

 view vwan {
match-clients { any; !lan; };
allow-recursion { any; };

 zone midom.cu IN {
 type master;
 file midom.cu.zone;
allow-query  { any; };
allow-transfer {slave; };
also-notify {ip;};

  };

 zone rev.in-addr.arpa IN {
 type master;
 file rev.in-addr.arpa;
allow-query  { any; };
allow-transfer {slave; };
also-notify {ip;};

};
};


  chama a mi me pasa lo mismo cuando hice unos cambios, y no di en bola
 con
  lo que pasaba... ya seguire la lista haber si alguien te responde.
 
  suerte amigo
  adian
 
  
 
  miren lo deje asi
 
 
  // prime the server with knowledge of the root servers
  zone . {
 type hint;
 file /etc/bind/db.root;
   };
  //
   be authoritative for the localhost forward and reverse zones,
 and
  for
   broadcast zones as per RFC 1912
  //
  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;
  };
 
  acl lan { ip-lan; };
  acl servidores-lan { ip-lan/28; };
  acl servidores-wan { ip-wan/28; };
 
  view vlan {
 match-clients { lan; !any; };
 allow-recursion { servidores-lan; };
 
  zone midom.cu IN {
 type master;
 file midom.cu.lan.zone;
 allow-update { none; };
 notify yes;
};
 
  zone rev.lan.in-addr.arpa IN {
 type master;
 file rev.lan.in-addr.arpa;
 allow-update { none; };
 notify yes;
};
 
  view vwan {
 match-clients { any; !lan; };
 allow-recursion { any; };
 
  zone midom.cu IN {
  type master;
  file midom.cu.zone;
 allow-query  { any; };
 allow-transfer {slave; };
 also-notify {ip;};
 
   };
 
  zone rev.in-addr.arpa IN {
  type master;
  file rev.in-addr.arpa;
 allow-query  { any; };
 allow-transfer {slave; };
 also-notify {ip;};
 
 };
 
 
  pero me sigue dand el error
 
  /etc/bind/named.conf.local:10: when using 'view' statements, all
 zones
  must be
  in views
 
  en la linea 10
 
  Alguna ayudita plis
 
  Saludos
 
 
  --
  
   * Yuniesky Machado Rojas   *
   * Administrador de Redes   *
   * Instituto Nacional de Investigación en Viandas Tropicales
  *GNU/Linux User #481684 (http://counter.li.org)
   
 
 
 
 
  --
  
   * Yuniesky Machado Rojas   *
   * Administrador de Redes   *
   * Instituto Nacional de Investigación en Viandas Tropicales
  *GNU/Linux User #481684 (http://counter.li.org)
   
 
 
 
 
  --
  
   * Yuniesky Machado Rojas   *
   * Administrador de Redes   *
   * Instituto Nacional de Investigación en Viandas Tropicales
  *GNU/Linux User #481684 (http://counter.li.org)
   
 
 
 
  --
  To UNSUBSCRIBE, email to
 debian-user-spanish-requ...@lists.debian.org
  with a subject of unsubscribe. Trouble? Contact
  listmas...@lists.debian.org
  Archive:
 
 http://lists.debian.org/1663.169.158.79.75.1276287860.squir...@webmail.
 inivit.cu
 
 
  --
  Ahora la nueva direccion de correo es @tr.ss.rimed.cu.
 
 
 
 
 
 
 --
 Ahora la nueva direccion de correo es @tr.ss.rimed.cu.
 
 
 -- 
 To UNSUBSCRIBE, email to debian-user-spanish-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact
 listmas...@lists.debian.org
 Archive:
 http://lists.debian.org/e62b505836b6a176838c93dcd57008d8.squir...@webma
 il.tr.ss.rimed.cu
 



Servicio de correo electrónico de la UEB Informática y Automatización Granma



-- 
To UNSUBSCRIBE, email to debian-user-spanish-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/wc20100611213751.260...@alimaticgr.co.cu