Tumbleweed mDNS not working?

Hi all, new member here. I’m a long-term Linux user coming from the Ubuntu ecosystem (Kubuntu, neon). I’m trying to get Tumbleweed set up on my new laptop and cant figure out how to get mDNS working on my local network. It doesn’t recognize ‘hostname.local’ for a local system.

DNS with the outside world works fine, and addressing local systems via IP address works of course.

The problem is that I’m not familiar with the OpenSUSE tools and how to configure networking properly.

I’ve done a lot of searching on the topic and haven’t found any clues so far.
Any suggestions would be appreciated!

Thanks

Welcome to openSUSE Forums.

  1. Check that the firewall is suitably configured to allow mdns…
    sudo firewall-cmd --list-all

  2. Check that /etc/nsswitch.conf contains the requisite mdns or mdns_minimal entry…
    grep hosts /etc/nsswitch.conf

For reference:
hosts: files mdns_minimal [NOTFOUND=return] dns

1 Like
  1. ~> sudo firewall-cmd --list-all

public (default, active)
target: default
ingress-priority: 0
egress-priority: 0
icmp-block-inversion: no
interfaces: enp0s13f0u3
sources:
services: dhcpv6-client
ports:
protocols:
forward: yes
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:

  1. ~> grep hosts /etc/nsswitch.conf

# Valid databases are: aliases, ethers, group, gshadow, hosts,
hosts: files mdns_minimal [NOTFOUND=return] dns

Is this configured correctly?
(I appologize for the formatting, I’m not sure how that works)

Thanks for your help

It works exactly the same way as on ask.ubuntu.com using the same Markdown. And some other Ubuntu forums are using Discourse as well, so you should be familiar with it.

Allow mds traffic (mDNS and DNS-SD) through the firewall:
sudo firewall-cmd --permanent --add-service=mdns
sudo firewall-cmd --reload
Avahi hosts should be discoverable after that.

1 Like

Thank you! That did it!

In all of my *buntu installations over the years, mDNS always worked “out of the box”

I appreciate the help.

(now I need to figure out how to mark the thread as resolved)

Click the tick box on the relevant post…
image

1 Like

Ubuntu (desktop) does not have any firewall active by default. I am not sure if any firewall utility is even installed by default (I do not count iptables as “firewall utility”).

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.