Using dnsmasq, I can set new values for existing records, and add new records, event to a zone I don't own. But is it possible to mask or suppress an existing record ?

In my case I want a CNAME to be non existent and return status NXDOMAIN

I tried


But dnsmasq would'nt start. I then tried


As this is ignored, I get the real CNAME record from the real DNS servers.


--address=/example.com/ is equivalent to --server=/example.com/ and returns NXDOMAIN for example.com and all its subdomains.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.