Skip to main content

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
40 views

"avahi-browse --all" shows less than a specific service?

$ avahi-browse --terminate --all $ avahi-browse --terminate _ipp._tcp + enp2s0 IPv4 Canon iR C1538i Internet Printer local + enp2s0 IPv4 Canon iR1643i II Internet Printer ...
Robert Siemer's user avatar
0 votes
0 answers
84 views

Avahi mDNS blocked in queue

Im running avahi-daemon 0.8 on a arm64 embedded device (Ubuntu 20.04.6). If I acces the device in browser with IP directly in loads in 2ms maximum, but if use the host-name created by me with '.local' ...
Gabi5537's user avatar
0 votes
1 answer
53 views

Issues with .local domains

I know from research that .local domains are a considered a very bad idea. And yet, I am trying to use two different astronomy applications designed to run on a Raspberry Pi for which the stated ...
Steve Cohen's user avatar
0 votes
1 answer
637 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
1 vote
0 answers
1k 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
3 votes
1 answer
3k 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
  • 181
0 votes
1 answer
489 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
  • 154
4 votes
1 answer
1k 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
  • 337k
1 vote
2 answers
2k 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
687 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 (...
user avatar
0 votes
1 answer
4k 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
2k 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
2 votes
1 answer
7k 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
  • 123
3 votes
2 answers
281 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
4k 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
462 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
  • 291
1 vote
1 answer
737 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 [email protected] only some times. The problem seems ...
TPPZ's user avatar
  • 557
1 vote
0 answers
277 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
  • 13.5k
1 vote
2 answers
938 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
  • 50.9k
6 votes
0 answers
2k 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
596 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
7k 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
677 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
  • 13.3k
1 vote
1 answer
442 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
184 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
3k 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 ...
Anni Lua's user avatar
1 vote
0 answers
557 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
939 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
3 votes
1 answer
3k 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
21 votes
6 answers
44k 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
  • 1,055
22 votes
3 answers
69k 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
  • 557
1 vote
1 answer
2k 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
20 votes
2 answers
14k 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
  • 407
1 vote
1 answer
638 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
  • 567
6 votes
2 answers
1k 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
21 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
  • 384
2 votes
2 answers
632 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
8k 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
15 votes
3 answers
10k 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
  • 353
10 votes
1 answer
10k 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