I couldn't figure out which network I should ask this question on so if you feel it would be better elsewhere let me know. I often have to switch what IP a name resolves to in order to do certain tasks when constructing or more specifically moving web sites/web apps, to a new platform/server. Allot of times I have to go back and forth quickly which mean editing etc/hosts and refreshing allot, which is annoying. Is there any program/plugin/browser extension(Preferably for Chrome or FF) that allows me to quickly change the ip back and forth, or lets the browser choose it's own dns server or hosts file independent of the system's(So I could just use one browser using the system settings and another using it's own settings, eg, Chrome resolves example.com to 1.1.1.1 while FF resolves example.com to 1.2.2.2 )? I develop on a Mac, so you can provide PC extensions as part of your answer but please make sure that you have at least one solution that works on Mac.
|
feedback
|
|
You could run a proxy server and make one browser use it and the other run direct. I'm not sure what off-the-shelf proxy would be best for this - if it's on a separate machine/VM then anything would be fine as you could configure the machines's DNS. Yoy can probably tell Apache or squid to use custom DNS or rewrite rules, or you could write your own proxy to do this in <100 lines of python... | |||
|
feedback
|