2023-12-31 02:02:59 +03:00
|
|
|
#----------------------------------------------------------------------
|
|
|
|
|
#
|
|
|
|
|
#----------------------------------------------------------------------
|
2023-12-28 20:08:03 +03:00
|
|
|
# DNS
|
|
|
|
|
|
|
|
|
|
# Never forward plain names (without a dot or domain part)
|
|
|
|
|
domain-needed
|
|
|
|
|
# Never forward addresses in the non-routed address spaces.
|
|
|
|
|
bogus-priv
|
|
|
|
|
|
|
|
|
|
resolv-file=/etc/resolv.conf
|
|
|
|
|
|
|
|
|
|
local-service
|
|
|
|
|
|
2023-12-31 02:02:59 +03:00
|
|
|
listen-address=::1,127.0.0.1,10.0.0.1,10.1.1.1
|
2023-12-28 20:08:03 +03:00
|
|
|
|
|
|
|
|
expand-hosts
|
2023-12-31 02:02:59 +03:00
|
|
|
domain-needed
|
2023-12-28 20:08:03 +03:00
|
|
|
|
2023-12-31 02:02:59 +03:00
|
|
|
#local=/adm/
|
2023-12-28 20:08:03 +03:00
|
|
|
local=/srv/
|
2023-12-31 02:02:59 +03:00
|
|
|
|
|
|
|
|
domain=adm,admin
|
|
|
|
|
domain=adm,10.0.0.0/24
|
|
|
|
|
|
|
|
|
|
domain=srv,lan
|
|
|
|
|
domain=srv,10.1.1.0/24
|
|
|
|
|
|
2023-12-28 20:08:03 +03:00
|
|
|
domain=srv
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-12-31 02:02:59 +03:00
|
|
|
#----------------------------------------------------------------------
|
2023-12-28 20:08:03 +03:00
|
|
|
# DHCP
|
|
|
|
|
|
2023-12-31 02:02:59 +03:00
|
|
|
dhcp-fqdn
|
2023-12-28 20:08:03 +03:00
|
|
|
dhcp-authoritative
|
|
|
|
|
|
2023-12-31 02:02:59 +03:00
|
|
|
dhcp-range=192.168.1.0,static
|
2023-12-28 20:08:03 +03:00
|
|
|
dhcp-range=interface:admin,10.0.0.20,10.0.0.200,12h
|
|
|
|
|
dhcp-range=interface:lan,10.1.1.20,10.1.1.200,12h
|
|
|
|
|
|
|
|
|
|
# ns
|
|
|
|
|
address=/ns/10.0.0.1
|
2023-12-31 02:02:59 +03:00
|
|
|
address=/ns/10.1.1.1
|
2023-12-28 20:08:03 +03:00
|
|
|
|
|
|
|
|
# gate
|
|
|
|
|
address=/gate/10.0.0.2
|
2023-12-31 02:02:59 +03:00
|
|
|
address=/gate/10.1.1.2
|
|
|
|
|
dhcp-option=admin,option:router,10.0.0.2
|
|
|
|
|
dhcp-option=lan,option:router,10.1.1.2
|
|
|
|
|
dhcp-host=admin,gate,10.0.0.2,infinite
|
|
|
|
|
dhcp-host=lan,gate,10.1.1.2,infinite
|
2023-12-28 20:08:03 +03:00
|
|
|
|
|
|
|
|
# pve
|
|
|
|
|
address=/pve/10.0.0.254
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-12-31 02:02:59 +03:00
|
|
|
#----------------------------------------------------------------------
|
2023-12-28 20:08:03 +03:00
|
|
|
# MISC
|
|
|
|
|
|
|
|
|
|
# Include all files in a directory which end in .conf
|
|
|
|
|
conf-dir=/etc/dnsmasq.d/,*.conf
|
|
|
|
|
|
2023-12-31 02:02:59 +03:00
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------
|