Maintained by: NLnet Labs

dns redirect to captive url

Ralph Dolmans
Mon Apr 24 10:19:19 CEST 2017


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

On 21-04-17 18:24, Joris L. via Unbound-users wrote:
> 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
> 
> - - -
> JL
> 
>