What to Expect of a Web Browser


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.

  • https://stackoverflow.com/questions/6045674/intercept-dns-request-in-a-chrome-extension
  • https://serverfault.com/questions/200815/browser-level-dns-settings-to-work-like-the-hosts-file-at-system-level
  • https://en.wikipedia.org/wiki/Proxy_auto-config
  • https://github.com/FelisCatus/SwitchyOmega
    • Manage and switch between multiple proxies quickly & easily.
  • http://www.privoxy.org/
    • 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.
  • https://thekelleys.org.uk/dnsmasq/doc.html
    • 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.

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert