Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

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

  • No replies
  • 0 have this problem
  • 4 views
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!