pdnsd: DNS Caché

Simón jmsimonr en gmail.com
Mar Ene 9 10:26:02 GMT 2007


Hola,
	Tengo instalado el pdnsd y no funciona correctamente. Esto es lo que 
devuelve el comando "dig google.es" cuando paro el pdnsd:

; <<>> DiG 9.3.2 <<>> google.es
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 13832
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;google.es.                     IN      A

;; ANSWER SECTION:
google.es.              200     IN      A       66.249.93.104
google.es.              200     IN      A       216.239.59.104
google.es.              200     IN      A       72.14.221.104

;; Query time: 39 msec
;; SERVER: 208.67.222.222#53(208.67.222.222)
;; WHEN: Tue Jan  9 11:10:03 2007
;; MSG SIZE  rcvd: 75

	Correcto, resuelve el dominio.
	Ahora arranco el pdnsd y vuelvo a ejecutar el mismo comando:

; <<>> DiG 9.3.2 <<>> google.es
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 59238
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;google.es.                     IN      A

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue Jan  9 11:10:42 2007
;; MSG SIZE  rcvd: 27

	En este caso, consulta en la IP de localhost (correcto para usar el 
pdnsd) pero falla: "status: SERVFAIL", no devuelve nada.

	Tengo el Firestarter instalado y funcionando, pero lo he parado he 
reiniciado el pdnsd y sigue fallando.

	Si ejecuto "pdnsd status" me da el siguiente error:

* pdnsd: error: Could not bind tcp socket: Address already in use
* pdnsd: error: Could not bind to udp socket: Address already in use
* pdnsd: error: tcp and udp initialization failed. Exiting.

	Y si ejecuto "pdnsd-ctl status" la salida es:

Opening socket /var/cache/pdnsd/pdnsd.status
pdnsd-1.2.4-par running on ubuntu-desktop.

Cache status:
=============
2048 kB maximum disk cache size.
4654 of 2107392 bytes (0.221%) memory cache used in 16 entries.

Thread status:
=============
pdnsd control thread is running.
tcp server thread is running.
udp server thread is running.
22 query threads spawned in total (0 queries dropped).
0 running query threads (0 active, 0 queued).

Configuration:
==============
Global:
-------
         Cache size: 2048 kB
         Server directory: /var/cache/pdnsd
         Scheme file (for Linux pcmcia support): /var/lib/pcmcia/scheme
         Server port: 53
         Server ip (0.0.0.0=any available one): 0.0.0.0
         Ignore cache when link is down: off
         Maximum ttl: 1209600
         Minimum ttl: 900
         Negative ttl: 900
         Negative RRS policy: auth
         Negative domain policy: auth
         Run as: pdnsd
         Strict run as: on
         Paranoid mode (cache pollution prevention): off
         Control socket permissions (mode): 600
         Maximum parallel queries served: 50
         Maximum queries queued for serving: 60
         Global timeout setting: 10
         Parallel queries increment: 2
         Randomize records in answer: on
         Query method: tcp_udp
         Query port start: 52770
         Query port end: 65535
         TCP server thread: on
         TCP query timeout: 30
         Delegation-only zones: (none)


	Por la salida de "pdnsd status" parece que hay problemas pero por 
"pdnsd-ctl status" parece que está correcto, ¿?

	He buscado en el google y he mirado la documentación del pdnsd (un 
tanto escasa para mi gusto) pero no encuentro nada sobre estos temas, y 
lo poco que he encontrado no me ayuda.

	Agradecería que me echaseis una mano. Un saludo,

-- 
    Simón
    (Usuario Linux Registrado nº 413.257)
    http://counter.li.org/



Más información sobre la lista de distribución ubuntu-es