Refactor dns management, add dnsmasq-rest-api