TechnitiumSoftware / DnsServer

Technitium DNS Server
https://technitium.com/dns/
GNU General Public License v3.0
3.84k stars 400 forks source link

[Feature Request] - Resolve blocked DNS requests to custom domain instead of blackhole #829

Closed aconn21 closed 5 months ago

aconn21 commented 5 months ago

For blocked requests, I'm wanting to resolve the DNS query to a webserver I've setup with a blocked webpage. (I'd prefer users to know websites/domains have been blocked). Happy to modify the code myself if you could point me to the lines/section of code I'd need to change. I'd need this for CNAME and A records.

ShreyasZare commented 5 months ago

Thanks for the post. You can already do that using the Custom Address option and set the IP address of your web server.

aconn21 commented 5 months ago

Yep sorry, I found the option. This works fine:

image