Durian::Resolver
Constants
IPAddressRecordFlags = [RecordFlag::A, RecordFlag::AAAA]
Constructors
new(dns_server : Socket::IPAddress = Socket::IPAddress.new("8.8.8.8", 53), protocol : Protocol = Protocol::UDP)
SourceClass methods
from_cloudflare(host : String, port : Int32, resolver : Resolver) : Tuple(UInt64, Array(Socket::IPAddress)) | Nil
Sourceget_tcp_socket!(host : String, port : Int32, resolver : Resolver, connect_timeout : Int | Float | Nil = nil) : ::TCPSocket
Sourceget_udp_socket!(host : String, port : Int32, resolver : Resolver, connect_timeout : Int | Float | Nil = nil) : UDPSocket
Sourcegetaddrinfo!(host : String, port : Int32, resolver : Resolver, try_connect : Bool = true) : Tuple(Fetch, Socket::IPAddress)
Sourcegetaddrinfo_all(host : String, port : Int32, resolver : Resolver, &block : Tuple(Fetch, Array(Socket::IPAddress)) -> )
Sourcegetaddrinfo_all(host : String, port : Int32, ip_cache : Cache::IPAddress | Nil = nil, dns_server : Socket::IPAddress = Socket::IPAddress.new("8.8.8.8", 53), protocol : Protocol = Protocol::UDP, tls : Server::TransportLayerSecurity | Nil = nil, &block : FetchList -> )
Sourcegetaddrinfo_all(host : String, port : Int32, ip_cache : Cache::IPAddress | Nil = nil, dns_server : Socket::IPAddress = Socket::IPAddress.new("8.8.8.8", 53), protocol : Protocol = Protocol::UDP, tls : Server::TransportLayerSecurity | Nil = nil) : FetchList
SourceInstance methods
coffee
Sourcecoffee=(value : Coffee::Scanner)
SourcednsServers
Sourcefetch_record_cache(host, flag : RecordFlag)
SourcegetaddrinfoPendingList
SourcegetaddrinfoPendingList=(getaddrinfoPendingList : PendingList)
Sourceip_cache
Sourceip_cache=(value : Cache::IPAddress)
Sourcemismatch_retry
Sourcemutex
Sourceoption
Sourceoption=(option : Option)
Sourcequery_record!(specify : Array(Server) | Nil, host : String, flag : RecordFlag, strict_answer : Bool = false) : Array(Packet) | Nil
Sourcequery_record!(socket : IO | Nil, host : String, flag : RecordFlag, strict_answer : Bool = false) : Packet | Nil
Sourcerecord_cache
Sourcerecord_cache=(value : Cache::Record)
Sourceresolve(host, flags : Array(RecordFlag), strict_answer : Bool = false, &callback : ResolveResponse -> )
Sourcerun
Sourceset_record_cache(host, packet : Packet, flag : RecordFlag)
Sourcetasks
Source