[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

wwwoffle und pdnsd



Hallo!

Habe mit wwwoffle das Problem, daß dieses manchmal keine Adressen auf-
lösen kann. Hintergrund ist, daß ich eine nicht ständige Modem-Verbin-
dung zum Internet habe. In der Dokumentation zu wwwoffle findet sich
der Hinweis, daß dies an einer Änderung der Datei resolv.conf nach dem
Start des wwwoffled liegen kann. Ein Neustart des wwwoffled wird jedoch
wegen angeblichen page locking problemen nicht empfohlen, stattdessen
die Verwendung eines dns-caching proxy wie pdnsd.

pdnsd habe ich daher installiert, ohne daß das Problem behoben wäre.
Allerdings verstehe ich auch das Konzept hinter pdnsd nicht, so daß
ich nicht weiß, ob ich es überhaupt richtig konfiguriert habe.

Die Konfigurationsdatei sieht so aus:

// $Id: pdnsd.conf.in,v 1.4 2000/11/11 20:32:58 thomas Exp $

global {
	perm_cache=512;
	cache_dir="/var/cache/pdnsd";
	max_ttl=604800;
	run_as="pdnsd";
	paranoid=on;
#	status_ctl=off;
#	server_port=53;
#	server_ip="127.0.0.1";
}

server {
	ip="192.168.0.1";
	timeout=30;
	interval=30;
	uptest=ping;
	ping_timeout=50;
	purge_cache=off;
}

source {
	ttl=86400;
	owner="localhost.";
#	serve_aliases=on;
	file="/etc/hosts";
}

/*
neg {
	ttl=86400;
	name="foo.bar.";
	types=domain;
}

neg {
	ttl=86400;
	name="foo.baz.";
	types=A,AAAA, MX;
}
*/
/*
rr {
	ttl=86400;
	owner="localhost.";
	name="localhost.";
	a="127.0.0.1";
	soa="localhost.","root.localhost.",42,86400,900,86400,86400;
}

rr {
	ttl=86400;
	owner="localhost.";
	name="1.0.0.127.in-addr.arpa.";
	ptr="localhost.";
	soa="localhost.","root.localhost.",42,86400,900,86400,86400;
} */

Außerdem findet sich in /etc/ppp/ip-up.d die Datei 0pdnsd-up mit
folgendem Inhalt:


#!/bin/sh

CONF=/etc/pdnsd.conf

if grep "[\t\s]*status_ctl\s*=\s*on;" $CONF > /dev/null 2>&1; then
	pdnsd-ctl server all up
fi

exit 0


Kann mir jemand sagen, wie ich das Ganze richtig konfigurieren muß,
damit alles läuft?

Gruß, Ulrich



Reply to: