Originally filed as https://github.com/CZ-NIC/knot-resolver/pull/68 (which also highlights the changes better)