2007-10-25 05:08:54 +08:00
|
|
|
config dnsmasq
|
|
|
|
|
option domainneeded 1
|
|
|
|
|
option boguspriv 1
|
2010-07-16 08:06:59 +08:00
|
|
|
option filterwin2k 0 # enable for dial on demand
|
2007-10-25 05:08:54 +08:00
|
|
|
option localise_queries 1
|
2010-07-16 08:06:59 +08:00
|
|
|
option rebind_protection 1 # disable if upstream must serve RFC1918 addresses
|
2010-10-06 21:10:15 +08:00
|
|
|
option rebind_localhost 1 # enable for RBL checking and similar services
|
2010-07-16 08:06:59 +08:00
|
|
|
#list rebind_domain example.lan # whitelist RFC1918 responses for domains
|
2007-10-25 05:08:54 +08:00
|
|
|
option local '/lan/'
|
|
|
|
|
option domain 'lan'
|
|
|
|
|
option expandhosts 1
|
2024-05-08 21:51:24 +08:00
|
|
|
option min_cache_ttl 3600
|
|
|
|
|
option use_stale_cache 3600
|
2024-02-25 14:09:13 +08:00
|
|
|
option cachesize 8000
|
2024-05-08 21:51:24 +08:00
|
|
|
option nonegcache 1
|
2007-10-25 05:08:54 +08:00
|
|
|
option authoritative 1
|
|
|
|
|
option readethers 1
|
|
|
|
|
option leasefile '/tmp/dhcp.leases'
|
2020-01-03 19:39:06 +08:00
|
|
|
option resolvfile '/tmp/resolv.conf.d/resolv.conf.auto'
|
2009-01-28 06:58:11 +08:00
|
|
|
#list server '/mycompany.local/1.2.3.4'
|
2017-02-24 18:08:30 +08:00
|
|
|
option nonwildcard 1 # bind to & keep track of interfaces
|
2009-05-05 17:33:56 +08:00
|
|
|
#list interface br-lan
|
2009-09-17 02:15:31 +08:00
|
|
|
#list notinterface lo
|
2010-08-11 18:37:33 +08:00
|
|
|
#list bogusnxdomain '64.94.110.11'
|
2015-06-08 12:48:08 +08:00
|
|
|
option localservice 1 # disable to allow DNS requests from non-local subnets
|
2020-06-21 22:13:28 +08:00
|
|
|
option dns_redirect 1
|
2020-11-09 22:58:39 +08:00
|
|
|
option ednspacket_max 1232
|
2022-11-07 16:20:15 +08:00
|
|
|
option filter_aaaa 0
|
|
|
|
|
option filter_a 0
|
2022-11-27 20:33:31 +08:00
|
|
|
#list addnmount /some/path # read-only mount path to expose it to dnsmasq
|
2007-10-25 05:08:54 +08:00
|
|
|
|
2008-08-20 06:05:41 +08:00
|
|
|
config dhcp lan
|
2007-03-17 21:31:13 +08:00
|
|
|
option interface lan
|
|
|
|
|
option start 100
|
2007-08-20 04:50:52 +08:00
|
|
|
option limit 150
|
2007-03-17 21:31:13 +08:00
|
|
|
option leasetime 12h
|
|
|
|
|
|
2008-08-20 06:05:41 +08:00
|
|
|
config dhcp wan
|
2007-03-17 21:31:13 +08:00
|
|
|
option interface wan
|
|
|
|
|
option ignore 1
|