DNS::Resolver::Config
Inherits Reference < Object
Constructors
new(name_servers : Array(DNS::Resolver::NameServerConfig), disable_tcp_fallback : Bool = false, rw_timeout : Time::Span = 5.seconds)
SourceClass methods
cloudflare
Sourcegoogle
SourceInstance methods
disable_tcp_fallback
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.
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.
name_servers
Sourcename_servers=(name_servers : Array(NameServerConfig))
Sourcerw_timeout
Sourcerw_timeout=(rw_timeout : Time::Span)
Source