Guy Posted November 24, 2022 Posted November 24, 2022 I am trying to ping device on my network by device name, it works on my Linux computer and does not work on my NPi R1. Expecting pinging the device name will retrieve ping data including my device local IP. $ ping HPC0180319938E.local ping: HPC0180319938E.local: Name or service not known I preformed sudo apt update && sudo apt upgrade Not sure how to check ping command version. _ _ ____ _ ____ _ | \ | | _ \(_) | _ \/ | | \| | |_) | | | |_) | | | |\ | __/| | | _ <| | |_| \_|_| |_| |_| \_\_| Welcome to Armbian 22.08.8 Focal with Linux 5.15.74-sunxi 0 Quote
Werner Posted November 25, 2022 Posted November 25, 2022 Most likely userspace issue. Is avahi daemon running? 0 Quote
Solution Myron Posted November 27, 2022 Solution Posted November 27, 2022 Looks like I've found a solution. See: https://askubuntu.com/questions/772774/unknown-host-even-though-avahi-is-installed-and-running I installed libnss-mdns and altered the hosts: line in /etc/nsswitch.conf to read: hosts: files mymachines mdns4 [NOTFOUND=return] dns myhostname resolving mdns names is now working for me. 0 Quote
Guy Posted November 27, 2022 Author Posted November 27, 2022 (edited) It looks like even though avahi daemon was running I was missing libnss-mdns so just installing it using sudo apt install libnss-mdns solved it. In my case /etc/nsswitch.conf already had similar content, maybe from my previous attempts to solve this hosts: files mymachines mdns4_minimal [NOTFOUND=return] dns myhostname Thanks for all the help Edited November 27, 2022 by Guy 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.