Hi. *disclaimer* I have seen several "similar" threads around, but since I'm not sure the problem is actually the same, I open a dedicated thread. Do not hesitate to merge if you think this is relevant.
Setup :
I have Libreelec 9.2.6 installed on a raspberry Pi 4. It is connected via ethernet to my modem/router. Everything works fine.
Since this router has terrible wifi, wifi is simply not activated on it. So the plan is to use Libreelec tethering tho get a wifi AP.
Problem :
When tethering is activated, I get no Domain Name resolution after reboot. The Pi (and connected devices via wifi) can ping an IP, but no domain. Kodi addons do not work anymore (can't resolve domain names I assume).
Details :
Pi's IP is 192.168.0.14 (note : same result whith DHCP or fixed IP)
My modem/router/gateway ip is 192.168.0.1
My internet provider's DNS are 89.2.0.1 and 89.2.0.2 (note : same result with google's DNS)
When wifi is simply activated, no problem.
When I activate Tethering (without rebooting) here is what I get :
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
89.2.0.1 192.168.0.1 255.255.255.255 UGH 0 0 0 eth0
89.2.0.2 192.168.0.1 255.255.255.255 UGH 0 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.0.1 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 tether
Everything is working fine, kodi addons work, I can ping Domain names, connected devices via wifi can navigate the web.
However, here is what I get after reboot :
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
89.2.0.1 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
89.2.0.2 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.0.1 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 tether
Can not ping domain names anymore (pi or connected devices), addons not working, can ping an ip.
So, if I understand this properly, after reboot, I get an incorrect gateway for the DNS.
Anyone with a solution would me my personal hero for the week end.
(I did quite a lot of reading about connman, connman's dns proxy and ip forwarding this morning, but it's all getting a bit mixed up in my poor brains, and I would like to avoid messing up my all system with bold experimentations. ^_^)
And thank you for this beautiful distro, BTW.