[MaraDNS list] Deadwood cache file is not created
Sebastiano Pilla
sebastiano at datafaber.net
Thu Apr 28 18:16:49 EDT 2011
I'm having an issue with Deadwood on my system, I would like to use the
persistent cache feature but the cache file is not created.
When starting Deadwood, I see the following messages in the log:
Apr 29 00:01:08 echo /opt/maradns2.0.02/sbin/deadwood: Deadwood version
3.0.02
Apr 29 00:01:08 echo /opt/maradns2.0.02/sbin/deadwood: Deadwood: A DNS
UDP non-recursive cache (IPv4-only)
Apr 29 00:01:08 echo /opt/maradns2.0.02/sbin/deadwood: We bound to 1
addresses
Apr 29 00:01:08 echo /opt/maradns2.0.02/sbin/deadwood: Could not open
hash at cache/deadwood_cache for reading
I can understand this message if this was the very first run of Deadwood
on the box, but I get it on all subsequent runs when it should have
created a cache file.
The /etc/dwood3rc file is:
bind_address="127.0.0.1"
cache_file="cache/deadwood_cache"
chroot_dir="/var/run/deadwood"
dns_port=53
filter_rfc1918=1
maximum_cache_elements=1024
maradns_uid=99
maradns_gid=99
recursive_acl="127.0.0.1/8"
reject_mx=0
root_servers={}
root_servers["."]="198.41.0.4,"
root_servers["."]+="192.228.79.201,"
root_servers["."]+="192.33.4.12,"
root_servers["."]+="128.8.10.90,"
root_servers["."]+="192.203.230.10,"
root_servers["."]+="192.5.5.241,"
root_servers["."]+="192.112.36.4,"
root_servers["."]+="128.63.2.53,"
root_servers["."]+="192.36.148.17,"
root_servers["."]+="192.58.128.30,"
root_servers["."]+="193.0.14.129,"
root_servers["."]+="199.7.83.42,"
root_servers["."]+="202.12.27.33"
tcp_listen=1
timeout_seconds=30
timeout_seconds_tcp=30
upstream_servers={}
upstream_servers["."]="8.8.8.8, 8.8.4.4"
verbose_level=3
The directories exist, ownership and permissions look correct to me:
[root at echo run]# ll /var/run | grep deadwood
drwxr-xr-x 3 root root 4.0K Apr 29 00:00 deadwood
[root at echo run]# ll /var/run/deadwood/
total 4.0K
drwxr-xr-x 2 nobody nobody 4.0K Apr 29 00:00 cache
[root at echo run]# ll /var/run/deadwood/cache/
total 0
I would expect to find a file /var/run/deadwood/cache/deadwood_cache,
but Deadwood does not create this file.
This is a CentOS 5.6 x86 box, though I have the same issue on CentOS 5.6
x64. The user and group "nobody" exist and they have uid and gid as 99.
I'm perhaps missing something in the configuration, or the permissions
on the directories aren't exactly what they should be... In any case I'm
not seeing what should I do to fix the problem.
Best regards
Sebastiano Pilla
More information about the list
mailing list