Multicast DNS is a method for (generally) small networks to advertise services without user configuration. The two popular implementations are bonjour (used by Apple systems) avahi (used by linux)
Questions tagged [mdns]
282 questions
8
votes
1 answer
How does Windows know how to resolve mDNS queries?
When you install Bonjour for Windows you can resolve any ".local" mDNS name from anywhere in the system.
For example, you can "ping some_computer.local" and mDNSResponder.exe (Bonjour/mDNS Daemon) will respond.
However, mDNS operates on port 5353 so…

SofaKng
- 1,063
- 1
- 11
- 32
8
votes
2 answers
WebRTC does not work in the modern browsers when a peer is not behind a NAT because of the obfuscating host address
While troubleshooting my web app, I found draft-mdns-ice-candidates, which is about obfuscating addresses in host candidates by using mDNS.
And I found that when the two peer (agent L, agent R) is in a topology as in the Figure 7 below, the WebRTC…

Gorisanson
- 2,202
- 1
- 9
- 25
8
votes
1 answer
Redirecting ".local" subdomain to unicast DNS
I regularly access Windows domains that have been set up to use a domain under the .local top level name. This conflicts with Bonjour/Zeroconf which reserves .local for it's own use. A number of platforms support Bonjour out of the box (including…

Jason Weathered
- 7,762
- 2
- 41
- 37
7
votes
1 answer
Reroute mDNS query from WSL subnet to windows host subnet
Heya fellow coders/developers/networkers/Devops/...
I have an issue with an mDNS/DNS-SD setup in the context of WSL2 (Windows 10 2004 version)
I have a pretty simple setup at home with a main server and a Raspberry Pi, and I would like to activate…

Sisyphe
- 4,626
- 1
- 25
- 39
7
votes
0 answers
mDns error on iOS - error 49 Can't assign requested address
I'm using the multicast_dns package for Flutter and get an exception on iOS.
It works as expected on Android. I have tested this with the code example provided with the package, see https://pub.dev/packages/multicast_dns
The error is:
OS Error:…

Rod Gullickson
- 71
- 2
7
votes
6 answers
How to 'avahi-browse' from a docker container?
I'm running a container based on ubuntu:14.04, and I need to be able to use avahi-browse inside it. However:
(.env)root@8faa2c44e53e:/opt/cluster-manager# avahi-browse -a
Failed to create client object: Daemon not…

bart van deenen
- 661
- 6
- 16
7
votes
2 answers
android resolve .local (mDNS)
I'm looking for a solution to resolve .local host names with Android 4.0.4 (no NSD, due to API level 15). On the device I don't have any service to discover, just the hostname.
Could you please provide an example how to resolve? I integrated the…

MartoniczD
- 178
- 1
- 1
- 9
7
votes
2 answers
Why does mDNS (Bonjour, Avahi, etc) use UDP?
It seems to me that a lot of the problems with DNS, particularly security problems, have the root cause of DNS being implemented over UDP; for example the responder doesn't have to be who he says he is.
I don't know the details of mDNS protocol…

Chad
- 2,064
- 1
- 22
- 29
6
votes
4 answers
Not able to browse the mdns service created in esp8266
What I done till now is
I created mdns service in my nodemcu
... // code used to create the mdns service
if (mdns.begin("esp", WiFi.localIP()))
Serial.println("MDNS responder started");
server.begin();
…

Sachin
- 2,627
- 1
- 19
- 35
6
votes
0 answers
Docker network interface interferes with mDNS address
Ever since I installed docker on my Ubuntu machine, I've been having problems with the mDNS address it advertises.
In order for me to ssh into my box without knowing the ip, I need to use .local, which I need to have resolved to the eth0…

Olshansky
- 5,904
- 8
- 32
- 47
6
votes
1 answer
How to access raspberry.local in my android application?
I am running Django on my raspberry-pi, and I am using avahi-daemon to access my rpi on raspberrypi.local . On my Django I have made APIs for my android application to access via HTTP protocol. For example one of my http request url is: …

Aishwary Dhare
- 509
- 1
- 6
- 18
6
votes
1 answer
Dumping Avahi & Bonjour, DNS-SD Zone Files
I'm looking to make improvements to the Go library for mDNS: https://github.com/davecheney/mdns/
I've spoken with the author, who simply says "I got it to a point where it worked for me", and that's fine, well within the spirit of open source.
He…

Lee Hambley
- 6,270
- 5
- 49
- 81
5
votes
2 answers
dns-sd: how to manually register a remote service
I have a service on another remote system which is on another physical network and its multicast packages don't get to my local system, thus I don't see its DNS-SD published services.
I there a way I can manually register it on my local machine so…

Albert
- 65,406
- 61
- 242
- 386
5
votes
2 answers
How to resolve Ipv4 and Ipv6 from ".local" using mDNS in Android
I am trying to resolve IPv4 and IpV6 from ".local" using multicast DNS and I tried https://github.com/posicks/mdnsjava but it unable to resolve required ipv4/ipv6. Alternatively, I found one app which work for me but have no idea how it works.
App…

Tanmay Ranjan
- 318
- 2
- 8
5
votes
1 answer
How to get full host name in C#?
I have tried by following by it just give me single name. I want full name.
Ex. my system full name is "sys101.home.homeconsultancy.lan". Following code gives me just "sys101". I want full address "sys101.home.homeconsultancy.lan".
Here is my…

Nanji Mange
- 2,155
- 4
- 29
- 63