class Resolv::DNS

Defined in:

resolv.cr

Constant Summary

PORT = 53

Default DNS Port

UDP_SIZE = 512

Default DNS UDP packet size

Constructors

Instance Method Summary

Constructor Detail

def self.new(server : String = Resolv.default_dns_resolver, read_timeout : Time::Span | Nil = nil, retry : Int32 | Nil = nil) #

[View source]

Instance Method Detail

def a_resources(domain : String) : Array(Resource::A) #

[View source]
def aaaa_resources(domain : String) : Array(Resource::AAAA) #

[View source]
def caa_resources(domain : String) : Array(Resource::CAA) #

[View source]
def cname_resources(domain : String) : Array(Resource::CNAME) #

[View source]
def mx_resources(domain : String) : Array(Resource::MX) #

[View source]
def ns_resources(domain : String) : Array(Resource::NS) #

[View source]
def ptr_resources(domain : String) : Array(Resource::PTR) #

[View source]
def resources(domain : String, type : Resource::Type) : Resources #

[View source]
def soa_resources(domain : String) : Array(Resource::SOA) #

[View source]
def srv_resources(domain : String) : Array(Resource::SRV) #

[View source]
def txt_resources(domain : String) : Array(Resource::TXT) #

[View source]