Skip to content

Instantly share code, notes, and snippets.

@HackingGate
Last active April 18, 2016 10:02
Show Gist options
  • Save HackingGate/85a37fc6e2f0212c856d to your computer and use it in GitHub Desktop.
Save HackingGate/85a37fc6e2f0212c856d to your computer and use it in GitHub Desktop.
pdnsd.conf for openwrt
global {
perm_cache=2048;
cache_dir="/var/pdnsd";
# pid_file = /var/run/pdnsd.pid;
run_as="nobody";
server_ip = 0.0.0.0; # Use eth0 here if you want to allow other
# machines on your network to query pdnsd.
server_port = 25252;
status_ctl = on;
# paranoid=on; # This option reduces the chance of cache poisoning
# but may make pdnsd less efficient, unfortunately.
query_method=tcp_only;
min_ttl=15m; # 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.
}
server {
label = "opendns443";
ip = 208.67.222.222, 208.67.220.220;
port = 443;
}
server {
label = "opendns5353";
ip = 208.67.222.222, 208.67.220.220;
port = 5353;
}
rr {
name=localhost;
reverse=on;
a=127.0.0.1;
owner=localhost;
soa=localhost,root.localhost,42,86400,900,86400,86400;
}
@HackingGate
Copy link
Author

rm -rf /var/pdnsd
/etc/init.d/pdnsd restart
dig @192.168.1.1 -p 25252 downloads.openwrt.org

@HackingGate
Copy link
Author

Since pdnsd not available on OpenWRT official repository, I no longer use pdnsd, this gist no longer update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment