Foros del Web » Administración de Sistemas » Unix / Linux »

Configurando DNS en Debian (Lenny)

Estas en el tema de Configurando DNS en Debian (Lenny) en el foro de Unix / Linux en Foros del Web. Hola colegas hace rato que trato de configurar el DNS de mi sistema Debian Lenny y solo he podido obtener resultados satisfactorios cuando configuro por ...
  #1 (permalink)  
Antiguo 14/12/2009, 15:22
Avatar de boy-computer  
Fecha de Ingreso: diciembre-2006
Ubicación: Cuba, Pinar del Río
Mensajes: 337
Antigüedad: 17 años, 5 meses
Puntos: 1
Configurando DNS en Debian (Lenny)

Hola colegas hace rato que trato de configurar el DNS de mi sistema Debian Lenny y solo he podido obtener resultados satisfactorios cuando configuro por la vía de los ficheros:

resol.conf
hosts
hostname


Pero cuando trato de configurar el DNS utilizando bind9, entonces es cuando aparecen los problemas. Se que debo configurar los siguientes ficheros:

/etc/bind/named.conf.local
/etc/bind/named.conf.options


Y crear ademas 2 ficheros para la zona de busquedd directa e inversa.

El fichero named.conf.local me ha quedado de la siguiente forma:

Código:
// 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 "jcbm.pri.jovenclub.cu" {
type master;
allow-query { any; };
file "/var/cache/bind/jcbm.pri.jovenclub.cu";
notify yes;
};

// zona inversa
zone "0.168.192.in-addr.arpa" {
type master;
allow-query { any; };
file "/var/cache/bind/0.168.192.in-addr.arpa";
notify yes;
};
y el fichero named.conf.options me ha quedado de la siguiente forma:

Código:
options {
	directory "/var/cache/bind";

	// 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 {
	 	192.168.22.4; 192.168.22.3;
	};
	
	auth-nxdomain no;    # conform to RFC1035
	listen-on-v6 { any; };
};
Los 2 restantes ficheros que debo crear para la zona de busquedad directa e inversa me quedan de la forma:

Directa:

Código:
$ORIGIN jcbm.pri.jovenclub.cu.
$TTL	604800
@	21600	IN	SOA	server.jcbm.pri.jovenclub.cu. 
		  	 	root.jcbm.pri.jovenclub.cu. (
			 	2009121102	; Serial
			   	604800		; Refresh 
			     	86400		; Retry
			   	2419200		; Expire
			  	604800 )	; Negative Cache TTL

@		21600	IN	NS	server.jcbm.pri.jovenclub.cu.
server		21600	IN	A	192.168.0.60
instructor	21600	IN	A	192.168.0.10
pc4		21600	IN	A	192.168.0.53
www		21600	IN	CNAME	server
Inversa

Código:
$TTL	604800
@		IN		SOA	server.jcbm.pri.jovenclub.cu. 
					root.jcbm.pri.jovenclub.cu. (
				      	2009121102	; Serial
			 		604800		; Refresh
			  		86400		; Retry
					2419200		; Expire
			 		604800 )	; Negative Cache TTL

@		IN		NS	server.jcbm.pri.jovenclub.cu.
60		IN		PTR	server.jcbm.pri.jovenclub.cu.
10		IN		PTR	instructor.jcbriones.pri.jovenclub.cu.
53		IN		PTR	pc4.jcbriones.pri.jovenclub.cu.
Despues de haber hecho todo esto reinicio el servicio bind9:

/etc/init.d/bind9 restart

Luego trato de chequear que todo funciona haciendo:

host server.jcbm.pri.jovenclub.cu 192.168.0.60

y me devuelve lo siguiente:

Código:
Using domain server:
Name: 192.168.0.60
Address: 192.168.0.60#53
Aliases:

Host server.jcbm.pri.jovenclub.cu not found: 2(SERVFAIL)
Ahora pregunto, que he hecho mal en la configuración, que me devuelve este error. Por favor que alguien me ayude, ya llevo varios días en este asunto.
  #2 (permalink)  
Antiguo 14/12/2009, 18:54
Avatar de AleSanchez
Colaborador
 
Fecha de Ingreso: septiembre-2004
Ubicación: Buenos Aires, Argentina
Mensajes: 3.692
Antigüedad: 19 años, 7 meses
Puntos: 47
Respuesta: Configurando DNS en Debian (Lenny)

Deberías chequear los logs del bind para ver si encontras algún error en la carga.

Saludos!
__________________
¡Volviendo a la programación!
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 10:07.