Submitted upstream: https://www.mail-archive.com/dnsmasq-discuss@lists.thekelleys.org.uk/msg16694.html