Pi4 LibreELEC not able to find DNS

  • Hi community,

    There are quite a few similar, yet different problems around in this forum: I am not able to establish internet connection when using my static IP address.

    I have spent a long time setting up the Pi4 and even longer to find a solution online, however without success.

    I got the following settings:

    • static IP address
    • DNS defined as 8.8.8.8 and 8.8.4.4
    • in the settings I set a limit of 30 seconds to await booting, until the network connection is established
    • The device is connected to the web ("online" and earth icon)

    This actually looks all good, right? If I look at the clock I can see that there was no sync, using YouTube or other apps does not work either - due to the lack of internet connection ...

    Now the fun part:

    If I connect my phone (hotspot), hence not static IP, no specific DNS I am able to use all the addons (time syncs immediately too). Turning off the phone hotspot and re-connecting to the Wifi again gives me... proper connection. I am then able to use the services I just called through the hotspot connection through Wifi /shrug

    In other words, the Pi 4 seems to "remember" how to resolve netflix.com or youtube.com from the previous phone connection, and then works in the wifi too - until rebooted.

    If I restart the device, it is no name resolving (but "online" in network settings) all over again. Settings are as described above, but the pi is not able to communicate outside the local network.

    This behavior makes me assume, that the pi is not able to resolve the url or contact the DNS.

    I am far from an expert, so please just let me know if I mixed things up, or made myself not clear enough.

    Any help greatly appreciated. Thanks a lot

  • thanks chewitt and apologies for the delayed reply!

    It seems that the device cached the old settings from the initial network ( the raspberry was set up in a network without any network restrictions ) and then could not handle other network.

    While I could not determine the original problem, setting up the device in the network where it is used may be the safest way to go.

    If anyone has some commands that allow resetting all network related settings, it might be a great thing to share here for future visitors encountering similar issues.

  • Hi iconic23, the same issue happened to me when I switched over to a new mesh router. The odroid device cached the old settings from my previous network which is using the static google dns address. Managed to resolved the issue by resetting system settings defaults. Go to LE Settings->System->Reset System Settings to defaults (soft reset). This will reset your network settings and reboot the device. After reboot, system will ask for a Network connection before you proceed. Connect to your brand new network and that’s it! DNSes on your device will use the new network settings. Hope this helps.