servers/roles/dnsmasq/templates/00-options.conf.j2
Timotej Lazar 8e3772e475 dnsmasq: store leases in sqlite database
To avoid dnsmasq writing out the whole leasefile on each request
before replying. This gets slow on high‐latency storage.

Also tweak DNS updates a bit.
2025-04-14 16:41:24 +02:00

26 lines
680 B
Django/Jinja

# disable DNS server
port = 0
# we are the only DHCP server
dhcp-authoritative
# instruct clients to also send unicast traffic through the relay
# prevents duplicate queries because ISC dhcrelay forwards everything anyway
dhcp-proxy
# don’t try to ping clients for duplicate IP check
# has 3 s timeout during which no other requests are processed
no-ping
bind-interfaces
interface = {{ interfaces | map(attribute='name') | join(',') }}
dhcp-option = option:dns-server,{{ dns | join(',') }}
dhcp-option = option:ntp-server,{{ ntp | join(',') }}
dhcp-script = /usr/local/bin/dnsmasq-script
dhcp-scriptuser = dnsmasq
# track leases with dnsmasq-script instead
leasefile-ro