Switch firefox to use a different DNS than what is in the windows.host file

前端 未结 9 1200
误落风尘
误落风尘 2021-02-05 01:50

For example, I have a development site on a different server but I\'m trying to copy content over from the live site so it\'d be handy to have the live site in IE and the dev si

相关标签:
9条回答
  • 2021-02-05 02:11

    It appears from your question that you already have a second set of DNS servers available that reference the development site instead of the live site.

    I would suggest that you simply run a standard SOCKS proxy either on that DNS server system or on a low-end spare system and have that system configured to use the development DNS server. You can then tell Firefox to use that proxy instead of downloading pages directly.

    Doing it this way, the actual DNS lookups will be done on the proxy machine and not on the machine that's running the web browser.

    0 讨论(0)
  • 2021-02-05 02:14

    Go to options->Advanced->Network->Settings->Automatic proxy configuration url and enter 8.8.8.8 All you Mozilla traffic uses Google dns now.

    0 讨论(0)
  • 2021-02-05 02:15

    I am using the SwitchHost extension exactly for this problem: https://addons.mozilla.org/en-US/firefox/addon/14258

    It is easy to configure, and even more easy to switch hosts.

    0 讨论(0)
  • 2021-02-05 02:17

    I wonder if you could write a custom rule for Fiddler to do what you want? IE uses no proxy, Firefox points to Fiddler, Fiddler uses custom rule to direct requests to the dev server...

    http://www.fiddlertool.com/fiddler/

    0 讨论(0)
  • 2021-02-05 02:19

    DNS resolving is usually done at the system level and not at the application level, so you can't normally have one program use one dns and another program use a different dns. I'm not aware of any firefox extensions that allow you to use a different dns.

    0 讨论(0)
  • 2021-02-05 02:20

    What about having different names for your dev and prod servers? That should avoid any confusions and you'd not have to edit the hosts file every time.

    0 讨论(0)
提交回复
热议问题