Browser Specific DNS
The use case is that I have set up an instance of Blog de JH with domain name
blog.johannhuang.com on my Intranet server Home-DS218plus while there is also the public Blog de JH on the Internet. For trying out somethings which I haven’t decided for the public Blog de JH, currently I have to update the
/etc/hosts file on my macOS to directing all my browser requests to the web server running on my Home-DS218plus. It works but also does too much than I need. I only need the browser I use to test the Blog de JH on the Intranet sends all the requests to Home-DS218plus while other web browsers or applications still request to the Blog de JH on the Internet. Therefore I wish there could be a browser specific DNS.
The conclusion as of 20220425 is IMPOSSIBLE.
The following is a list of references I have read.
- Manage and switch between multiple proxies quickly & easily.
- Privoxy is a non-caching web proxy with advanced filtering capabilities for enhancing privacy, modifying web page data and HTTP headers, controlling access, and removing ads and other obnoxious Internet junk.
- Privoxy has a flexible configuration and can be customized to suit individual needs and tastes. It has application for both stand-alone systems and multi-user networks.
- Dnsmasq provides network infrastructure for small networks: DNS, DHCP, router advertisement and network boot.
- It is designed to be lightweight and have a small footprint, suitable for resource constrained routers and firewalls.
- It has also been widely used for tethering on smartphones and portable hotspots, and to support virtual networking in virtualisation frameworks.
- Supported platforms include Linux (with glibc and uclibc), Android, *BSD, and Mac OS X.
- Dnsmasq is included in most Linux distributions and the ports systems of FreeBSD, OpenBSD and NetBSD. Dnsmasq provides full IPv6 support.