Questions tagged [mdns]

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.

27 questions
61
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,015
  • 2
  • 10
  • 13
14
votes
1 answer

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
  • 181
  • 1
  • 1
  • 7
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
  • 1
  • 1
  • 8
4
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
  • 143
  • 1
  • 8
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
  • 633
  • 8
  • 10
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
  • 2
3
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
  • 101
  • 1
  • 5
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
  • 8
2
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
  • 155
  • 1
  • 2
  • 6
2
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,795
  • 5
  • 21
  • 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,766
  • 2
  • 29
  • 35
1
vote
0 answers

server.local resolving to wrong NIC / IP from mDNS

I run a headless 22.04 server with 2 NIC both are configured and plugged into the LAN one is configured as 192.168.0.1, router and other machines on this subnet the other is set as 192.168.2.1 for future home automation If I ping machines with…
Crighton
  • 362
  • 1
  • 9
1
vote
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
  • 891
  • 1
  • 6
  • 20
1
vote
1 answer

Kubuntu 20.04 not resolving .local names any more all of a sudden

Until some days ago, my Kubuntu 20.04 system could resolve .local device names on my local network without problems, as other Linux systems still do (on the same network). However, all of a sudden this stopped to work. If I type ping otherpc.local…
Mauro Molinari
  • 261
  • 3
  • 12
1
vote
1 answer

ubuntu doens't resolve usb device name

I have a ARM SBC running linux and configured to be connected to a pc via USB using rndis gadget. Inside my device I configured dnsmasq to provide to the host pc an ipv6 address, I also configured the avahi-daemon to give (via ipv6) the name of my…
p1906
  • 21
  • 3
1
2