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
99 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 ...
user avatar
  • 267k
0 votes
1 answer
74 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....
user avatar
1 vote
1 answer
70 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
  • 113
-1 votes
1 answer
410 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, ...
user avatar
3 votes
1 answer
226 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 ...
user avatar
  • 41
0 votes
1 answer
1k 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 ...
user avatar
  • 103
3 votes
2 answers
151 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 ...
user avatar
  • 43
0 votes
1 answer
844 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 ...
user avatar
0 votes
0 answers
63 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 ...
user avatar
  • 259
0 votes
1 answer
342 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 ...
user avatar
  • 355
1 vote
0 answers
102 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 ...
user avatar
  • 11.1k
1 vote
2 answers
149 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 ...
user avatar
  • 44.3k
5 votes
0 answers
610 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 ...
user avatar
1 vote
0 answers
198 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 ...
user avatar
5 votes
2 answers
4k 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 ...
user avatar
-1 votes
2 answers
311 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....
user avatar
  • 10.9k
1 vote
1 answer
277 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 ...
user avatar
  • 11
1 vote
0 answers
98 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 ...
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 ...
user avatar
1 vote
0 answers
463 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 ...
user avatar
3 votes
0 answers
636 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 ...
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 ...
user avatar
  • 35.5k
16 votes
5 answers
22k 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 ...
user avatar
17 votes
3 answers
50k 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 ...
user avatar
  • 355
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 ...
user avatar
  • 124
16 votes
2 answers
9k 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 /...
user avatar
  • 305
0 votes
1 answer
484 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-...
user avatar
  • 467
3 votes
0 answers
648 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 ...
user avatar
  • 31
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 ...
user avatar
  • 314
2 votes
2 answers
473 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 ...
user avatar
2 votes
1 answer
6k 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 ...
user avatar
  • 187
11 votes
3 answers
7k 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 ...
user avatar
  • 313
9 votes
1 answer
8k 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 ...
user avatar
  • 35.5k