Advertisement
Guest User

pi-hole.conf

a guest
May 13th, 2022
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.14 KB | None | 0 0
  1. server:
  2. # If no logfile is specified, syslog is used
  3. # logfile: "/var/log/unbound/unbound.log"
  4. verbosity: 0
  5.  
  6. interface: 127.0.0.1
  7. port: 5335
  8. do-ip4: yes
  9. do-udp: yes
  10. do-tcp: yes
  11.  
  12. # May be set to yes if you have IPv6 connectivity
  13. do-ip6: no
  14.  
  15. # Use this only when you downloaded the list of primary root
  16. # servers!
  17. root-hints: "/var/lib/unbound/root.hints"
  18.  
  19. # You want to leave this to no unless you have *native* IPv6. With 6to4 and
  20. # Terredo tunnels your web browser should favor IPv4 for the same reasons
  21. prefer-ip6: no
  22.  
  23. # Use this only when you downloaded the list of primary root servers!
  24. # If you use the default dns-root-data package, unbound will find it automatically
  25. #root-hints: "/var/lib/unbound/root.hints"
  26.  
  27. # Trust glue only if it is within the server's authority
  28. harden-glue: yes
  29.  
  30. # Require DNSSEC data for trust-anchored zones, if such data is absent, the zone becomes BOGUS
  31. harden-dnssec-stripped: yes
  32. # Don't use Capitalization randomization as it known to cause DNSSEC issues sometimes
  33. # see https://discourse.pi-hole.net/t/unbound-stubby-or-dnscrypt-proxy/9378 for further details
  34. use-caps-for-id: no
  35.  
  36. # Reduce EDNS reassembly buffer size.
  37. # Suggested by the unbound man page to reduce fragmentation reassembly problems
  38. edns-buffer-size: 1232
  39.  
  40. # Perform prefetching of close to expired message cache entries
  41. # This only applies to domains that have been frequently queried
  42. prefetch: yes
  43.  
  44. # One thread should be sufficient, can be increased on beefy machines. In reality for most users running on small networks or on a single machine, it should be unnecessary to seek performance enhancement by increasing num-threads above 1.
  45. num-threads: 1
  46.  
  47. # Ensure kernel buffer is large enough to not lose messages in traffic spikes
  48. so-rcvbuf: 1m
  49.  
  50. # Ensure privacy of local IP ranges
  51. private-address: 192.168.0.0/16
  52. private-address: 169.254.0.0/16
  53. private-address: 172.16.0.0/12
  54. private-address: 10.0.0.0/8
  55. private-address: fd00::/8
  56. private-address: fe80::/10
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement