0

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

cname=unwanted.example.org,

But dnsmasq would'nt start. I then tried

cname=unwanted.example.org,_

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

1
address=/unwanted.example.org/

--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 acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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