Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm looking for a way to override DNS entries in Firefox, for development/testing purposes. I know the normal way to do this is via the hosts file, but I cannot edit it since I don't have admin access on my work machine. Does anyone know of a browser plugin/addon which would do this for me?

I did find the SwitchHosts add-on, although it also requires admin rights in order to install itself.

share|improve this question

migrated from stackoverflow.com Sep 4 '10 at 12:25

This question came from our site for professional and enthusiast programmers.

4 Answers 4

Fiddler has such an option: Tools->hosts

share|improve this answer
    
Thanks, but unfortunately I'm not able to install it on my machine either... –  John J. Camilleri Sep 2 '10 at 12:26

One possibility is to have a socks 5 server on a machine that you have administrative control on, set up this machine as your socks proxy in firefox, and change network.proxy.socks_remote_dns in about:config to true. In theory, all DNS lookups should be done through the proxy, so you should be able to supply your own IP addresses.

share|improve this answer
    
True that would work, although I was hoping for something a bit simpler.. Also a disadvantage to this method is that I wouldn't be able to change DNS entries on the fly. –  John J. Camilleri Sep 2 '10 at 14:13
    
@John, the "something a bit simpler" might be to talk to your boss to get admin privileges on your development box. This DNS issue is a very good example of why you need that, if you'd ask me! –  Arjan Sep 4 '10 at 12:38

If it's just for a few specific requests: the Live HTTP Headers allows for editing HTTP headers and then re-playing the request.

(For other options see also Send Host header when accessing IP address in Firefox on Stack Overflow.)

share|improve this answer
    
Thanks for the link to the other topic. –  0xC0000022L Apr 25 '11 at 0:49

There are many plug-ins which can change the hosts file:

but they all need write access to the hosts file.

I wonder, why it is not possible to edit the browsers DNS-cache. My use-case: Seeing the local version of a page in one browser and the online version in another browser.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.