dnscache doesn't work on startup (1.9.0beta2)
Weird problem with dnscache; it is running on 127.0.0.1; and is set to send requests out the default gateway (standard)
- echo “nameserver 127.0.0.1” >/etc/resolv.conf
- echo “RESOLV_CONF=‘no’” >/etc/udhcpc/udhcp.conf
- rc-update add dnscache
- ping -c 1 www.google.com
#ping -c 1 www.google.com
— fails after a very long time; no DNS resolution is possible
#apk add djbdns
#dnsq A [any address] 127.0.0.1
— will fail
doing a tcpdump on 127.0.0.1 shows the request going to 127.0.0.1; but no response.
however, after logging into the server, doing a:
- /etc/init.d/dnscache restart
— makes all DNS requests work.
Tried adding a delay in the /etc/init.d/dnscache start script; tried
changing the internet facing interface from dhcp to static; no effect.
DNSCACHE does not work until it is restarted.
(from redmine: issue id 120, created on 2009-08-08, closed on 2009-08-19)
- Revision 0b2149a1 on 2009-08-08T16:46:53Z:
main/djbdns: added net dependency in initd scripts fixes #120
- Revision 6740d61d on 2009-08-09T13:25:04Z:
main/djbdns: provide random seed to dnscache fixes #120 Thanks to Nathan for solving this.