inspired by #345
https://gitlab.labs.nic.cz/knot/knot-resolver/commit/16d699e1ee4e solves this problem a way much better, so this MR is closed.
inspired by #345
https://gitlab.labs.nic.cz/knot/knot-resolver/commit/16d699e1ee4e solves this problem a way much better, so this MR is closed.