I have set up a DNS server using bind9 and will forward any DNS request to 1.1.1.1. It working fine with the resolving of DNS requested by users. Note that my DNS resolver is residing in a VPS and not locally in my network.
The issue is that if i would want to redirect a domain 'blocksite.com' to another external IP 100.100.100.200, how can i configure it ?
It will be something like ISP censoring prohibited website and redirect it to another IP (blocked warning page) when user tries to access to the website.
Please help.. much thanks in advance.
Best Answer
It's possible to add a zone for the domain, but the feature you are probably looking for is called Response Policy Zones (RPZ). With an RPZ, you can add a single zone that can lie about the domains / hostnames you would like to block.
Then you can add the domain to the
rpz.db
file with anA
record to your warning page server: