Prior to Android 9, the only way to use private DNS servers was to configure them for individual saved Wi-Fi networks or use a local VPN. Now, choose "Private DNS provider hostname" on the popup and enter the URL of your private DNS service. The most common one is Cloudflare's free 1.1.1.1 service, so if you want to go with that, just copy
Private DNS using Quad9 on Android 9 • Quad 9 To enable this on your device: Go to Settings –> Network & Internet –> Advanced –> Private DNS. Select the Private DNS provider hostname option. Enter dns.quad9.net and select Save. That’s it; you’re done! Quad9 now protects you with anti-malware security, and your DNS requests on Android 9 are encrypted. How to Rename Any Computer, Smartphone, or Tablet Dec 20, 2015 How to Change the DNS on Android - Every Android Versions Sep 22, 2019
Jul 23, 2020
wifi_station_set_hostname(myhostname); WiFi.begin(ssid, pwd); DbgPrintln("hostname::", WiFi.hostname()); If you put certain Wifi commands in between the setting of the hostname and WiFi.begin (e.g. WiFi.enableSTA(true)) it no longer works and the hostname becomes again the default "ESP_
Google explains new Private DNS setting in Android P
Aug 03, 2013 InetAddress | Android Developers BaseColumns; CalendarContract.AttendeesColumns; CalendarContract.CalendarAlertsColumns; CalendarContract.CalendarCacheColumns; CalendarContract.CalendarColumns Android P -Private DNS feature and Open DNS – OpenDNS