3
0

dnsmasq.conf 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. keep-in-foreground
  2. # "-" is stderr:
  3. log-facility=-
  4. # May also try log-queries=extra
  5. log-queries
  6. # No param = pidfile disabled:
  7. pid-file
  8. interface=lo
  9. listen-address=127.0.0.1
  10. bind-interfaces
  11. cache-size=999
  12. servers-file=/etc/dnsmasq_servers.conf
  13. # Don’t read /etc/resolv.conf and /etc/hosts:
  14. no-resolv
  15. #no-hosts
  16. # All reverse lookups for private IP ranges (ie 192.168.x.x, etc)
  17. # which are not found in /etc/hosts or the DHCP leases file are
  18. # answered with "no such domain" rather than being forwarded
  19. # upstream. The set of prefixes affected is the list given in
  20. # RFC6303.
  21. #bogus-priv
  22. #−T, --local-ttl=<time>
  23. # When replying with information from /etc/hosts or configuration
  24. # or the DHCP leases file dnsmasq by default sets the time-to-live
  25. # field to zero, meaning that the requester should not itself
  26. # cache the information. This is the correct thing to do in almost
  27. # all situations. This option allows a time-to-live (in seconds)
  28. # to be given for these replies. This will reduce the load on the
  29. # server at the expense of clients using stale data under some
  30. # circumstances.
  31. local-ttl=67
  32. #--dhcp-ttl=<time>
  33. # As for --local-ttl, but affects only replies with information
  34. # from DHCP leases. If both are given, --dhcp-ttl applies for DHCP
  35. # information, and --local-ttl for others. Setting this to zero
  36. # eliminates the effect of --local-ttl for DHCP.
  37. #
  38. #--neg-ttl=<time>
  39. # Negative replies from upstream servers normally contain time-to-
  40. # live information in SOA records which dnsmasq uses for caching.
  41. # If the replies from upstream servers omit this information, dns-
  42. # masq does not cache the reply. This option gives a default value
  43. # for time-to-live (in seconds) which dnsmasq uses to cache nega-
  44. # tive replies even in the absence of an SOA record.
  45. neg-ttl=67
  46. #--max-ttl=<time>
  47. # Set a maximum TTL value that will be handed out to clients. The
  48. # specified maximum TTL will be given to clients instead of the
  49. # true TTL value if it is lower. The true TTL value is however
  50. # kept in the cache to avoid flooding the upstream DNS servers.
  51. #
  52. #--max-cache-ttl=<time>
  53. # Set a maximum TTL value for entries in the cache.
  54. #
  55. #--min-cache-ttl=<time>
  56. # Extend short TTL values to the time given when caching them.
  57. # Note that artificially extending TTL values is in general a bad
  58. # idea, do not do it unless you have a good reason, and understand
  59. # what you are doing. Dnsmasq limits the value of this option to
  60. # one hour, unless recompiled.
  61. min-cache-ttl=67
  62. #--auth-ttl=<time>
  63. # Set the TTL value returned in answers from the authoritative
  64. # server.