From 1b5a20ac8a9438c054651aa7ec63032221b6a134 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Thu, 28 Nov 2024 15:41:22 +0100 Subject: [PATCH] dnsmasq: disable ping for duplicate address detection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Some things don’t reply which holds up all requests for 3 seconds. --- roles/dnsmasq/templates/00-options.conf.j2 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/roles/dnsmasq/templates/00-options.conf.j2 b/roles/dnsmasq/templates/00-options.conf.j2 index 8c15522..1c2c3ac 100644 --- a/roles/dnsmasq/templates/00-options.conf.j2 +++ b/roles/dnsmasq/templates/00-options.conf.j2 @@ -1,11 +1,16 @@ # disable DNS server port = 0 +# we are the only DHCP server +dhcp-authoritative + +# 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-authoritative - dhcp-option = option:dns-server,{{ dns | join(',') }} dhcp-option = option:ntp-server,{{ ntp | join(',') }}