# File lib/celluloid/io/dns_resolver.rb, line 23 def initialize # early return for edge case when there are no nameservers configured # but we still want to be able to static lookups using #resolve_hostname @nameservers = self.class.nameservers or return @server = IPAddr.new(@nameservers.sample) # The non-blocking secret sauce is here, as this is actually a # Celluloid::IO::UDPSocket @socket = UDPSocket.new(@server.family) end