Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Problem: Radio Stations do not play - Error = Could not resolve host (all stations do this)
#11
(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 "|"
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#12
Hi Tim,
please find below the result of the tests as you requested.

1: LOG Part in DHCP
   

2: Static configuration in moOde 
   

3: LOG Part with Static Configuration (after boot)
   

4: Query result
   

5: Log Part after edit resolvers
   

I hope this helps.
Best regards and thanks,
Francesco
Reply
#13
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.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#14
…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
Reply
#15
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.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#16
ummm, need root privileges to replace the /var/www/inc/network.php file, so maybe a sudo wget ...?
Reply
#17
Oops, post updated.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#18
(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
Reply
#19
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

   
Reply


Forum Jump: