Поиск в Поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

Learn More

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

  • Нет ответов
  • 0 имеют эту проблему
  • 6 просмотров
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!