<div dir="ltr"><p>Hi all,</p><p>First of all thanks for developing and maintaining dnsmasq, it's really useful and I'm the maintainer of an addon that integrates it with HomeAssistant (<a href="https://github.com/f18m/ha-addon-dnsmasq-dhcp" target="_blank">https://github.com/f18m/ha-addon-dnsmasq-dhcp</a>).</p><p><span style="background-color:transparent">I recently started using the "bind-dynamic" feature and I have definitively isolated a bug in dnsmasq: </span><span style="background-color:transparent">I can reproduce an intermittent issue with dnsmasq </span><code style="background-color:transparent">2.93-44-g10fbc39</code><span style="background-color:transparent"> on Linux using </span><code style="background-color:transparent">bind-dynamic</code><span style="background-color:transparent">. I created an isolated test to reproduce it, based on docker (compose).</span></p><p><span style="background-color:transparent">What happens is that after repeated creation and removal of Docker bridge container endpoints, dnsmasq stops listening on </span><code style="background-color:transparent">127.0.0.1</code><span style="background-color:transparent"> over both UDP and TCP, while the IPv6 listener on </span><code style="background-color:transparent">::1</code><span style="background-color:transparent"> remains. Its log reports:</span></p><pre style="white-space:pre-wrap"><code>stopped listening on lo(#1): 127.0.0.1 port 1053
</code></pre><p>The reproducer uses dnsmasq in host networking, bound only to <code><a href="http://127.0.0.1:1053/" target="_blank">127.0.0.1:1053</a></code>, and repeatedly creates/removes short-lived containers on an IPv6-enabled bridge. It reproduced after 11 and 40 cycles on Linux <code>7.2.10-200.fc44.x86_64</code> with Docker Engine <code>29.9.0</code>. I can provide the minimal Docker Compose reproducer.</p><p>I suspect there is a race condition somewhere related to the bind-dynamic implementation.<br><br>What is the best way to share the test that reproduces this issue with you? </p><p>I didn't find any bug tracker and although I git cloned the source, I'm not sure in which format you prefer to receive the test that reproduces the bug... should I send a .patch file?</p><p>Thanks,</p><p>Francesco Montorsi</p></div>