blob: 7e00a2db3d88733835f913416a1fc4d78163b8a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# Serve DHCP only on vmbr1
interface=vmbr1
bind-interfaces
# Disable DNS functionality entirely
port=0
# DHCP range with 12h lease time
dhcp-range={{ nat_subnet_prefix }}.100,{{ nat_subnet_prefix }}.200,12h
# Gateway and external DNS for clients
dhcp-option=3,{{ nat_subnet_prefix }}.1 # Gateway
dhcp-option=6,1.1.1.1,1.0.0.1 # DNS servers
# Block dnsmasq from loading unrelated configs
no-hosts
no-resolv
# Disable ping checks and extra interfaces
no-ping
no-dhcp-interface=
# Drop privileges
user=dnsmasq
group=dnsmasq
# Logging
log-queries
log-dhcp
|