Thank you for your donation!


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


Problem: DNS problem in Moode 8.1.2?
#6
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

moOde release        = 8.2.0 2022-MM-DD
RaspiOS            = 11.3
Linux kernel        = 5.15.32-v8+ #1538
Platform        = Pi-4B 1.1 2GB
Architecture        = aarch64 (64-bit)
System uptime        = up 1 day, 20 hours, 54 minutes
Timezone        = America/New_York
Current time        = 2022-08-19 08:45:10

Host name        = moode64
Ethernet address    = 10.0.0.4

and 

"m761"
Code:
S Y S T E M   P A R A M E T E R S

moOde release        = 7.6.1 2021-12-17
RaspiOS            = 10.6
Linux kernel        = 5.4.77-v7+ #1371
Platform        = Pi-3A+ 1.0 512MB
Architecture        = armv7l (32-bit)
System uptime        = up 11 hours, 47 minutes
Timezone        = America/New_York
Current time        = 2022-08-19 08:46:08

Host name        = m761
Ethernet address    = unassigned
Ethernet MAC        = no adapter
WLAN address        = 10.0.0.209

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
  • search first the local /etc/hosts file; if not found then go to next database
  • if the hostname has the .local suffix, search the mDNS database (resolving only .local names); if not found, return from lookup (e.g., stop searching)
  • search using dns; if not found go to next database
  • search using wins; if not found then go to next database
  • finally, try the full mdns4 service (in case it's a "non-local" mDNS hostname we're searching for. ETA - I'm not sure what this means.).
Let's see what happens when we ask each player to look up the other player's hostname

Code:
pi@m761:~ $ getent hosts moode64
10.0.0.4        moode64
pi@m761:~ $

Code:
pi@moode64:~ $ getent hosts m761
pi@moode64:~ $

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.
Reply


Messages In This Thread
DNS problem in Moode 8.1.2? - by GlasgowGrip - 08-18-2022, 06:25 PM
RE: DNS problem in Moode 8.1.2? - by GlasgowGrip - 08-18-2022, 07:40 PM
RE: DNS problem in Moode 8.1.2? - by Nutul - 08-18-2022, 08:31 PM
RE: DNS problem in Moode 8.1.2? - by the_bertrum - 08-19-2022, 07:26 AM
RE: DNS problem in Moode 8.1.2? - by Tim Curtis - 08-19-2022, 11:53 AM
RE: DNS problem in Moode 8.1.2? - by TheOldPresbyope - 08-19-2022, 01:18 PM
RE: DNS problem in Moode 8.1.2? - by Tim Curtis - 08-19-2022, 02:32 PM
RE: DNS problem in Moode 8.1.2? - by GlasgowGrip - 08-19-2022, 01:41 PM
RE: DNS problem in Moode 8.1.2? - by Nutul - 08-19-2022, 10:22 PM

Forum Jump: