class DNS::Resolver::Config

Defined in:

dns/resolver.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(name_servers : Array(DNS::Resolver::NameServerConfig), disable_tcp_fallback : Bool = false, rw_timeout : Time::Span = 5.seconds) #

[View source]

Class Method Detail

def self.cloudflare #

[View source]
def self.google #

[View source]

Instance Method Detail

def disable_tcp_fallback : Bool #

DNS over UDP has a message limit of 512 bytes. When the truncation flag is set, the resolver will retrieve the message over TCP instead. Set this option to disable this.


[View source]
def disable_tcp_fallback=(disable_tcp_fallback : Bool) #

DNS over UDP has a message limit of 512 bytes. When the truncation flag is set, the resolver will retrieve the message over TCP instead. Set this option to disable this.


[View source]
def name_servers : Array(NameServerConfig) #

[View source]
def name_servers=(name_servers : Array(NameServerConfig)) #

[View source]
def rw_timeout : Time::Span #

[View source]
def rw_timeout=(rw_timeout : Time::Span) #

[View source]