That would be possible, but only in a very limited fashion.
host duckduckgo.com duckduckgo.com has address 184.108.40.206 duckduckgo.com has address 220.127.116.11 duckduckgo.com has address 18.104.22.168 duckduckgo.com has address 22.214.171.124 duckduckgo.com has address 126.96.36.199 duckduckgo.com has address 188.8.131.52 duckduckgo.com has address 184.108.40.206 duckduckgo.com has address 220.127.116.11 duckduckgo.com has address 18.104.22.168
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.
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