OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 21.1 Legacy Series »
  • How to enable multicast DNS (RFC 6762)?
« previous next »
  • Print
Pages: [1]

Author Topic: How to enable multicast DNS (RFC 6762)?  (Read 7180 times)

Asperamanca

  • Newbie
  • *
  • Posts: 31
  • Karma: 0
    • View Profile
How to enable multicast DNS (RFC 6762)?
« on: February 20, 2021, 02:25:01 pm »
How do I enable multicast DNS within my local network?
I have not found anything about mDns in the unbound DNS documentation. There is documentation about a multicast dns proxy, but all my devices are in the same VLAN, so that should not be necessary.
I already use unbound DNS with DHCP leases registered.

My symptoms are that Android and Kodi devices have issues discovering other devices in my local network, where a port scanner app can clearly show the device to be accessible. A vendor pointed me to mDNS as requirement for discovery of their sound equipment.



Logged

chemlud

  • Hero Member
  • *****
  • Posts: 2488
  • Karma: 112
    • View Profile
Re: How to enable multicast DNS (RFC 6762)?
« Reply #1 on: February 20, 2021, 02:48:05 pm »
Maybe?

https://forum.opnsense.org/index.php?topic=5865.0
Logged
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare

felix eichhorns premium katzenfutter mit der extraportion energie

A router is not a switch - A router is not a switch - A router is not a switch - A rou....

Asperamanca

  • Newbie
  • *
  • Posts: 31
  • Karma: 0
    • View Profile
Re: How to enable multicast DNS (RFC 6762)?
« Reply #2 on: February 20, 2021, 03:05:02 pm »
As mentioned, I don't need a proxy between interfaces. I need mDNS to work within one interface. So I didn't see how the linked post could help me...?
Logged

chemlud

  • Hero Member
  • *****
  • Posts: 2488
  • Karma: 112
    • View Profile
Re: How to enable multicast DNS (RFC 6762)?
« Reply #3 on: February 20, 2021, 03:22:48 pm »
For multicast on a single LAN the OPNsense is not needed at all, that's what mDNS was designed for imho...
Logged
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare

felix eichhorns premium katzenfutter mit der extraportion energie

A router is not a switch - A router is not a switch - A router is not a switch - A rou....

Patrick M. Hausen

  • Hero Member
  • *****
  • Posts: 6935
  • Karma: 584
    • View Profile
Re: How to enable multicast DNS (RFC 6762)?
« Reply #4 on: February 20, 2021, 04:46:51 pm »
He probably wants the OPNsense to announce itself properly. I'd really like that, too. I run avahi-app in all my FreeBSD jails and the ssh config tells ssh that if I do e.g. ˋssh gitea.localˋ, just use the root account and private key, thank you.
ˋPermitRootLogin prohibit-passwordˋ on a private LAN - perfectly reasonable, IMHO.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Asperamanca

  • Newbie
  • *
  • Posts: 31
  • Karma: 0
    • View Profile
Re: How to enable multicast DNS (RFC 6762)?
« Reply #5 on: February 20, 2021, 05:21:36 pm »
Quote from: chemlud on February 20, 2021, 03:22:48 pm
For multicast on a single LAN the OPNsense is not needed at all, that's what mDNS was designed for imho...

You are right. I obviously misunderstood how mDNS works. The devices should take care of exchanging information by themselves, using broadcast, right?
Any advice how I get started analyzing broadcast issues in my network? (I am aware that this is outside OPNsense now...or can OPNsense help me trace the issue?)
Logged

Patrick M. Hausen

  • Hero Member
  • *****
  • Posts: 6935
  • Karma: 584
    • View Profile
Re: How to enable multicast DNS (RFC 6762)?
« Reply #6 on: February 20, 2021, 05:25:49 pm »
If you are on a Mac, this is my favourite tool to check mDNS:
https://www.macupdate.com/app/mac/13388/discovery
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

chemlud

  • Hero Member
  • *****
  • Posts: 2488
  • Karma: 112
    • View Profile
Re: How to enable multicast DNS (RFC 6762)?
« Reply #7 on: February 20, 2021, 05:35:23 pm »
Quote from: Asperamanca on February 20, 2021, 05:21:36 pm
Quote from: chemlud on February 20, 2021, 03:22:48 pm
For multicast on a single LAN the OPNsense is not needed at all, that's what mDNS was designed for imho...

You are right. I obviously misunderstood how mDNS works. The devices should take care of exchanging information by themselves, using broadcast, right?
Any advice how I get started analyzing broadcast issues in my network? (I am aware that this is outside OPNsense now...or can OPNsense help me trace the issue?)

Package capture on the LAN interface, UDP port 5353

https://osqa-ask.wireshark.org/questions/34456/capturing-mdns-packet
Logged
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare

felix eichhorns premium katzenfutter mit der extraportion energie

A router is not a switch - A router is not a switch - A router is not a switch - A rou....

Asperamanca

  • Newbie
  • *
  • Posts: 31
  • Karma: 0
    • View Profile
Re: How to enable multicast DNS (RFC 6762)?
« Reply #8 on: February 21, 2021, 04:31:33 pm »
I can see mDNS requests sent via Wireshark (e.g. triggered by VLC), but I cannot see any answer although there should be multiple devices responding.
Should I see answers using filter "udp port 5353"?

Since both requester and responder are on the same switch, I guess this means that the switch somehow blocks the requests or replies?
Logged

Asperamanca

  • Newbie
  • *
  • Posts: 31
  • Karma: 0
    • View Profile
Re: How to enable multicast DNS (RFC 6762)?
« Reply #9 on: February 21, 2021, 04:46:43 pm »
OK, someone at UniFi thought "Multicast and Broadcast Filtering" would make a great default option for a Wifi AP. I must have overlooked that at initial setup.

Case closed. Thanks for the help!
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 21.1 Legacy Series »
  • How to enable multicast DNS (RFC 6762)?
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2