summaryrefslogtreecommitdiff
path: root/package/pdnsd/files/pdnsd.conf
diff options
context:
space:
mode:
Diffstat (limited to 'package/pdnsd/files/pdnsd.conf')
-rw-r--r--package/pdnsd/files/pdnsd.conf30
1 files changed, 30 insertions, 0 deletions
diff --git a/package/pdnsd/files/pdnsd.conf b/package/pdnsd/files/pdnsd.conf
new file mode 100644
index 000000000..00b548117
--- /dev/null
+++ b/package/pdnsd/files/pdnsd.conf
@@ -0,0 +1,30 @@
+global {
+ perm_cache=1024;
+ cache_dir="/var/cache/pdnsd"; # do not change this!
+ run_as="nobody";
+ 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=15m; # Retain cached entries at least 15 minutes.
+ max_ttl=1w; # One week.
+ timeout=10; # Global timeout option (10 seconds).
+}
+
+server {
+ label= "myisp";
+ ip = 192.168.0.1; # Put your ISP's DNS-server address(es) here.
+# proxy_only=on; # Do not query any name servers beside your ISP's.
+ # This may be necessary if you are behind some
+ # kind of firewall and cannot receive replies
+ # from outside name servers.
+ timeout=4; # Server timeout; this may be much shorter
+ # that the global timeout option.
+ uptest=if; # Test if the network interface is active.
+ interface=eth0; # The name of the interface to check.
+ interval=10m; # Check every 10 minutes.
+ purge_cache=off; # Keep stale cache entries in case the ISP's
+ # DNS servers go offline.
+}