Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Rewrite DNS + Redirect (Google -> Esocia; Youtube -> Plex, etc) #1372
The problem I want to solve here is quite simple:
Let's say I want to be a little facist and try out a new search engine (e.g: Ecosia) and rather than make all users in my network (home) have to reconfigure their browsers, add extensions and what not (too hard / too much effort); I instead rewrite all DNS queries for other search engines to a simple service that then also redirects to where I want to go.
This isn't necessarily just about search engines however; this is more or less a general purpose feature where you could rewrite + redirect quite a lot of useful things to other services or even internal ones.
We already have Rewrite support in the UI. It supports today very simple:
We need to add support for CNAME(s) and wildcard(s) too.
Have a look at this project (which I tend to play with): https://github.com/Eraac/dns-redirect
Having a rewrite + redirect feature builtin to ADH would be pretty amazing though and if you did it in such a way that it were also simple to use from a UI (you guys are pretty amazing at doing this!) even better!
As a bonus -- Adding simple simple "builtin" rewrite+redirect(s) would also be amazing for example:
I think I pretty much outlined the alternative :) -- A hacky setup with ADH +
Nope :D Good NEW Feature to go along with a new major release :)
Hm, but it does support CNAME and wildcards already.
You can do something like this for instance:
The problem is that this won't be enough. If you do
Yes I know :D You need to rewrite the domains to the address of ADH itself. ADH then needs to process those requests and redirect.
Yeah, and there are a number of additional issues with that:
On the other hand, when we have a MITM proxy as a part of AGH, we could implement all this without using the DNS at all, just by using a regular HTTP redirect.