You are not logged in.
Since my pc is connected to lan that is barely usable because there are too many devices and network administration is next to none, I thought I could make it a bit better using pdnsd.
It starts (checked with systemctl status), but it doesn't cache anything.
Output of drill (used for testing):
Error: error sending query: Could not send or receive, because of network error
Output of joutnal:
$ journalctl -f _SYSTEMD_UNIT=pdnsd.service
-- Logs begin at Fri 2014-05-30 00:36:52 CEST. --
Jun 12 23:11:03 arch pdnsd[1060]: pdnsd-1.2.9a-par starting.
-- Reboot --
Jun 12 23:16:32 arch pdnsd[727]: * 06/12 23:16:32| pdnsd: info: pdnsd-1.2.9a-par starting.
Jun 12 23:19:13 arch pdnsd[727]: * 06/12 23:19:13| pdnsd: warning: Caught signal 15. Exiting.
Jun 12 23:19:16 arch pdnsd[812]: * 06/12 23:19:16| pdnsd: info: pdnsd-1.2.9a-par starting.
Jun 12 23:30:25 arch pdnsd[812]: * 06/12 23:30:25| pdnsd: warning: Caught signal 15. Exiting.
-- Reboot --
Jun 12 23:30:58 arch pdnsd[301]: * 06/12 23:30:56| pdnsd: info: pdnsd-1.2.9a-par starting.
Jun 12 23:41:56 arch pdnsd[301]: * 06/12 23:41:55| pdnsd: warning: Caught signal 15. Exiting.
Jun 12 23:41:56 arch pdnsd[2640]: * 06/12 23:41:55| pdnsd: info: pdnsd-1.2.9a-par starting.
Jun 12 23:47:33 arch pdnsd[2640]: * 06/12 23:47:32| pdnsd: warning: Caught signal 15. Exiting.
Jun 12 23:47:33 arch pdnsd[2683]: * 06/12 23:47:32| pdnsd: info: pdnsd-1.2.9a-par starting.
Here's my configuration file:
ww.pastebin.com/tmqmwSfA
Quick edit:
I read wiki, and man page but can not figure out what is wrong here.
Last edited by bstaletic (2014-06-14 07:24:12)
Offline
Here’s what my config looks like:
global {
perm_cache=1024;
cache_dir="/var/cache/pdnsd";
# pid_file = /var/run/pdnsd.pid;
run_as="pdnsd";
server_ip = 127.0.0.1; # Use eth0 here if you want to allow other
# machines on your network to query pdnsd.
status_ctl = on;
# paranoid=on; # This option reduces the chance of cache poisoning
# but may make pdnsd less efficient, unfortunately.
query_method=udp_tcp;
min_ttl=8h; # Retain cached entries at least 15 minutes.
max_ttl=1w; # One week.
timeout=10; # Global timeout option (10 seconds).
neg_domain_pol=on;
udpbufsize=1024; # Upper limit on the size of UDP messages.
# https://wiki.archlinux.org/index.php/Pdnsd
neg_rrs_pol=on;
par_queries=2;
}
server {
label="google";
ip = 8.8.8.8;
proxy_only=on;
timeout=4;
uptest=none;
purge_cache=off;
}
server {
label="google";
ip = 8.8.4.4;
proxy_only=on;
timeout=4;
uptest=none;
purge_cache=off;
}
source {
owner=localhost;
# serve_aliases=on;
file="/etc/hosts";
}
rr {
name=localhost;
reverse=on;
a=127.0.0.1;
owner=localhost;
soa=localhost,root.localhost,42,86400,900,86400,86400;
}
(I have removed all commented blocks.)
Can you ping the DNS you have configured, or other servers, when you get that error?
Offline
I used your config as a tamplate. Than all that was needed was dns configuration. Everything works.
Offline