DNS redirect

How cool would it be as you can asign a DNS request to another URL
So lets say someone in the network type in www.google.com and the pihole redericts to www.duckduckgo.com

That would be possible, but only in a very limited fashion.

host duckduckgo.com
duckduckgo.com has address 46.51.197.89
duckduckgo.com has address 52.50.207.201
duckduckgo.com has address 176.34.131.233
duckduckgo.com has address 176.34.155.20
duckduckgo.com has address 54.229.105.203
duckduckgo.com has address 54.229.105.92
duckduckgo.com has address 54.229.105.151
duckduckgo.com has address 79.125.106.1
duckduckgo.com has address 176.34.135.167

You could now hard-code www.google.com to one of these IPs, but keep in mind that it will never work for https connections, because the provided certificates will (of course) not fit to the domain the user requested

It's been suggested by Google and Microsoft. It would be nice to be able to assign CNAME or IP a domain. If I'm a parent I may use this.
https://support.google.com/youtube/answer/6214622
https://support.google.com/websearch/answer/186669?hl=en
http://help.bing.microsoft.com/#apex/18/en-US/10003/0

Those are all specific cases where the domain that is redirected to has a valid certificate for the original domain. If we redirected just any domain to any other one, then there would be security errors because the server that you redirected to does not have the correct certificate for the one you originally typed in.

There is a PR adding CNAME support to the web interface

CNAMEs can be created from the web interface now.

1 Like