Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DNS Plugin tries to resolve addresses as hostname on Moto Edge 30 Pro Android 12 #140

Open
fraichu opened this issue Feb 4, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@fraichu
Copy link

fraichu commented Feb 4, 2023

powertunnel_moto.log.txt
DNS Resolver seems to get IP Address instead of hostname as input.

02-04 21:55:19.333 17422 17422 W io.github.krlvm.powertunnel.android: type=1400 audit(0.0:26426): avc: granted { execute } for comm=50726F787920426F6F747374726170 path="/data/data/io.github.krlvm.powertunnel.android/files/plugins/oat/arm64/DNSResolver-Android.odex" dev="dm-12" ino=78671 scontext=u:r:untrusted_app:s0:c115,c257,c512,c768 tcontext=u:object_r:app_data_file:s0:c115,c257,c512,c768 tclass=file app=io.github.krlvm.powertunnel.android
02-04 21:55:19.343 17422 18866 I i*.g*.k*.p*.PowerTunnel: Registered plugin 'DNS' [dns] v1.0.2 (3) by krlvm
02-04 21:55:19.346 17422 18866 I DNSPlugin: DNS Resolver: 'https://1.1.1.1/dns-query' [dnsOverHttps=true, dnsSec=false, ignoreHosts=false]
02-04 21:55:20.203 17422 18903 E LDNSResolver: Resolution of hostname '157.240.239.61' failed
02-04 21:55:23.856 17422 18959 E LDNSResolver: Resolution of hostname '36.4.104.0' failed
02-04 21:55:26.679 17422 18979 E LDNSResolver: Resolution of hostname '36.4.104.0' failed
02-04 21:55:27.721 17422 19147 E LDNSResolver: Resolution of hostname '185.151.204.9' failed
02-04 21:55:28.453 17422 19231 E LDNSResolver: Resolution of hostname '36.4.104.0' failed
02-04 21:55:28.582 17422 19232 E LDNSResolver: Resolution of hostname '142.250.194.42' failed
02-04 21:55:31.423 17422 18903 E LDNSResolver: Resolution of hostname '35.82.174.126' failed

@krlvm
Copy link
Owner

krlvm commented Feb 4, 2023

Looks like the VPN interceptor fails to extract SNI, so the proxy server sees the IP as the host name

@krlvm krlvm transferred this issue from krlvm/PowerTunnel-DNS Feb 4, 2023
@krlvm krlvm added the bug Something isn't working label Feb 4, 2023
@krlvm
Copy link
Owner

krlvm commented Feb 4, 2023

Hostname is being extracted here and is being saved to packet info here if extraction was successful (i.e. len > 0)

@fraichu fraichu changed the title DNS Plugin tries to resolve addresses as hostname on Moto Edge 30 Pro Android 11 DNS Plugin tries to resolve addresses as hostname on Moto Edge 30 Pro Android 12 Feb 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants