I am migrating from dnsmasq on a bare-metal server to a pi-hole server running in a docker container. I've got an existing hosts file that maps my network hosts by mac address to ip address and hostname. I'd like to import this mapping into pi-hole without having to re-enter each device record.
That file wasn't present on my installation (via docker) but when I created it with the content of my hosts file and restarted the container, it worked like a champ!
BTW, that is the name of the file (/etc/dnsmasq.d/hosts) on my dnsmasq server and it did seem to work. I hope I didn't imply that this was my /etc/hosts file; that would be silly.