celzero / rethink-app

DNS over HTTPS / DNS over Tor / DNSCrypt client, WireGuard proxifier, firewall, and connection tracker for Android.
https://rethinkfirewall.com/
Apache License 2.0
3.01k stars 154 forks source link

System DNS reset despite no change in addrs #1750

Closed ignoramous closed 3 weeks ago

ignoramous commented 3 weeks ago

seems to happen when transitioning from v4 -> v4+v6?

10-26 03:37:59.811  9447 10906 I VpnLifecycle: Building vpn for v4? true, v6? true
10-26 03:37:59.813  9447 10906 I VpnLifecycle: onNetworkConnected: changes: NetworkChanges(routesChanged=true, netChanged=true, mtuChanged=false) for new: UnderlyingNetworks(ipv4Net=[NetworkProperties(network=123, capabilities=[ Transports: WIFI Capabilities: NOT_METERED&INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN&VALIDATED&NOT_ROAMING&FOREGROUND&NOT_CONGESTED&NOT_SUSPENDED&NOT_VCN_MANAGED LinkUpBandwidth>=12000Kbps LinkDnBandwidth>=60000Kbps TransportInfo: <SSID: <unknown ssid>, BSSID: 02:00:00:00:00:00, MAC: 02:00:00:00:00:00, IP: /192.168.0.109, Security type: 2, Supplicant state: COMPLETED, Wi-Fi standard: 11ac, RSSI: -33, Link speed: 780Mbps, Tx Link speed: 780Mbps, Max Supported Tx Link speed: 866Mbps, Rx Link speed: 866Mbps, Max Supported Rx Link speed: 866Mbps, Frequency: 5180MHz, Net ID: -1, Metered hint: false, score: 60, isUsable: true, CarrierMerged: false, SubscriptionId: -1, IsPrimary: -1, Trusted: true, Restricted: false, Ephemeral: false, OEM paid: false, OEM private: false, OSU AP: false, FQDN: <none>, Provider friendly name: <none>, Requesting package name: <none><none>MLO Information: , Is TID-To-Link negotiation supported by the AP: false, AP MLD Address: <none>, AP MLO Link Id: <none>, AP MLO Affiliated links: <none>, Vendor Data: <none>> SignalStrength: -33 UnderlyingNetworks: Null], linkProperties={InterfaceName: wlan0 LinkAddresses: [ fe80::a834:64ff:fe54:cb20/64,192.168.0.109/24,2406:7400:ff03:741:a834:64ff:fe54:cb20/64,2406:7400:ff03:741:452b:e0b4:3159:9caa/64 ] DnsAddresses: [ /106.51.156.186,/106.51.255.135 ] Domains: null MTU: 0 ServerAddress: /192.168.0.1 TcpBufferSizes: 524288,1048576,8808040,524288,1048576,6710886 Routes: [ fe80::/64 -> :: wlan0 mtu 0,2406:7400:ff03:741::/64 -> :: wlan0 mtu 0,::/0 -> fe80::56af:97ff:fec4:ab1a wlan0 mtu 0,192.168.0.0/24 -> 0.0.0.0 wlan0 mtu 0,0.0.0.0/0 -> 192.168.0.1 wlan0 mtu 0 ]}, networkType=WiFi, NotMetered?true)], ipv6Net=[NetworkProperties(network=123, capabilities=[ Transports: WIFI Capabilities: NOT_METERED&INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN&VALIDATED&NOT_ROAMING&FOREGROUND&NOT_CONGESTED&NOT_SUSPENDED&NOT_VCN_MANAGED LinkUpBandwidth>=12000Kbps LinkDnBandwidth>=60000Kbps TransportInfo: <SSID: <unknown ssid>, BSSID: 02:00:00:00:00:00, MAC: 02:00:00:00:00:00, IP: /192.168.0.109, Security type: 2, Supplicant state: COMPLETED, Wi-Fi standard: 11ac, RSSI: -33, Link speed: 780Mbps, Tx Link speed: 780Mbps, Max Supported Tx Link speed: 866Mbps, Rx Link speed: 866Mbps, Max Supported Rx Link speed: 866Mbps, Frequency: 5180MHz, Net ID: -1, Metered hint: false, score: 60, isUsable: true, CarrierMerged: false, SubscriptionId: -1, IsPrimary: -1, Trusted: true, Restricted: false, Ephemeral: false, OEM paid: false, OEM private: false, OSU AP: false, FQDN: <none>, Provider friendly name: <none>, Requesting package name: <none><none>MLO Information: , Is TID-To-Link negotiation supported by the AP: false, AP MLD Address: <none>, AP MLO Link Id: <none>, AP MLO Affiliated links: <none>, Vendor Data: <none>> SignalStrength: -33 UnderlyingNetworks: Null], linkProperties={InterfaceName: wlan0 LinkAddresses: [ fe80::a834:64ff:fe54:cb20/64,192.168.0.109/24,2406:7400:ff03:741:a834:64ff:fe54:cb20/64,2406:7400:ff03:741:452b:e0b4:3159:9caa/64 ] DnsAddresses: [ /106.51.156.186,/106.51.255.135 ] Domains: null MTU: 0 ServerAddress: /192.168.0.1 TcpBufferSizes: 524288,1048576,8808040,524288,1048576,6710886 Routes: [ fe80::/64 -> :: wlan0 mtu 0,2406:7400:ff03:741::/64 -> :: wlan0 mtu 0,::/0 -> fe80::56af:97ff:fec4:ab1a wlan0 mtu 0,192.168.0.0/24 -> 0.0.0.0 wlan0 mtu 0,0.0.0.0/0 -> 192.168.0.1 wlan0 mtu 0 ]}, networkType=WiFi, NotMetered?true)], useActive=false, minMtu=1500, isActiveNetworkMetered=false, lastUpdated=82161590, dnsServers={/106.51.156.186=123, /106.51.255.135=123})
10-26 03:37:59.814  9447 10906 I VpnLifecycle: active network is vpn, so no need get dns servers
10-26 03:37:59.814  9447 10906 I VpnLifecycle: dns servers for network: [/106.51.156.186, /106.51.255.135, /106.51.156.186, /106.51.255.135]
- 10-26 03:37:59.815  9447 24808 D VpnLifecycle: System dns: [106.51.156.186, 106.51.255.135]
- 10-26 03:37:59.815  9447 24808 D VpnLifecycle: System dns: [106.51.156.186, 106.51.255.135, 106.51.156.186, 106.51.255.135]
- 10-26 03:37:59.815  9447 24808 D VpnLifecycle: dns: [106.51.156.186, 106.51.255.135, 106.51.156.186, 106.51.255.135], existing: [106.51.156.186, 106.51.255.135], force: true
- 10-26 03:37:59.815  9447 24808 I VpnLifecycle: System dns servers changed, set: [106.51.156.186, 106.51.255.135, 106.51.156.186, 106.51.255.135]
- 10-26 03:37:59.816  9447 24808 I VpnLifecycle: set system dns: 106.51.156.186,106.51.255.135,106.51.156.186,106.51.255.135
10-26 03:37:59.816  9447 10906 D VpnLifecycle: mtu? false(o:1500, n:1500); routes? true, restart vpn
10-26 03:37:59.817  9447  7345 I GoLog   : transport.go:961: I dnsx: bootstrap! system:53 -> [106.51.156.186 106.51.255.135 106.51.156.186 106.51.255.135]
hussainmohd-a commented 3 weeks ago

Reverted changes to test the system DNS issue. Will re-add the changes once the testing is complete.