Override DNS in Firefox












13















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.























    13















    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.





















      13












      13








      13


      2






      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
















      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.







      firefox dns hosts-file






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Aug 23 '13 at 14:52









      wonea

      1,48211940




      1,48211940










      asked Sep 2 '10 at 11:55









      John J. CamilleriJohn J. Camilleri

      211138




      211138




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


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









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


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
























          5 Answers
          5






          active

          oldest

          votes


















          7














          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



















          • 1





            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






          • 1





            @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



















          5














          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



















          3














          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

































            1














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





            • https://addons.mozilla.org/de/firefox/addon/change-hosts/ (not available anymore)


            • https://addons.mozilla.org/de/firefox/addon/hostadmin/ (not available anymore)

            • and more


            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





















            • 1





              broken links in post

              – Hayden Thring
              Jan 21 at 21:47



















            0














            This is my answer to fix this on another post. It has to do with your firefox preferences.



            https://superuser.com/a/1319727/247728






            share|improve this answer























              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "3"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f184643%2foverride-dns-in-firefox%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              5 Answers
              5






              active

              oldest

              votes








              5 Answers
              5






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              7














              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



















              • 1





                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






              • 1





                @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
















              7














              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



















              • 1





                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






              • 1





                @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














              7












              7








              7







              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













              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












              share|improve this answer



              share|improve this answer










              answered Sep 2 '10 at 12:45









              DysasterDysaster

              31115




              31115








              • 1





                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






              • 1





                @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














              • 1





                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






              • 1





                @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








              1




              1





              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





              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




              1




              1





              @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





              @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













              5














              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
















              5














              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














              5












              5








              5







              Fiddler has such an option: Tools->hosts






              share|improve this answer













              Fiddler has such an option: Tools->hosts







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Sep 2 '10 at 12:05







              Alex Reitbort




















              • Thanks, but unfortunately I'm not able to install it on my machine either...

                – John J. Camilleri
                Sep 2 '10 at 12:26



















              • Thanks, but unfortunately I'm not able to install it on my machine either...

                – John J. Camilleri
                Sep 2 '10 at 12:26

















              Thanks, but unfortunately I'm not able to install it on my machine either...

              – John J. Camilleri
              Sep 2 '10 at 12:26





              Thanks, but unfortunately I'm not able to install it on my machine either...

              – John J. Camilleri
              Sep 2 '10 at 12:26











              3














              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






























                3














                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




























                  3












                  3








                  3







                  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















                  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














                  share|improve this answer



                  share|improve this answer








                  edited May 23 '17 at 12:41









                  Community

                  1




                  1










                  answered Sep 4 '10 at 12:40









                  ArjanArjan

                  26.9k1065107




                  26.9k1065107























                      1














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





                      • https://addons.mozilla.org/de/firefox/addon/change-hosts/ (not available anymore)


                      • https://addons.mozilla.org/de/firefox/addon/hostadmin/ (not available anymore)

                      • and more


                      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





















                      • 1





                        broken links in post

                        – Hayden Thring
                        Jan 21 at 21:47
















                      1














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





                      • https://addons.mozilla.org/de/firefox/addon/change-hosts/ (not available anymore)


                      • https://addons.mozilla.org/de/firefox/addon/hostadmin/ (not available anymore)

                      • and more


                      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





















                      • 1





                        broken links in post

                        – Hayden Thring
                        Jan 21 at 21:47














                      1












                      1








                      1







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





                      • https://addons.mozilla.org/de/firefox/addon/change-hosts/ (not available anymore)


                      • https://addons.mozilla.org/de/firefox/addon/hostadmin/ (not available anymore)

                      • and more


                      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















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





                      • https://addons.mozilla.org/de/firefox/addon/change-hosts/ (not available anymore)


                      • https://addons.mozilla.org/de/firefox/addon/hostadmin/ (not available anymore)

                      • and more


                      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














                      share|improve this answer



                      share|improve this answer








                      edited Jan 22 at 10:16

























                      answered Oct 25 '12 at 22:17









                      white_geckowhite_gecko

                      20438




                      20438








                      • 1





                        broken links in post

                        – Hayden Thring
                        Jan 21 at 21:47














                      • 1





                        broken links in post

                        – Hayden Thring
                        Jan 21 at 21:47








                      1




                      1





                      broken links in post

                      – Hayden Thring
                      Jan 21 at 21:47





                      broken links in post

                      – Hayden Thring
                      Jan 21 at 21:47











                      0














                      This is my answer to fix this on another post. It has to do with your firefox preferences.



                      https://superuser.com/a/1319727/247728






                      share|improve this answer




























                        0














                        This is my answer to fix this on another post. It has to do with your firefox preferences.



                        https://superuser.com/a/1319727/247728






                        share|improve this answer


























                          0












                          0








                          0







                          This is my answer to fix this on another post. It has to do with your firefox preferences.



                          https://superuser.com/a/1319727/247728






                          share|improve this answer













                          This is my answer to fix this on another post. It has to do with your firefox preferences.



                          https://superuser.com/a/1319727/247728







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered May 4 '18 at 10:23









                          JayRizzoJayRizzo

                          1313




                          1313






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Super User!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f184643%2foverride-dns-in-firefox%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Plaza Victoria

                              In PowerPoint, is there a keyboard shortcut for bulleted / numbered list?

                              How to put 3 figures in Latex with 2 figures side by side and 1 below these side by side images but in...