It’s a simple home network, and I had no problems with connectivity in general, but I was a little disappointed that it took a while for name resolution. “.local” about 5sec.
It was slow only on the local server with self name resolution. delay 5sec.
There were no problems with the client to begin with. iPad/Android/another Linux ↔ Manjaro. very fast.
After adjustment (I’m satisfied with the results)
After reviewing the settings, it was resolved result in less than a second.
I’ll accept this as good for my homework.
That’s the memo. Thanks to archwiki avahi.
eg,nemo,nautilus,samba,… etc…
5.05 secs to 275.88 millis. very fast.
I’m satisfied. Please teach me , I’d be happy if you have any opinions.
Maybe it’ll be useful to someone, or it’ll be an opportunity to reconsider.
memo
❱ time smbclient -L mainserver -U%
Sharename Type Comment
--------- ---- -------
MainTitle Disk MainTitle
CURRENT Disk CURRENT
Public Disk public
SDGs Disk sdgs
IPC$ IPC IPC Service (SAVAN)
SMB1 disabled -- no workgroup available
________________________________________________________
Executed in 38.42 millis fish external
❱ time smbclient -L mainserver.local -U%
________________________________________________________
Executed in 5.05 secs fish external
$ avahi-browse --all --ignore-local --resolve --terminate
code /etc/avahi/avahi-daemon.conf
use-ipv4=yes
#ME use-ipv6=yes
$ code /etc/nsswitch.conf
hosts: mymachines mdns4_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] wins files dns myhostname winbind #ME OKOK
querying a .local domain is essentially a broadcast
who has name bob.local
The broadcast is sent to the network broadcast address defined by the netmask e.g. 192.168.1.1/24 has 192.168.1.255 as broadcast address and the sender await a response.
The device with the name is responding to the broadcast address
ip.x.y.z has name bob.local
The package nss-mdns is an optional requirement for avahi - which in turn is required by NetworkManager and thus the package may not be synced to your system.
The avahi daemons may not be enabled so to get a fully functional zeroconf you may need sync an extra package and enable services as required.