搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Can't use hosts file with Firefox

more options

I recently added an entry to my hosts file but Firefox seems to ignore it. I'm using v. 128.5.1esr, fully updated. I've tried a lot of the advice online and none of it seems to work. Here's what I've tried:

disabled "Enable DNS over HTTPS Cleared the DNS Cache changed "Use system proxy settings" to "No proxy". tried troubleshooting mode set network.trr.exclude-etc-hosts to true changed browser.fixup.dns_first_for_single_words to true changed network.dns.offline-local to false restarted FF, rebooted computer

It doesn't work in Chrome either, which makes me wonder if it's a Windows 10 issue. Any suggestions?

I recently added an entry to my hosts file but Firefox seems to ignore it. I'm using v. 128.5.1esr, fully updated. I've tried a lot of the advice online and none of it seems to work. Here's what I've tried: disabled "Enable DNS over HTTPS Cleared the DNS Cache changed "Use system proxy settings" to "No proxy". tried troubleshooting mode set network.trr.exclude-etc-hosts to true changed browser.fixup.dns_first_for_single_words to true changed network.dns.offline-local to false restarted FF, rebooted computer It doesn't work in Chrome either, which makes me wonder if it's a Windows 10 issue. Any suggestions?

所有回覆 (7)

more options

That isn't part of Firefox so you need to check where you got the hosts file and see what suppose to happen if you change it.

有幫助嗎?

more options

I'm doing an example from a CompTIA prep book. The only line in the hosts file is this:

34.200.194.131 timmy

It's supposed to open 34.200.194.131 when I type "timmy" into the address bar

有幫助嗎?

more options

It works for me. see screenshot

有幫助嗎?

more options

由 jonzn4SUSE 於 修改

有幫助嗎?

more options

Your facebook example worked, and "127.0.0.1 test" worked, but not the one from the book.

由 henbor29 於 修改

有幫助嗎?

more options

由 jonzn4SUSE 於 修改

有幫助嗎?

more options

This is not a browser issue so I'm done. Jones out... I recommend you ask the author of the book about their issue. Just because it's in a book doesn't mean it's always right(wink wink). Do your own research to verify how to use the host file.

由 jonzn4SUSE 於 修改

有幫助嗎?

問個問題

如果您還沒有帳號,您必須先登入帳號 來回覆文章。還沒有帳號的話,只能發問新問題