![]() |
[PROBLEM] DNS problem in Moode 8.1.2? - 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] DNS problem in Moode 8.1.2? (/showthread.php?tid=5027) |
DNS problem in Moode 8.1.2? - GlasgowGrip - 08-18-2022 Hello, I have an apparent problem with DNS not resolving host names in Moode 8.1.2. I have two Moode boxes: 1. Moode 7.6.1 running on an RPi 3B+ with a Hifiberry DAC+ Pro. It has been running great for 10 months (originally Moode 7.5) streaming internet radio and local FLAC's from an NFS share on my Synology NAS. This box resolves hostnames on the local network with no problem, as evidenced by using ping and by the NFS connection. 2. Moode 8.1.2 running on an RPi 4 4GB with a Hifiberry DAC+ Pro. This is a brand new installation of Moode 8.1.2 and it cannot resolve the host name for the NAS in the NFS path, nor for any other host on the network when I test using ping. However, if I replace the host name with the IP address of the NAS in the NFS path, then it works fine. It behaves the same whether connected through hardwired ethernet or through Wifi. So it seems like the Moode 8.1.2 box is somehow not connecting to DNS on my Router, even though it's on the same network and configured the same as the Moode 7.6.1 box. Any ideas would be greatly appreciated! Thanks - Steve RE: DNS problem in Moode 8.1.2? - GlasgowGrip - 08-18-2022 Update: some progress... what I didn't notice before is that when I use ping on the 7.6.1 box, it is actually appending ".local" to the host name that I enter on the command line. Based on that, I tried explicitly adding ".local" to the NFS path on the 8.1.2 box, and that does resolve correctly. To illustrate, this NFS path works on the 7.6.1 box but not on the 8.1.2 box: malpha//volume1/Music/FLAC To make it work on the 8.1.2 box, I have to edit NFS path to be this: malpha.local//volume1/Music/FLAC RE: DNS problem in Moode 8.1.2? - Nutul - 08-18-2022 (08-18-2022, 07:40 PM)GlasgowGrip Wrote: Update: some progress... what I didn't notice before is that when I use ping on the 7.6.1 box, it is actually appending ".local" to the host name that I enter on the command line. Based on that, I tried explicitly adding ".local" to the NFS path on the 8.1.2 box, and that does resolve correctly. Hi, you did it right. I believe this (the ".local" network path thing) is something bound to the 64bit linux. You can use it also on the 7.6.1 box, if you like, for consistency sake (it works so, as you notice the appended ".local"). I am not sure, but I think @Tim Curtis has done something about this for the auto-discovery of devices on the network, and therefore their selection from the drop-downs. Cheers, Al. RE: DNS problem in Moode 8.1.2? - the_bertrum - 08-19-2022 (08-18-2022, 08:31 PM)Nutul Wrote:(08-18-2022, 07:40 PM)GlasgowGrip Wrote: Update: some progress... what I didn't notice before is that when I use ping on the 7.6.1 box, it is actually appending ".local" to the host name that I enter on the command line. Based on that, I tried explicitly adding ".local" to the NFS path on the 8.1.2 box, and that does resolve correctly. There were improvements in the code for SMB protocol detection between 7 and 8 and they had the unfortunate side effect of requiring ".local"where previously it was not needed. I don't believe it is a requirement of 64bit so much, but all the 8 series players will need it. RE: DNS problem in Moode 8.1.2? - Tim Curtis - 08-19-2022 moOde code doesn't tinker with how Linux DNS works it just sets up a few conf files based on the content of the Network Config screen. Code: # /var/www/inc/network.php Host name resolution works just fine on my network and there is no need to use the .local suffix. It's because the OS in the Router I use dynamically adds host names for LAN clients assigned a DHCP address to its DNS cache and its DNS functions as a forwarding (proxy) DNS. I don't think all Router OS's implement dynamic DHCP updates to DNS and DNS proxy but instead rely on multicast DNS (host.local) to resolve LAN hosts and an external DNS for example 8.8.8.8 to resolve Internet hosts. There also may have been some changes in linux client DNS caching as part of the 5.15 kernels. RE: DNS problem in Moode 8.1.2? - TheOldPresbyope - 08-19-2022 It would seem that something changed in the Raspberry Pi OS code between Buster and Bullseye. Here are two moOde players --- "moode64" Code: S Y S T E M P A R A M E T E R S and "m761" Code: S Y S T E M P A R A M E T E R S These players have identical hosts entries in their /etc/nsswitch.conf files. This line enumerates the "databases" to be searched and the order of search. Code: hosts: files mdns4_minimal [NOTFOUND=return] dns wins mdns4 This means when looking up a hostname
Code: pi@m761:~ $ getent hosts moode64 Code: pi@moode64:~ $ getent hosts m761 Huh. Something changed between Buster and Bullseye. Sorry, I don't know what. I use mDNS exclusively on my LAN (no local DNS resolver on my ISP-provided router) and always append .local to hostnames. Someday I'll set up a local DNS service, when I've run out of other things to do!) Regards, Kent ETA - oops, I mean to use a vanilla moOde 8.1.2 player in this example but I see I picked my one player with more recent git repo contents "gulped" in: it reported as release 8.2.0. The result is the same with my 8.1.2 players. RE: DNS problem in Moode 8.1.2? - GlasgowGrip - 08-19-2022 (08-19-2022, 07:26 AM)the_bertrum Wrote: There were improvements in the code for SMB protocol detection between 7 and 8 and they had the unfortunate side effect of requiring ".local"where previously it was not needed. I don't believe it is a requirement of 64bit so much, but all the 8 series players will need it. (08-19-2022, 01:18 PM)TheOldPresbyope Wrote: Huh. Something changed between Buster and Bullseye. Sorry, I don't know what. I use mDNS exclusively on my LAN (no local DNS resolver on my ISP-provided router) and always append .local to hostnames. Someday I'll set up a local DNS service, when I've run out of other things to do!) Thank you @the_bertrum, that seems to make sense. And thank you Kent @TheOldPresbyope for confirmation that you are seeing the same behavior. So based on that and what @Tim Curtis added, my takeaway is that all 8-series players will need to add the .local suffix explicitly unless they are on a home network with a router that provides the dynamic DNS caching that Tim mentioned. I am running a Netgear Nighthawk R6700v2 router with latest firmware updates, but apparently it does not provide that function (or is misconfigured?). Anyway, good enough, I will add the .local suffix explicitly in my NFS share path in moOde and be done with it. Easy enough since I don't want to rely on using a fixed IP address. And just thinking out loud - possibly this should be mentioned in the setup guide going forward for moOde 8.x? Thanks again to you all for weighing in - what a great community! Cheers, Steve RE: DNS problem in Moode 8.1.2? - Tim Curtis - 08-19-2022 (08-19-2022, 01:18 PM)TheOldPresbyope Wrote: It would seem that something changed in the Raspberry Pi OS code between Buster and Bullseye. Interesting. I forgot about nsswitch. I'll look into it. RE: DNS problem in Moode 8.1.2? - TheOldPresbyope - 08-19-2022 In the bad ol' days---or good ol' days, depending on your point of view---we regularly had to exchange hosts files containing the hostnames and their IP addresses of all the Unix workstations on our organization's network. Then Sun Microsystems won the day with NIS aka Sun Yellow Pages. The nsswitch function glued it together with DNS and later mDNS. In some ways things got better "bigly"; in other ways not so much ![]() Regards, Kent RE: DNS problem in Moode 8.1.2? - Nutul - 08-19-2022 (08-19-2022, 03:03 PM)TheOldPresbyope Wrote: In the bad ol' days---or good ol' days, depending on your point of view---we regularly had to exchange hosts files containing the hostnames and their IP addresses of all the Unix workstations on our organization's network. Kent... thank you so much for remembering me that I am old school. And not only school, in the sentence. I was almost there (you probably a handful of years before me). Fun indeed (ok, not all bells and whistles, but fun, anyway). Cheers, Al. |