MDNS
Constants
DEFAULT_WAIT_TIME = 2.seconds
IPv4 = Socket::IPAddress.new("224.0.0.251", PORT)
PORT = 5353
Class methods
you can configure the query in the provided block
one_shot(domain : String, wait : Time::Span = DEFAULT_WAIT_TIME, type : Type = Type::PTR, klass : RecordClass = RecordClass::Internet, family : Socket::Family = Socket::Family::INET)
Source