Android 10 sometimes tries to forcibly enable the DNS-over-TLS or DNS-over-HTTPS setting. Maybe try disabling that. Another gotcha on Android 10 appears to be the Data Saver setting.