Override DNS in Firefox
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
migrated from stackoverflow.com Sep 4 '10 at 12:25
This question came from our site for professional and enthusiast programmers.
add a comment |
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
migrated from stackoverflow.com Sep 4 '10 at 12:25
This question came from our site for professional and enthusiast programmers.
add a comment |
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
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
firefox dns hosts-file
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.
add a comment |
add a comment |
5 Answers
5
active
oldest
votes
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.
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
add a comment |
Fiddler has such an option: Tools->hosts
Thanks, but unfortunately I'm not able to install it on my machine either...
– John J. Camilleri
Sep 2 '10 at 12:26
add a comment |
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.)
add a comment |
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.
1
broken links in post
– Hayden Thring
Jan 21 at 21:47
add a comment |
This is my answer to fix this on another post. It has to do with your firefox preferences.
https://superuser.com/a/1319727/247728
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
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
add a comment |
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.
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
add a comment |
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.
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.
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
add a comment |
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
add a comment |
Fiddler has such an option: Tools->hosts
Thanks, but unfortunately I'm not able to install it on my machine either...
– John J. Camilleri
Sep 2 '10 at 12:26
add a comment |
Fiddler has such an option: Tools->hosts
Thanks, but unfortunately I'm not able to install it on my machine either...
– John J. Camilleri
Sep 2 '10 at 12:26
add a comment |
Fiddler has such an option: Tools->hosts
Fiddler has such an option: Tools->hosts
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
add a comment |
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
add a comment |
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.)
add a comment |
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.)
add a comment |
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.)
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.)
edited May 23 '17 at 12:41
Community♦
1
1
answered Sep 4 '10 at 12:40
ArjanArjan
26.9k1065107
26.9k1065107
add a comment |
add a comment |
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.
1
broken links in post
– Hayden Thring
Jan 21 at 21:47
add a comment |
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.
1
broken links in post
– Hayden Thring
Jan 21 at 21:47
add a comment |
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.
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.
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
add a comment |
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
add a comment |
This is my answer to fix this on another post. It has to do with your firefox preferences.
https://superuser.com/a/1319727/247728
add a comment |
This is my answer to fix this on another post. It has to do with your firefox preferences.
https://superuser.com/a/1319727/247728
add a comment |
This is my answer to fix this on another post. It has to do with your firefox preferences.
https://superuser.com/a/1319727/247728
This is my answer to fix this on another post. It has to do with your firefox preferences.
https://superuser.com/a/1319727/247728
answered May 4 '18 at 10:23
JayRizzoJayRizzo
1313
1313
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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