搜尋 Mozilla 技術支援網站

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

Learn More

Changing settings based on location (network)? Specifically - DNS-over-HTTPS

  • 無回覆
  • 0 有這個問題
  • 4 次檢視
more options

Hello everyone!

My use case is that I have pi-hole at home, so I want DNS requests go through it (DoH disabled, DNS reqs go as assigned by DHCP, actually it goes to DoH then). But when I am away from home (i.e. office) I want to have DoH enabled for privacy reasons.

Is there a way of modifying settings based on location? I guess the simplest way would be to do it with a script that checks my IP - if it's my home IP then disable DoH, otherwise enable. But I don't know how to make it work.

Can you share any experience in such task?

Thanks!

Hello everyone! My use case is that I have pi-hole at home, so I want DNS requests go through it (DoH disabled, DNS reqs go as assigned by DHCP, actually it goes to DoH then). But when I am away from home (i.e. office) I want to have DoH enabled for privacy reasons. Is there a way of modifying settings based on location? I guess the simplest way would be to do it with a script that checks my IP - if it's my home IP then disable DoH, otherwise enable. But I don't know how to make it work. Can you share any experience in such task? Thanks!

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