My system has ethernet and wifi interfaces. Lan connection has metric 100, Wlan is 200 and is static configured.
When a eth cable without internet connects before Wlan, Wlan cannot solve domain names.
Example: With Wlan I can only ping 8.8.8.8, but not google.com.
Is there any option to work this around and ping directly a domain?
When WLAN is on default route, it resolves DNS. But I would like it to resolve DNS when its not on default route, when the default route has no internet connection.
route -n:
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.178.1 0.0.0.0 UG 100 0 0 eth0 <-- has no internet connection
0.0.0.0 192.168.178.1 0.0.0.0 UG 200 0 0 wlan0
192.168.178.0 0.0.0.0 255.255.255.0 U 100 0 0 eth0
192.168.178.0 0.0.0.0 255.255.255.0 U 200 0 0 wlan0
If it doesn't have internet connection and has lower metric, then your traffic will be blackholed.
You need mwan3 package to manage multiple connections and monitor them if they have connection to the internet or not.