Feature #8089

Add one-shot multicast DNS support to Resolv

Added by Eric Hodel about 1 year ago. Updated about 1 year ago.

[ruby-core:53387]
Status:Closed
Priority:Normal
Assignee:Akira Tanaka
Category:lib
Target version:2.1.0

Description

The attached patch adds one-shot multicast DNS (mDNS) support to Resolv per RFC 6762 section 5.1.

This is the easiest type of mDNS support to add as it requires no knowledge of multicast sockets in Resolv, just removal of the restriction that the request address (the multicast address) must match the reply address (a unicast address) which will not be true for mDNS responses.

This patch also allows the set of resolvers Resolv::DefaultResolver to be changed to add the mDNS resolver at runtime.

In conjunction with resolve-replace, this patch allows DRb to be used when a host is running a full mDNS resolver and mDNS names ("example.local") are returned from remote hosts.

Note that this does not implement the RFC 6762 section 11 source address check as the local network cannot be determined with ruby's current API.

resolv.rb.one-shot-mdns.patch Magnifier (3.92 KB) Eric Hodel, 03/14/2013 08:41 AM

Associated revisions

Revision 40160
Added by Akira Tanaka about 1 year ago

  • lib/resolv.rb: Add one-shot multicast DNS support. [Feature #8089] by Eric Hodel.

History

#1 Updated by Akira Tanaka about 1 year ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r40160.
Eric, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • lib/resolv.rb: Add one-shot multicast DNS support. [Feature #8089] by Eric Hodel.

Also available in: Atom PDF