Questions related to Multicast DNS(mDNS), a protocol which resolves host names to IP addresses within small networks that do not include a local name server.
Questions tagged [mdns]
31 questions
62
votes
4 answers
nslookup finds ip for a hostname in .local domain, but ping does not
I know this looks like all the other "can ping via ip but not dns" questions, but those didnt really help me at all.
Also, having hosts files in all machines is not doable as this server will eventually handle a lot of computers connecting to it.
I…
Fernando
- 1,025
16
votes
2 answers
What is mDNS? Is it possible to make mDNS query without mdns service running?
Recently I came across avahi-daemon and mdns....
Do I need a mDNS client in my system to connect with mDNS server?
Or is there any other way to connect a computer without mDNS client to a mDNS server computer (hostname.local)?
Is it possible to ping…
Abhi balachandra
- 311
6
votes
0 answers
Avahi local name collision
I have defined a subnetwork on my server, using ip aliases for a single ethernet card.
Today, after a reboot, the avahi daemon is not resolving host names anymore.
The hosts defined in /etc/avahi/hosts:
172.17.0.10 loki.local
172.17.0.11…
G B
- 163
5
votes
2 answers
.local hostname resolution is slow on 20.04
Resolving .local hostnames has become slow since updated from 18.04 to 20.04. Things as simple as:
ping flibble.local
work immediately in 18.04, but take about 5 seconds or so in 20.04, after which it behaves normally. However, it still takes…
Bill Barton
- 141
- 1
- 5
4
votes
2 answers
avahi dns doesn't work
I'm trying to get dns resolution of Avahi .local domains.
I can do:
$ avahi-resolve-host-name redacted.local
Redacted.local 10.xx.xx.xx
but not
ping redacted.local
ping: redacted.local: Name or service not known
Thomas Grainger
- 191
3
votes
1 answer
Can't ssh into local computer by hostname
I have a desktop and a laptop PC. I can ssh from my laptop into my desktop by typing ssh desktop.local, but it doesn't work the other way round (I have to look up the ip address via ip a on desktop then type ssh 192.168.0.15 on laptop).
Sadly…
xjcl
- 653
- 9
- 11
3
votes
1 answer
Multicast DNS applied globally but not working
I have a homelab that I exposes itself to homeserver.local. It suddenly stopped working this morning, and I've been debugging it but can't quite pinpoint the reason.
The server has two network adapters, enp2s0 and enp3s0, but only enp3s0 is active…
Luiz K.
- 145
3
votes
0 answers
Fresh 21.10 install cannot resolve .local hostnames
I am having a hard time getting a fresh Kubuntu 21.10 install to access other machines on my network using hostname.local resolution.
I have the following:
Kubuntu 21.10 install named jwork - this is the problem machine
Ubuntu Server 20.04 install…
terrarum
- 31
3
votes
0 answers
How to install and configure mDNS on Ubuntu 18.04?
According to the link.
https://www.howtoinstall.me/ubuntu/18-04/avahi-daemon/
The method it provides for installing mDNS consists of just two lines of command:
sudo apt update
sudo apt install avahi-daemon
According to the link:
What is mDNS? Is it…
Andrew
- 165
3
votes
2 answers
Avahi / mDNS not working
I am having issues getting my servers to talk to each other via mDNS / Avahi.
I have two servers, an Ubuntu Server and a Raspberry PI.
user@WORKCOM9001~ ()$ sudo service avahi-daemon status
● avahi-daemon.service - Avahi mDNS/DNS-SD Stack
…
Startec
- 1,935
3
votes
2 answers
avahi name resolution not respected for subdomains in 19.04
This seems to be a behavior difference which only started in either 18.10 or 19.04.
While avahi-resolve --name my.subdomain.local returns a valid IP address and is working it doesn't work outside of that, i.e. ping, curl or chrome.
The name…
platzhirsch
- 133
2
votes
1 answer
How do I find out whether I have a .local (mDNS) address, and what it is?
My impression is that Ubuntu 22.04 comes with avahi preinstalled. How do I most easily check whether the machine I'm using has a .local address, and if so, what that address is? I'm asking under the assumption that the common case is a single .local…
Andreas
- 1,048
- 1
- 11
- 31
1
vote
1 answer
.local name resolution only works during reboot of server
On a client machine, I run the following command:
while true ; do ping -c 1 server_name.local. ; sleep 1s ; done
It outputs:
ping: unknown host server_name.local.
...except that when I reboot the server, there are a few successful pings just…
Brent Bradburn
- 2,906
1
vote
0 answers
gnome-user-share based file sharing
I have been a unix user since the early '80s and an Ubuntu user since some time in the '00s and I have never been stumped by a problem the way this has stumped me.
I recently did clean (erase the disk and start over) installs on 4 PCs. They are all…
1
vote
0 answers
mDNS only on IPv6
Ubuntu Version: Ubuntu 22.04.4 LTS
I'm having a weird issue with mDNS running on this host.
Using a discover tool on Macos I see the mDNS announcement from this host only on IPv6 and nothing on IPv4.
Reason for this troubleshooting was that I can't…
f0rd42
- 111