dns redirect to captive url

hi,

I’ve set-up unbound as a simple local DNS (cache) server.

I’ve also configured it to redirect domains from malwaredomains.com to 0.0.0.0

Now i want to something else, i’d like to redirect these mails to a sorry host. So insted of redirect 0.0.0.0 i’d like to redirect to sorry.mydomain.tld I’ve tried a number of things but it seems to be not supporeted in unbound. The only other option i see is to write something in iptables.

Thank you for your feedback,

JL

Hi Joris,

Unbound 1.6.0 introduced CNAME based redirects using local-data
elements. It that what you are looking for?

Something like:
local-zone: malwaredomains.com redirect
local-data: "malwaredomains.com. CNAME sorry.mydomain.tld."

Regards,
-- Ralph