LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-30-2019, 07:20 AM   #1
ugjka
Member
 
Registered: May 2015
Location: Latvia
Distribution: Arch, Centos
Posts: 368
Blog Entries: 5

Rep: Reputation: 264Reputation: 264Reputation: 264
Angry ARMBIAN: ping to mdns host "System error"


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
 
Old 04-30-2019, 07:25 AM   #2
ugjka
Member
 
Registered: May 2015
Location: Latvia
Distribution: Arch, Centos
Posts: 368

Original Poster
Blog Entries: 5

Rep: Reputation: 264Reputation: 264Reputation: 264
Ok, i didn't digest that strace output good enough

this line:
Code:
open("/lib/tls/v7l/neon/libnss_mymachines.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
I had to install libnss-mymachines and now everything works
 
  


Reply

Tags
armbian, avahi, mdns, ping, system error



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: 3 MPD clients for an Armbian music server LXer Syndicated Linux News 0 07-11-2017 10:26 AM
LXer: How to power a music server with Armbian LXer Syndicated Linux News 0 06-17-2017 02:18 PM
guset can ping the host but host can't ping the guest . linuxreza Linux - Newbie 1 07-28-2012 02:47 PM
I cannot ping with command 'ping IP' address but can ping with 'ping IP -I eth0' sanketmlad Linux - Networking 2 07-15-2011 05:32 AM
ping works, host works, ping host does not dublin212 Linux - Networking 3 03-31-2003 11:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration