class

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)
Source

Class methods

cloudflare
Source
google
Source

Instance 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.

Source
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.

Source
name_servers
Source
name_servers=(name_servers : Array(NameServerConfig))
Source
rw_timeout
Source
rw_timeout=(rw_timeout : Time::Span)
Source