
Changing settings based on location (network)? Specifically - DNS-over-HTTPS
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!