[linux-l] djbdns
Ulrich Wiederhold
wubuwei at gmx.net
Mo Dez 8 13:21:49 CET 2003
Hallo,
* Soeren Sonnenburg <linux at nn7.de> [031208 12:25]:
> On Mon, 2003-12-08 at 11:51, Ulrich Wiederhold wrote:
> > Also daemontools und djbdns installiert und laufen lassen.
> > "ps aux | grep sv" liefert:
> >
> > root 2351 0.0 0.1 2516 1176 ? S 10:40 0:00 /bin/sh /command/svscanboot
> > root 2353 0.0 0.0 1536 328 ? S 10:40 0:00 svscan /service
> > root 2354 0.0 0.0 1364 244 ? S 10:40 0:00 readproctitle service errors: ... fatal: unable to start supervise/run: file does not exist?svscan: warning: unable to stat dnscache: file does not exist?supervise: fatal: unable to start supervise/run: file does not exist?supervise: fatal: unable to start supervise/run: file does not exist?supervise: fatal: unable to start supervise/run: file does not exist?supervise: fatal: unable to start supervise/run: file does not exist?
>
> huii... welcher dienst kann denn da nicht gestartet werden ? das wird
> wohl das problem sein. guck mal
> ls -l /service/
insgesamt 1
lrwxr-xr-x 1 root root 13 2003-12-04 20:46 dnscache -> /etc/dnscache
drwx------ 3 root root 1024 2003-12-08 10:40 supervise
> ls -l /service/*/run
-rwxr-xr-x 1 root root 136 2003-12-08 11:15 /service/dnscache/run
Das sieht nicht so toll aus. :(
> > Der cache soll auf der Adresse laufen, die auch der entsprechende PC1 im
> > Netz hat: 192.168.1.10, also:
> > "dnscache-conf gdnscache gdnslog /etc/dnscache 192.168.1.10"
> >
> > "ln -s /etc/dnscache /service"
> > "sleep 5"
> > "svstat /service/dnscache"
> > ergibt: /service/dnscache: up (pid 6609) 0 seconds
>
> ueberhaupt nicht ! 0 seconds...
>
> stoppe doch mal die daemontools und starte den dienst manuell (cd
> /service/dnscache && ./run)
Wie kann ich die Stoppen? in /etc/init.d/ gibt es keinen entsprechenden
Eintrag, beim killen der entsprechenden Programme werden diese wieder
gestartet. Bei "/etc/init.d/djbdns stop" wird zwar ausgegeben, daß der
Dienst beendet wird, netstat zeigt die Ports aber immernoch belegt an.
./run zeigt gibt dann wie zu erwarten "dnscache: fatal: unable to bind
TCP socket: address already used" aus.
> selbes mit tinydns. und dann probier noch mal anfragen auf die ports.
tinydns habe ich nicht konfiguriert oder gestartet. Hole das gerade
nach. (nach: http://cr.yp.to/djbdns/run-server.html)
"tinydns-conf gtinydns gdnslog /etc/tinydns 192.168.1.10"
Da dnscache und tinydns nicht auf der gleichen IP laufen dürfen, habe
ich in /etc/dnscache/env/IP die IP auf 127.0.0.1 geändert.
"ln -s /etc/tinydns /service"
"sleep 5"
"svstat /service/tinydns"
ergibt: /service/tinydns: up (pid 22144) 32 seconds
32 Sekunden, aha!
Beim restlichen Teil der Anleitung habe ich nicht verstanden, ob ich das
benötige. Auf jeden Fall gibt netstat jetzt aus:
root at home:/# netstat -lnp | grep dns
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 21858/dnscache udp 0 0 192.168.1.10:53 0.0.0.0:* 22144/tinydns
udp 0 0 127.0.0.1:53 0.0.0.0:* 21858/dnscache
Aus dem Netz funktioniert das Auflösen von Hostnamen immer noch nicht.
Allerdings hat ein Virencheck das Problem mit der Fehlermeldung behoben.
Gruß
Uli
--
'The box said, 'Requires Windows 95 or better', so I installed Linux - TKK 5
Mehr Informationen über die Mailingliste linux-l