Add dnsmasq configurations with hosts.