I have Armbian on my orangepizero, i have avahi daemon set up and installed libnss-mdns
I configured my nsswitch.conf
Code:
ugjka@orangepizero:~$ cat /etc/nsswitch.conf
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.
passwd: compat
group: compat
shadow: compat
gshadow: files
hosts: files mymachines myhostname mdns4_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] dns wins
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis
When i ping other devices in my network that also have avahi set up i get the following errror:
Code:
ugjka@orangepizero:~$ ping archee.local
ping: archee.local: System error
Same thing but with strace:
https://paste.ugjka.net/raw/xaxu
In the strace output you can see that it find the ip adress of archee.local
Code:
read(5, "+ 4 0 archee.local 192.168.1.8\n", 4096) = 31
But then it somehow fails to ping that ip adress
When i ping that ip address it works
Code:
ugjka@orangepizero:~$ ping 192.168.1.8
PING 192.168.1.8 (192.168.1.8) 56(84) bytes of data.
64 bytes from 192.168.1.8: icmp_seq=1 ttl=64 time=3.16 ms
64 bytes from 192.168.1.8: icmp_seq=2 ttl=64 time=2.65 ms
^C
--- 192.168.1.8 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1002ms
rtt min/avg/max/mdev = 2.656/2.910/3.165/0.260 ms
when i use
ssh archee.local it resolves the ip address and ssh's in. So it finds the host.
But why doesn't ping work? I'm lost here
The same problems repeats when i try to ping other avahi enabled devices in my network