Sample Header Ad - 728x90

Unable to ping mDNS hostname

2 votes
1 answer
841 views
I have an application which has an mDNS server running on an ESP32 device. Its hostname is esp32-mdns.local. I can ping this hostname from Windows. However, it is not possible from my Ubuntu 22.04 system. I have re-installed the avahi daemon and the utils again. When I do avahi-browse --all : avahi-browse -all + wlp0s20f3 IPv6 192-168-178-1 Microsoft Windows Network local + wlp0s20f3 IPv6 fritz-box Microsoft Windows Network local + wlp0s20f3 IPv4 192-168-178-1 Microsoft Windows Network local + wlp0s20f3 IPv4 fritz-box Microsoft Windows Network local + wlp0s20f3 IPv6 ESP32-WebServer1 Web Site local + wlp0s20f3 IPv6 ESP32-WebServer Web Site local + wlp0s20f3 IPv4 ESP32-WebServer1 Web Site local + wlp0s20f3 IPv4 ESP32-WebServer Web Site local Then avahi-resolve --name esp32-mdns.local : avahi-resolve --name esp32-mdns.local esp32-mdns.local 192.168.178.71 So, the name is getting resolved, but when I ping it : ping esp32-mdns.local ping: esp32-mdns.local: Name or service not known I can ping the IP address directly, but not the hostname. Here is my /etc/avahi/avahi-daemon.conf file. Am I missing something? Or what could be the issue? Thanks. # avahi is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public # License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with avahi; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 # USA. # See avahi-daemon.conf(5) for more information on this configuration # file! [server] #host-name=foo #domain-name=local #browse-domains=0pointer.de, zeroconf.org use-ipv4=yes use-ipv6=yes #allow-interfaces=eth0 #deny-interfaces=eth1 #check-response-ttl=no #use-iff-running=no #enable-dbus=yes #disallow-other-stacks=no #allow-point-to-point=no #cache-entries-max=4096 #clients-max=4096 #objects-per-client-max=1024 #entries-per-entry-group-max=32 ratelimit-interval-usec=1000000 ratelimit-burst=1000 [wide-area] enable-wide-area=yes [publish] #disable-publishing=no #disable-user-service-publishing=no
Asked by Engineer999 (1233 rep)
Dec 16, 2024, 09:03 PM
Last activity: Dec 17, 2024, 06:08 AM