class DNS::Resolver::Config
- DNS::Resolver::Config
- Reference
- Object
Defined in:
dns/resolver.crConstructors
Class Method Summary
Instance Method Summary
-
#disable_tcp_fallback : Bool
DNS over UDP has a message limit of 512 bytes.
-
#disable_tcp_fallback=(disable_tcp_fallback : Bool)
DNS over UDP has a message limit of 512 bytes.
- #name_servers : Array(NameServerConfig)
- #name_servers=(name_servers : Array(NameServerConfig))
- #rw_timeout : Time::Span
- #rw_timeout=(rw_timeout : Time::Span)
Constructor Detail
def self.new(name_servers : Array(DNS::Resolver::NameServerConfig), disable_tcp_fallback : Bool = false, rw_timeout : Time::Span = 5.seconds)
#
Class Method Detail
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.
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.