RubyDNS can be used as an asynchronous DNS client, either passing requests to a specific server or using default system resolvers.
EventMachine provides the basic asynchronous event processing loop, and thus any use of
RubyDNS::Resolver must happen within a valid
As this is an asynchronous service, a timeout can be provided (the default is 5 seconds). If a response is not received within a given time, a
RubyDNS::ResolutionFailure error will be returned to the caller in the
For more examples, please check out rubydns/test/test_slow_server.rb.
Additional debugging output can be sent to a log file by providing the