LibreELEC, DNS and connman

  • Hi,

    I've been running the latest LibreELEC on a Pi for some time - works great - thanks!

    I recently changed my networking infrastructure (from Draytek to Ubiquiti) and LibreELEC started failing in a seemingly weird manner. I've spent a little time digging in to it and I'll do more if I'm not misunderstanding things.

    I have various DNS entries on my gateway server. On various computers/VMs which use DHCP, it uses the gateway for the DNS server (10.1.1.1) and I can use nslookup to see my mediaserver (a Synology NAS).

    However, on my Pi/LibreELEC (which gets address using DHCP), it uses the connman default DNS servers (8.8.8.8 etc.).

    If I change Kodi to use manual IP configuration and set IP address, DNS servers etc, the UI seems to show that all ok but connman still uses 8.8.8.8 so I can't see my NAS when I set up the media libraries. If I try to update connman using connman config... it seems to work ok (i.e. no errors) but doesn't change anything - the connman.conf file remains unchanged as does resolv.conf. As the conf file is on a RO filesystem, I can't update it manually (and I'd not expect to have to do that). On tp of that, I try to set the username/password for the NAS so I can delete/manage my library but that gets ignored in the UI (which seems odd - it previously worked for me and I'm sure there would be lots of people mentioning it if it was a bug).

    The Pi is running off a SD card and I'm wondering as I type this if that's reached the end of its life somehow and I just need to replace that.

    I've seen this which I'm reading as my expectations of behaviour are correct, but I'm happy to be corrected: DHCP with Manual DNS - Bug Reports - LibreELEC Forum

    I've had a look through the kodi log file and I see no errors about the settings but I can look further if I'm not making a schoolboy error!


    Many thanks

  • Look at /etc/resolv.conf and see what nameservers and search suffix domains are there.

    Here's mine:

    # Generated by Connection Manager
    search thebinks.com
    nameserver 192.168.0.5
    nameserver 192.168.0.15


    Connman creates this file and this is what Linux uses for resolving DNS. These are my DNS serves and local domain search order.


    Thanks,

    Jeff