WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: avahi can't resolve local  (Read 1313 times)

Offline destroyedlolo

  • Jr. Member
  • **
  • Posts: 50
    • destroyedlolo's website
avahi can't resolve local
« on: November 11, 2022, 09:06:52 AM »
Hello,

I installed and started avahi on my system, then modified /etc/nsswitch.conf as
Code: [Select]
hosts:       files mdns4_minimal [NOTFOUND=return] dns mdns4Which is the configuration working on my Gentoo boxes.

But, unfortunately, I can't resolve local machines :
Code: [Select]
tc@GrosSVG1:/etc$ nslookup pset.local
Server:    192.168.0.3
Address 1: 192.168.0.3

nslookup: can't resolve 'pset.local'
tc@GrosSVG1:/etc$ avahi-resolve-host-name pset.local
PSet.local 2a01:e0a:2dc:e160:3a9f:f869:eb10:e1f8

In addition, I don't understand why it got IPv6 IP whereas I did disabled it  >:(
Add
Code: [Select]
use-ipv6=noin /usr/local/etc/avahi/avahi-daemon.conf

Thanks for your tips

Offline destroyedlolo

  • Jr. Member
  • **
  • Posts: 50
    • destroyedlolo's website
Re: avahi can't resolve local
« Reply #1 on: November 11, 2022, 04:50:41 PM »
It seems it's normal for nslookup with is querying only "normal dns" and doesn't take in account nsswitch.
But ping doesn't work as well :

Code: [Select]
ping pset.local
ping: bad address 'pset.local'