Selectively enable private DNS



  • I've got a local network with associated WiFi where I'm already running a DNS server and I can resolve somehost.local.example.com on any machine in that network just fine.

    On Android I can only resolve those host names when I turn off "Private DNS" and I understand why. However, I'd like to keep the "Private DNS" feature enabled in general.

    Is there some way to either disable Private DNS when I'm in a specific WiFi network (either autodetected some way or even manually configured on my phone is fine) or to ensure that local host names (within the DHCP servers search domain) are still resolved using the DHCP-provided DNS even when Private DNS is enabled?

    My phone is running Android 12, in case that matters.



  • I guess we can maintain the DNS while connecting to a wifi network by choosing advanced -> Static IP.

    I tried to modify the wifi network on Samsung phone running Android 12 and I can see the option for DNS.

    Modify Wifi Network

    I hope this helps, if that's what you need.


Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2