miércoles, 26 de octubre de 2011

Fichero BIND

/etc/bind/named.conf

  • named.conf.options 
  • named.conf.local 
  • named.conf.default-zones 


sudo gedit /etc/bind/named.conf.local:

//
// Do any local configuration here
//

// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";

//Zona directa
zone "aulaSER.com" {
type master;
file "/etc/bind/db.aulaSER.com";
};






sudo gedit /etc/bind/named.conf.db.aulaSER.com:

$TTL 86400 ; 1 dia
@ IN SOA pc149 profes (
2011 ; serie
6H ; refresco (6 horas)
1H ; reintentos (1 hora)
2W ; expira (2 semanas)
3H ; mínimo (3 horas)
)
@ IN NS pc149
@ IN A 192.168.1.149
pc149 IN A 192.168.1.149

pc101 IN A 192.168.1.101
pc102.aulaSER.com. IN A 192.168.1.102


sudo gedit /etc/bind/named.conf.options:

options {
directory "/var/cache/bind";
// Directorio por defecto, para otros directorios hay que poner la ruta completa o absoluta

// If there is a firewall between you and nameservers you want
// to talk to, you may need to fix the firewall to allow multiple
// ports to talk. See http://www.kb.cert.org/vuls/id/800113

// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all-0's placeholder.

// forwarders {
// 0.0.0.0;
// };

// IPS "80.58.61.250" y "80.58.61.254" que son los DNS públicos de Telefónica-Movistar
// IPS "8.8.8.8" y "8.8.4.4" que son los DNS públicos de Google

forwarders {
80.58.61.250;
80.58.61.254;
8.8.8.8;
8.8.4.4;
};

auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
};


Despues para comprobar que esta bien hecho haces:


No hay comentarios:

Publicar un comentario