servers/roles/dnsmasq/templates/00-options.conf.j2

28 lines
736 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
# we have more than 1000 clients
dhcp-lease-max = 5000
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