How To Convert Hosts File to Zone Files

I have been using DNSMasq as my local network DNS forwarders, one reason being the easy to manage dnsmasq.hosts file. I decided to move to unbound DNS server because it has more features. I however wanted to keep the easy maintenance of my IP addresses and hostnames. So I wrote a Python script (with help