-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Stephane,
On 01/27/2014 03:29 PM, Stephane Bortzmeyer wrote:> I switched a low-usage DNS server from NSD 3 to NSD 4 and I see
> now that, from time to time, it stops serving IPv6 requests
> (timeout). The problem seem to occur randomly, it lasts a few
> minutes, then cures itself. Nothing similar for IPv4. (By the way,
> the -6 option of -ex-Nagios monitoring plugins is broken, see
>
<https://github.com/monitoring-plugins/monitoring-plugins/issues/1228>.)
>
> It is not a network/L3 issue: when the problem happens, even a dig
> on the name server to itself over the local interface fails. Also,
> with tcpdump on the name server, I see DNS requests coming in but
> nothing coming out.
I think this (could be) a bug in recvmmsg. This is a (relatively) new
syscall that NSD4 uses to get more performance. On Linux, new recent
kernels. However, it shows to have issues.
You can compile --disable-recvmmsg. Then it uses good-old recvfrom,
and that should work.
> strace on the daemon does not show a
> recvmmsg(sa_family=AF_INET6...) for my address when tcpdump sees
> the packet coming in.
Does the strace also show a result for that recvmmsg call, i.e. -1
errno=.. or so? I need some sort of way to determine if this bug
happens, otherwise I'd have to switch of using recvmmsg completely ...
At least no longer ship it by default, or perhaps perform a linux
kernel-version check in configure (but that gives binaries that then
later do not work when run on another machine).
> Could it be because of something else than NSD? At the same moment,
> I switched to Linux kernel 3.12.6 on a Linode VPS. Any similar
> problems with this setup? (If I have time, I will try with Knot, to
> compare and to see if it's the fault of the kernel.)
It'll be recvmmsg. Not sure if Knot uses that. The kernel version
may or may not have fixes for it, I guess, so the kernel version could
be important here.
Best regards,
Wouter
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQIcBAEBAgAGBQJS5nAjAAoJEJ9vHC1+BF+NYlQQAIrgSx75UgPe81HK9Wsn5kP+
2h3pM6cALrzbutdK/4muQ23pTEnPUR4onfPIV9EfMtDYBH/FIGkRRr/h4iOzrLJo
4pNZVLkFDizCUafvwy2+jhmB4F0OYsD/CMIfBc7UbhZKLPv+rwnuRclVnc6bxa3U
5mNAavkN2jgJal8fIrPTt0zsFBj2pLm7QB2HZtmgMkTZdZYcr3cfOLosuz395S3p
Sji4kCS6h+aD/RLm2QogZK/lXGyoMcOYe+2ClMaRmQyUHAGRJgYWOi95VoalBhDb
EueBmqGT3OcbIB/5LEdcuq54yY8V2OKXMiUHavpVSxDV9vuoX/MgejVuq0EFbsh1
f90q955At23/pzT95ssVszu9ElFB5bAqotkFY6HkrQPpBjZLLJvdmhBpzTQkEqYw
v5G9T7MBSOyRgAQ/U9je8zgo2QWFSwVDNUIez9OAgJBSFqFE6BZ4au2/HSwtTuSW
s53ma2dqEfwkUeXgXRzA2ZQl41jzfN7Eqpwj412YWU9hD4xXCkQAlNP4UjvQivEo
Vv8bdKlRen5eNJYfOWL4mm0ETmyZSJfqlDy645t9EuChukVY+CLGRexc9SP8quM9
act8glZDNKdKOuCH+etatjFtjXS0nMx1Hz+W7mKZWBbn1l0iCF3EUg6DKQvdVX2p
8clNl32AsdePD46pLiCW
=/OQf
-----END PGP SIGNATURE-----