As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [mdns]

Multicast DNS (mDNS) protocol provides zero-configuration service for resolving host names in small networks. Use this tag when you are troubleshooting mDNS issues or are trying to understand mDNS's involvement in your situation.

Filter by
Sorted by
Tagged with
0 votes
0 answers
9 views

Prometheus cannot access remote exporters

I'm trying to set up an IoT network using Prometheus as the monitoring layer, and Avahi as the DNS service. I have Prometheus tracking node-exporter on localhost, but am unable to access either node-...
Darwin von Corax's user avatar
0 votes
1 answer
48 views

Forward DNS request to mDNS resolution

I use mDNS (with avahi, and libnss-mdns) a lot in my home network. However, I've tried to setup Prometheus, and it simply does not care about system resolution, it just takes the name servers from /...
Uko's user avatar
  • 111
0 votes
0 answers
399 views

How to fix stuck CUPS printer shared by remote

I have a server with two USB printers and multiple clients with Debian Bullseye. Clients are spread across LAN with same IP subnet and WLAN with a different subnet. The server shares both printer via ...
Daniel Böhmer's user avatar
0 votes
0 answers
122 views

Can multiple hosts share the same domain name in mDNS?

I know that DNS makes having multuple ip address bound to domain name (A record) trivial. Does mDNS (and it's common *nix implementations) have any problem with multiple hosts all claiming to be the ...
Philip Couling's user avatar
1 vote
1 answer
1k views

systemd-resolved as mDNS responder

I'm creating a custom distribution where I need a DNS responder. I'm already using systemd so I would like to use systemd-resolved to manage mDNS (the device should announce itself as capable of a ...
ArenaLor's user avatar
  • 141
0 votes
0 answers
179 views

Avahi-daemon can't reach the network

I am working on an embedded Linux device that is utilizing the avahi-daemon to publish services to other devices in the LAN. The device has 2 active network interfaces: eth0 and wlan0. I will call ...
Adam's user avatar
  • 11
0 votes
1 answer
228 views

Can't ping server that resolves using avahi-resolve

I have a server I've discovered from a Manjaro client using avahi named unaha-closp. However, when I ping it I get: ping: unaha-closp.local: Name or service not known In /etc/nsswitch.conf my hosts ...
Nate's user avatar
  • 135
4 votes
0 answers
687 views

mDNS on OpenBSD; resolving names in the ".local" domain using the standard resolver

I have a collection of macOS, Ubuntu Linux, and OpenBSD systems. They use mDNS to publish their dynamic IP addresses to the local network, making themselves available under the .local domain name. My ...
Kusalananda's user avatar
  • 316k
0 votes
1 answer
924 views

avahi-resolve works but mdns

I have an updated debian 11 (bullseye) setup and want to use avahi to connect to locally connected computers. avahi works, for example: avahi-resolve -n4 prag11mono.local gives prag11mono.local 10.0....
user855443's user avatar
1 vote
1 answer
336 views

Change priority of mdns4 hostname resolution

We are using a Raspberry Pi which has a Lidar connected to the ethernet port. The problem is that the mdns4_minimal resolves $(hosname).local into two IPs. One IP is obtained from the ethernet port (...
mbostic's user avatar
  • 113
0 votes
1 answer
2k views

Debian 11 failed to resolve .local names

Update (6 Dec 2021): It seems like there is a bug somewhere in avahi or libnss_mdns, see https://github.com/lathiat/nss-mdns/issues/81 Bad timing. I have 2 single board computers running Debian 11, ...
Desconocido's user avatar
3 votes
1 answer
1k views

Domain names ending with .local not resolved

I have a strange problem resolving .local hosts on my linux (ubuntu) desktop. (I noticed that because my printer stops working. I figured out that the IP address of the printer is resolved using mdns ...
Sven K.'s user avatar
  • 41
1 vote
1 answer
3k views

Ubuntu 20.04: Permanently disable a service start at boot

I am using Ubuntu 20.04. I have tried to stop and disable the avahi-daemon as below: $ sudo systemctl stop avahi-daemon.service $ sudo systemctl disable --now avahi-daemon.socket $ sudo systemctl ...
Adnan Ali's user avatar
  • 113
3 votes
2 answers
231 views

Why does getent default to .station if no TLD is specified?

With my current setup, I have a dnsmasq instance operating on my home server (Void Linux) and 3 GNU/Linux devices that use it as default dns (1 Manjaro, 1 Arch, 1 Linux Mint 20.1). Due to seemingly ...
Mek101's user avatar
  • 43
0 votes
1 answer
2k views

mDNS Services are not reachable in fritzbox network

i have a raspberry pi with multiple services running (e.g. Openhab, mosquitto, ...). each service should be locally reachable via a local subdomain (openhab.core.local, mosquitto.core.local, ...) Of ...
Peter C. Glade's user avatar
0 votes
0 answers
272 views

mDNS instead of IP in /etc/hosts?

I have a laptop that I want to communicate with from my other PC. Sometimes I need to connect with this laptop for various tasks (ssh, scp, ping, to reach some locally hosted website, etc. - dev stuff ...
mnj's user avatar
  • 271
1 vote
1 answer
501 views

intermittent mDNS resolution

I have a Raspberry Pi configured with mDNS that is connected to my home LAN (WiFi). I can ssh into it using sshpass -p raspberry ssh pi@raspberrypi.local only some times. The problem seems ...
TPPZ's user avatar
  • 455
1 vote
0 answers
222 views

How to avoid IP collisions of RNDIS devices?

Scenario is like this: I have a couple of devices using autoip and mdns over rndis (ethernet over USB) to connect to a host: You connect them with usb, the PC detects an rndis device, both ends choose ...
Philippos's user avatar
  • 13k
1 vote
2 answers
487 views

How to connect to libvirt VMs by name, instead of IP address

I want to connect to my libvirt virtual machines by name. I used to be able to do that - is it just not possible any more? I don't really want to muck around with extra manual configuration for each ...
sourcejedi's user avatar
  • 47.5k
6 votes
0 answers
1k views

systemd-resolved browse for mdns services

Can systemd-resolved be used to browse for mdns services the same way like avahi-browse? For example: $ avahi-browse _smb._tcp + eno1 IPv6 PC1 Microsoft Windows ...
sila_user's user avatar
1 vote
0 answers
412 views

How to configure avahi/nss_mdns to append .domain when using short names

I have environment with 2 or more servers (Ubuntu 18.04) each running avahi-daemon. Avahi configuration file looks like: [server] host-name=n11 domain-name=alocal browse-domains=alocal use-ipv4=yes ...
welibekov's user avatar
6 votes
2 answers
5k views

How to enable mDNS for IPv6 on Ubuntu and Debian?

Something I've noticed on all my home machines is that none of them can resolve .local addresses for IPv6. This seems odd because they can resolve them for IPv4 and all of my home machines have both ...
Philip Couling's user avatar
-1 votes
2 answers
537 views

MDNS multi-cast DNS and resolv.conf file

Can a MDNS ( multicast dns ) issue cause duplicate lines in the resolv.conf file? For example , we have the following resolv.conf file more /etc/resolv.conf search coronplesdf.hh.com server 108.16.1....
yael's user avatar
  • 12.4k
1 vote
1 answer
371 views

Can't find Ricoh All-in-One machines' scanners over network with Vuescan

I'm trying to access the scanner functionality of some Ricoh All-in-One printers from a workstation with Debian Stretch using Vuescan, but none of the means I've used can find any of them: neither ...
JORGE's user avatar
  • 11
1 vote
0 answers
151 views

Linux virtual network for experimenting with zeroconf networking

As a learning experience, I would implement simple versions of the services that allow zero configuration networking to take place: Claiming a link-local IP address from the 169.254/16 subnet ...
Daniel Näslund's user avatar
2 votes
1 answer
2k views

SSH is unable to resolve local domain names

I'm trying to connect to several computers via their hostnames since they get their IP via DHCP. I can successfully ping the machines via ping host-01.local. ping, wget, avahi-resolve and even ...
Kumpel Gras's user avatar
1 vote
0 answers
526 views

How does avahi enable mDNS and expose it via LAN with ipv6 compared to Apple's mDNSResponder?

I'm using a device with Linux 4.9 and systemd-networkd. With ipv4 everything is ok, so I want to talk only of ipv6. In fact, I completely disabled ipv4 to use ipv6 with DHCP. So this is my initial ...
Stefano Cappa's user avatar
3 votes
0 answers
815 views

How to configure ipv4 Link-Local on Linux with systemd-networkd without violating RFC3927 specifications?

I'm using an embedded device with Linux 4.9 and systemd. I configured systemd-networkd in this way: [Match] Name=eth0 [Network] DHCP=v4 [DHCPv4] UseHostname=false How can I setup Link-Local only ...
Stefano Cappa's user avatar
2 votes
1 answer
2k views

Debugging mDNS with Avahi across Linux and macOS

I have a network of elementary Loki (Ubuntu 16.04) computers at home which work great and can be accessed over mDNS/Avahi. ping juggernaut.local works as expected, and I can reach hosts both ways over ...
Naftuli Kay's user avatar
  • 38.2k
18 votes
5 answers
32k views

How to configure systemd-resolved for mdns multicast dns on local network?

Ubuntu 18 I've done a ton of research and am close to pulling this picture together but can't quite understand: How can I configure systemd-resolved for mdns? My goal specifically: to bring up a ...
Duke Dougal's user avatar
21 votes
3 answers
60k views

Can not resolve .local domains internal to my office LAN

On Linux Debian 9 I am able to resolve a specific local domain e.g. my.sample-domain.local using some commands like nslookup or host, but not with some other commands like ping or the Postgres client ...
TPPZ's user avatar
  • 455
1 vote
1 answer
1k views

Suppress "Name or service not known" on ping

I have several Raspberry Pi's named numerically (pi0, pi1, etc). They have static IP addresses, but I wanted a simple tool to check on them and make sure they were online even if they got the wrong IP ...
brndn2k's user avatar
  • 124
16 votes
2 answers
12k views

Mac OS command to resolve hostnames like "getent" on Linux

I would like a command that will resolve a hostname to an IP address, in the same way that a normal program would resolve the hostname. In other words, it has to take into account mDNS (.local) and /...
user31708's user avatar
  • 337
1 vote
1 answer
565 views

Reliable network client discovery (not mDNS?)

I have (Linux-based) devices on a DHCP/ IPv4 network whose UI is via browser/ mobile app (over the LAN.) The tricky part is discovery of the device's IP address. We've been trying to use mDNS/ DNS-...
thom_nic's user avatar
  • 547
6 votes
2 answers
904 views

Avahi seems to stop publishing/refreshing services after a while

Firstable, I looked up to several Q/A, i can ensure that the following points are fullfiled: IGMP snooping isn't filtered by switch/router. Bonjour services (mDNSResponder.exe) is granted and allowed ...
mdns's user avatar
  • 61
1 vote
0 answers
20 views

Any flavors with mDNS baked in?

Are there distributions of Linux that support .local address resolution out of the box? So far, I've only found distros with avahi plugins. I'd appreciate a base image with this kind of support ...
mcandre's user avatar
  • 364
2 votes
2 answers
576 views

Avahi on FreeBSD: Machine is Seen but Does Not See

I have a FreeBSD 10.3 box with Avahi 0.6.31 which is visible to the other machines on my network, but which is itself unable to resolve any names in the .local domain. That is to say, all the other ...
Darwin von Corax's user avatar
2 votes
1 answer
7k views

How to block broadcast messages (Apple's mDNS traffic)

I am in a network and a user is sending broadcast messages on udp port 5353. Regardless of what that is and what their purpose is, I decided to block all the traffic, so I ran: sudo iptables -A INPUT ...
orezvani's user avatar
  • 187
14 votes
3 answers
8k views

Multicasting multiple mdns names

What I would like is to use avahi-daemon to multicast more then one name. So that I could connect to it with domainA.local domainB.local. I could then reroute these addresses to a different web ...
larzz11's user avatar
  • 343
10 votes
1 answer
9k views

mDNS to/from a Docker container

I've made a Docker container which runs a forked-daapd (a DAAP server publishing over mDNS with a single port 3689 for HTTP requests) and exposes the port properly to the host operating system: sudo ...
Naftuli Kay's user avatar
  • 38.2k