pdnsd.conf 1.2 KB

123456789101112131415161718192021222324252627282930
  1. global {
  2. perm_cache=1024;
  3. cache_dir="/var/cache/pdnsd"; # do not change this!
  4. run_as="nobody";
  5. server_ip = 127.0.0.1; # Use eth0 here if you want to allow other
  6. # machines on your network to query pdnsd.
  7. status_ctl = on;
  8. # paranoid=on; # This option reduces the chance of cache poisoning
  9. # but may make pdnsd less efficient, unfortunately.
  10. query_method=udp_tcp;
  11. min_ttl=15m; # Retain cached entries at least 15 minutes.
  12. max_ttl=1w; # One week.
  13. timeout=10; # Global timeout option (10 seconds).
  14. }
  15. server {
  16. label= "myisp";
  17. ip = 192.168.0.1; # Put your ISP's DNS-server address(es) here.
  18. # proxy_only=on; # Do not query any name servers beside your ISP's.
  19. # This may be necessary if you are behind some
  20. # kind of firewall and cannot receive replies
  21. # from outside name servers.
  22. timeout=4; # Server timeout; this may be much shorter
  23. # that the global timeout option.
  24. uptest=if; # Test if the network interface is active.
  25. interface=eth0; # The name of the interface to check.
  26. interval=10m; # Check every 10 minutes.
  27. purge_cache=off; # Keep stale cache entries in case the ISP's
  28. # DNS servers go offline.
  29. }