mdns icon indicating copy to clipboard operation
mdns copied to clipboard

Subdomains don't seem to work?

Open darkvertex opened this issue 1 year ago • 3 comments

Your environment.

  • Version: 2.0.7

What did you do?

Hi! I took the example server: https://github.com/pion/mdns/blob/master/examples/server/main.go and changed the line 37 to:

LocalNames: []string{"pion-test.local", "potato.pion-test.local"},

and no errors happen but pion-test.local resolves yet potato.pion-test.local does not.

What did you expect?

I would expect subdomains to work. I've seen other mdns tools that can publish blabla.somename.local so subdomains are technically legal in mDNS and I'd expect them to work here.

darkvertex avatar Aug 29 '24 18:08 darkvertex

Are you trying to access those subdomains on Windows? Unfortunately, subdomains in mDNS lookups are not supported in Windows. Try looking those up using Linux or OSX to see if they work there.

jgkawell avatar Sep 02 '24 22:09 jgkawell

Damn, that's unfortunate they don't work in Windows at all.

I didn't have success via WSL running Ubuntu but I think that uses Windows networking so it's probably not a great test. I'll try from a real Linux box when I have a minute.

darkvertex avatar Sep 14 '24 15:09 darkvertex

Linux does not support subdomains

KunMengcode avatar Apr 28 '25 09:04 KunMengcode