Moode Forum
[PROBLEM] Radio Stations do not play - Error = Could not resolve host (all stations do this) - Printable Version

+- Moode Forum (https://moodeaudio.org/forum)
+-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3)
+--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7)
+--- Thread: [PROBLEM] Radio Stations do not play - Error = Could not resolve host (all stations do this) (/showthread.php?tid=7007)

Pages: 1 2


RE: Radio Stations do not play - Error = Could not resolve host (all stations do this) - Tim Curtis - 10-31-2024

(10-31-2024, 10:25 PM)fdealexa Wrote: @Tim Curtis
Hi Tim,
it happens if you have a pi 3A (without Ethernet port): if you try to use the STATIC configuration for the WiFi port it does not save the DNS parameters.
Best regards and thanks,
Francesco

I can add to the TODO list to investigate.

Are the DNS settings missing from the sql table?
Code:
moodeutl -q "select pridns, secdns from cfg_network where iface='wlan0'"

If they are missing then the command above just returns a "|"


RE: Radio Stations do not play - Error = Could not resolve host (all stations do this) - fdealexa - 11-01-2024

Hi Tim,
please find below the result of the tests as you requested.

1: LOG Part in DHCP
[attachment=4127]

2: Static configuration in moOde 
[attachment=4128]

3: LOG Part with Static Configuration (after boot)
[attachment=4129]

4: Query result
[attachment=4130]

5: Log Part after edit resolvers
[attachment=4131]

I hope this helps.
Best regards and thanks,
Francesco


RE: Radio Stations do not play - Error = Could not resolve host (all stations do this) - Tim Curtis - 11-01-2024

It's a bug in moode Network Config. The format for static ip dns entries is not correct.

Currently it's like below and .etc/resolv.conf does not get updated
dns=1.1.1.1
dns=1.1.1.1,8.8.8.8

It should be like this using a semicolon which results in /etc/resolv.conf being updated
dns=1.1.1.1;
dns=1.1.1.1;8.8.8.8;

I'll push a commit later this morning which you can download and test.


RE: Radio Stations do not play - Error = Could not resolve host (all stations do this) - TheOldPresbyope - 11-01-2024

…and my quick test missed that because I have a dual IPv4/IPv6 network so my Pi simply asked my ISP’s IPv6 DNS server to resolve the radio stations. At least I remembered to ask about IPv6. Too bad I forgot why I thought it relevant.

Your solution —- fix the code. My solution —- drink more coffee maybe?

Sorry, @fdealexa and @Phil35 for the misdirection.

Regards,
Kent


RE: Radio Stations do not play - Error = Could not resolve host (all stations do this) - Tim Curtis - 11-01-2024

Install the updated file below, reboot, open Network Config, SAVE, then examine the .nmconnect file and /etc/resolv.conf to confirm the dns entries are correct.

Code:
sudo wget -q https://raw.githubusercontent.com/moode-player/moode/develop/www/inc/network.php -O /var/www/inc/network.php

Code:
cat /etc/resolv.conf

sudo cat /etc/NetworkManager/system-connections/YOUR_SSID.nmconnection

If the files look ok then reboot again.


RE: Radio Stations do not play - Error = Could not resolve host (all stations do this) - TheOldPresbyope - 11-01-2024

ummm, need root privileges to replace the /var/www/inc/network.php file, so maybe a sudo wget ...?


RE: Radio Stations do not play - Error = Could not resolve host (all stations do this) - Tim Curtis - 11-01-2024

Oops, post updated.


RE: Radio Stations do not play - Error = Could not resolve host (all stations do this) - fdealexa - 11-01-2024

(11-01-2024, 02:17 PM)TheOldPresbyope Wrote: …and my quick test missed that because I have a dual IPv4/IPv6 network so my Pi simply asked my ISP’s IPv6 DNS server to resolve the radio stations. At least I remembered to ask about IPv6. Too bad I forgot why I thought it relevant.

Your solution —- fix the code. My solution —- drink more coffee maybe?

Sorry, @fdealexa and @Phil35  for the misdirection.

Regards,
Kent

Hi Kent,
don't worry.
Best regards,
Francesco


RE: Radio Stations do not play - Error = Could not resolve host (all stations do this) - fdealexa - 11-01-2024

Hi Tim,
as usual everything is ok, now.
The .nmconnect file and /etc/resolv.conf are correct and the radio station hosts are correctly resolved.
Thanks a lot and best regards,
Francesco

[attachment=4133]