Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
I can't resolve .local names with Avahi and mdns
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
yuuki102
n00b
n00b


Joined: 21 Sep 2021
Posts: 32

PostPosted: Fri Sep 27, 2024 4:26 pm    Post subject: I can't resolve .local names with Avahi and mdns Reply with quote

Hello,

I have the sys-auth/nss-mdns package installed to resolve .local names. But it isn't working. Every time I try to ping, it returns "Host name not known". But a normal DNS ping to an Internet server works.
Code:

miohatsume@fedora-msi ~ $ ping mii-server.local
ping: mii-server.local: Name or service not known
helena@gentoo-msi ~ $ ping raspberrypi.local
ping: raspberrypi.local: Name or service not known
helena@gentoo-msi ~ $ ping www.google.com
PING www.google.com (142.250.187.228) 56(84) bytes of data.
64 bytes from lhr25s34-in-f4.1e100.net (142.250.187.228): icmp_seq=1 ttl=117 time=17.5 ms
64 bytes from lhr25s34-in-f4.1e100.net (142.250.187.228): icmp_seq=2 ttl=117 time=21.0 ms


I don't understand why it isn't working. I have mdns declared on my nss config.

Code:

hosts:          files mdns4_minimal [NOTFOUND=return] dns
networks:   files


In addition to that, when I append it with mdns4, other Linux boxes in the network can ping my hostname just fine. So why can't I ping them?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum