-
-
Save davisford/5984768 to your computer and use it in GitHub Desktop.
sudo apt-get install avahi-daemon avahi-discover avahi-utils libnss-mdns mdns-scan |
I'm not sure what's wrong on my Ubuntu system.
avahi-browse -a
shows my five local mDNS devices on the network by their host names. However, if I tryavahi-resolve-host-name
on any one of them it gives me a "Timeout reached". I'm unable to ping any of them. I've installed everything described in this thread, and I've tried the various settings. The behavior remains unchanged. Any thoughts what I may be missing?
Try the hostname without the ".local". I have an Octopi server (its a 3D printer appliance) on a Raspberry Pi and sometimes octopi.local works and sometimes just octopi. Not sure why. Then I just recently installed Avahi on a virtual machine and no matter what I did hostname.local didn't work. Then I tried hostname by itself without a .local and viola! SSH and web browser can both reach it that way.
May I suggest the following as an all-in-one? sudo apt update && sudo apt-get install avahi-daemon avahi-discover avahi-utils libnss-mdns mdns-scan && sudo apt upgrade
. Once that looks good, sudo reboot
. That got me going on my new Ubuntu install on the TuringPi RK-1 modules.
Glad I stumbled on this.
avahi-daemon
alone worked for me on Ubuntu Server 20.04.3 LTS. I could even log in to Virtualmin/Webmin's control panel using the hostname after adding a rule for the mdns service in firewalld.Thank you.