I've set up a machine running dnsmasq, essentially serving its /etc/hosts
file. However, there are specific entries which I want in that machine's /etc/hosts
, but I don't want served. How can I make dnsmasq not serve them?
I've set up a machine running dnsmasq, essentially serving its /etc/hosts
file. However, there are specific entries which I want in that machine's /etc/hosts
, but I don't want served. How can I make dnsmasq not serve them?
If you don't want your system to use those entries in your host file, why can't you simply remove them?
Do you have other enteries in your host file that you do need to be served? You could just have DNSMasq skip the system-wide host file
--no-hosts
, and you can point DNSMasq at an alternate hosts file that has the entries you want--addn-hosts
.I dont know whether dnsmasq supports this or not, but from the description of what you are trying to achieve, it sounds like setting up bind would be a more elegant solution. That way, you can keep your hosts file and DNS forwarding / resolution completely separate.