You are not logged in.

#1 2025-04-29 00:32:23

ipb52
Member
Registered: 2025-04-28
Posts: 6

[SOLVED] Avahi not working

https://wiki.archlinux.org/title/Avahi

>Install the avahi package and enable the avahi-daemon.service
>Avahi provides local hostname resolution using a "hostname.local" naming scheme. To enable it, install the nss-mdns package and start/enable avahi-daemon.service.
>Then, edit the file /etc/nsswitch.conf and change the hosts line to include mdns_minimal [NOTFOUND=return] before resolve and dns:

Did all of these.

>nss-mdns only works if the DNS server listed in /etc/resolv.conf returns NXDOMAIN to SOA queries for the "local" domain.[1]
>Check if your configured DNS server answers the SOA query for the "local" domain with NXDOMAIN first.

host -t SOA local responds with NXDOMAIN

>$ avahi-browse --all --ignore-local --resolve --terminate
>If this command yields nothing, it is likely due to a firewall blocking mDNS traffic.

This is what happens, but I do not have any firewall rules.

[root@arch ~]# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         

Also, this works fine from other Linux machines on my network, running Ubuntu.

No errors in avahi service logs.

Apr 28 11:18:37 arch avahi-daemon[547]: Found user 'avahi' (UID 972) and group 'avahi' (GID 972).
Apr 28 11:18:37 arch avahi-daemon[547]: Successfully dropped root privileges.
Apr 28 11:18:37 arch avahi-daemon[547]: avahi-daemon 0.8 starting up.
Apr 28 11:18:37 arch avahi-daemon[547]: Successfully called chroot().
Apr 28 11:18:37 arch avahi-daemon[547]: Successfully dropped remaining capabilities.
Apr 28 11:18:37 arch avahi-daemon[547]: No service file found in /etc/avahi/services.
Apr 28 11:18:37 arch avahi-daemon[547]: Joining mDNS multicast group on interface lo.IPv6 with address ::1.
Apr 28 11:18:37 arch avahi-daemon[547]: New relevant interface lo.IPv6 for mDNS.
Apr 28 11:18:37 arch avahi-daemon[547]: Joining mDNS multicast group on interface lo.IPv4 with address 127.0.0.1.
Apr 28 11:18:37 arch avahi-daemon[547]: New relevant interface lo.IPv4 for mDNS.
Apr 28 11:18:37 arch avahi-daemon[547]: Network interface enumeration completed.
Apr 28 11:18:37 arch avahi-daemon[547]: Registering new address record for ::1 on lo.*.
Apr 28 11:18:37 arch avahi-daemon[547]: Registering new address record for 127.0.0.1 on lo.IPv4.
Apr 28 11:18:37 arch systemd[1]: Starting Avahi mDNS/DNS-SD Stack...
Apr 28 11:18:37 arch systemd[1]: Started Avahi mDNS/DNS-SD Stack.
Apr 28 11:18:38 arch avahi-daemon[547]: Server startup complete. Host name is arch.local. Local service cookie is 1810694172.
Apr 28 11:18:42 arch avahi-daemon[547]: Joining mDNS multicast group on interface wlp4s0.IPv6 with address fe80::7cc3:cac5:4398:c36e.
Apr 28 11:18:42 arch avahi-daemon[547]: New relevant interface wlp4s0.IPv6 for mDNS.
Apr 28 11:18:42 arch avahi-daemon[547]: Registering new address record for fe80::7cc3:cac5:4398:c36e on wlp4s0.*.
Apr 28 11:18:43 arch avahi-daemon[547]: Joining mDNS multicast group on interface wlp4s0.IPv4 with address 192.168.6.0.
Apr 28 11:18:43 arch avahi-daemon[547]: New relevant interface wlp4s0.IPv4 for mDNS.
Apr 28 11:18:43 arch avahi-daemon[547]: Registering new address record for 192.168.6.0 on wlp4s0.IPv4.

What can I do next?

Last edited by ipb52 (2025-04-29 07:51:28)

Offline

#2 2025-04-29 07:43:25

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,138

Re: [SOLVED] Avahi not working

What can I do next?

Edit your post and use [code][/code] tags and "quote" tags.

nmap -p 5353 192.168.6.0/24

https://wiki.archlinux.org/title/Nftables ?
https://wiki.archlinux.org/title/Avahi# … om_working ?
https://wiki.archlinux.org/title/Avahi#KDE_Connect's_built_in_mDNS_conflicts ?
Does

avahi-resolve-host-name some-host-name.local

work?

Offline

#3 2025-04-29 07:50:53

ipb52
Member
Registered: 2025-04-28
Posts: 6

Re: [SOLVED] Avahi not working

Looks like nftables was installed automatically as a dependency of an optional dependency of KDE. Removing those 2 packages seems to fix it. Thanks!

Offline

Board footer

Powered by FluxBB