imx8mm cannot ping dot local domains adv with avahi

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx8mm cannot ping dot local domains adv with avahi

Jump to solution
864 Views
mariusoctavian
Contributor III

I have my PC and  a R-PI on local network adv with avahi.

I also run avahi on imx8mm.

  • I can ping from R-PI and from PC all others,
    PC->R-PI
    • PC->imx8
    • R-PI->pc 
    • R-PI->imx8 by name
    • pc.local, rpi.local,  imx8.local

I can ping from imx8mm google.com, yahoo.com

BUT, I cannot PING from imx8mm any local  domains  .local


ping hp.local
ping R-PI-local

################## FROM R-PI to IMX8MM
marius@R-PI:~ $ ping imx8.local
PING imx8.local (192.168.1.253) 56(84) bytes of data.
64 bytes from imx8 (192.168.1.253): icmp_seq=1 ttl=64 time=308 ms

################### FROM IMX8 to RPI or HP
root@marius:# ping hp.local
ping: hp.local: Temporary failure in name resolution

root@marius:# ping R-PI.local
ping: R-PI.local: Temporary failure in name resolution

though on imx8

avahi-browse shows:

hostname = [hpp.local]
address = [192.168.1.191]

The avahi service status is the same on all

● avahi-daemon.service - Avahi mDNS/DNS-SD Stack
     Loaded: loaded (/usr/lib/systemd/system/avahi-daemon.service; enabled; ven>
     Active: active (running) since Wed 2022-07-13 11:30:48 UTC; 9 months 16 da>
TriggeredBy: ● avahi-daemon.socket
   Main PID: 327 (avahi-daemon)
     Status: "avahi-daemon 0.8 starting up."
      Tasks: 2 (limit: 1607)
     Memory: 2.1M
        CPU: 77ms
     CGroup: /system.slice/avahi-daemon.service
             ├─ 327 "avahi-daemon: running [imx8.local]"
             └─ 354 "avahi-daemon: chroot helper"

 

all of them are also running  dhclient
/sbin/dhclient wlan0

● dhclient.service - DHCP Client
     Loaded: loaded (/etc/systemd/system/dhclient.service; enabled; vendor pres>
     Active: active (running) since Wed 2022-07-13 11:31:21 UTC; 9 months 16 da>
    Process: 831 ExecStart=/sbin/dhclient wlan0 (code=exited, status=0/SUCCESS)
   Main PID: 832 (dhclient)
      Tasks: 1 (limit: 1607)
     Memory: 1.4M
        CPU: 113ms
     CGroup: /system.slice/dhclient.service
             └─ 832 /sbin/dhclient wlan0

 

 

 

Labels (1)
0 Kudos
Reply
1 Solution
829 Views
mariusoctavian
Contributor III

It took a while to figure it out.

 

I did this change in /etc/nsswitch.conf  and all good

# /etc/nsswitch.conf

passwd:         files systemd
group:          files [SUCCESS=merge] systemd
shadow:         files systemd

hosts:          files myhostname mdns4_minimal dns
#hosts:         mco- above line allows local pings on dot.local 
#resolve [!UNAVAIL=return] files myhostname mdns4_minimal [NOTFOUND=return] dns mdns4
networks:       files dns

protocols:      files
services:       files
ethers:         files
rpc:            files

View solution in original post

0 Kudos
Reply
1 Reply
830 Views
mariusoctavian
Contributor III

It took a while to figure it out.

 

I did this change in /etc/nsswitch.conf  and all good

# /etc/nsswitch.conf

passwd:         files systemd
group:          files [SUCCESS=merge] systemd
shadow:         files systemd

hosts:          files myhostname mdns4_minimal dns
#hosts:         mco- above line allows local pings on dot.local 
#resolve [!UNAVAIL=return] files myhostname mdns4_minimal [NOTFOUND=return] dns mdns4
networks:       files dns

protocols:      files
services:       files
ethers:         files
rpc:            files
0 Kudos
Reply