Avatar for Username

ძიება მხარდაჭერაში

ნუ გაებმებით თაღლითების მახეში მხარდაჭერის საიტზე. აქ არასდროს მოგთხოვენ სატელეფონო ნომერზე დარეკვას, შეტყობინების გამოგზავნას ან პირადი მონაცემების გაზიარებას. გთხოვთ, გვაცნობოთ რამე საეჭვოს შემჩნევისას „დარღვევაზე მოხსენების“ მეშვეობით.

Learn More

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

  • პასუხები არაა
  • 0 მომხმარებელი წააწყდა მსგავს სიძნელეს
  • 8 ნახვა

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!