If one does the research around it, one finds amazing things. LD_PRELOAD tricks are cute, but my favorite has to be using perl to binary-patch libnss_files.so.2 to change the location it looks for the hosts file at:
My answer is, as always, way too much Bash:
It's terrible, it's buggy (redirects are not handled well yet), it's slow. But it gets the job done.
Server run by the main developers of the project It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!