123456789101112131415module juptune.dns.clients.rfc1035;
struct DnsRfc1035QueryConfig
{
/++ VARIABLES ++/
/// Force the use of TCP, completely skipping UDP.
bool forceTcp;
/// Timeout to use when sending and reading data via TCP.
Duration tcpTimeout;
/// The amount of times to try querying DNS via UDP. After this many attempts have failed, a single TCP attempt is made.
uint udpRetries;
/// Timeout to use when sending and reading data via UDP.
Duration udpTimeout;
}
Config for performing a DNS query using dnsQueryRfc1035.
| Name | Description |
|---|---|
| forceTcp |
Force the use of TCP, completely skipping UDP. |
| tcpTimeout |
Timeout to use when sending and reading data via TCP. |
| udpRetries |
The amount of times to try querying DNS via UDP. After this many attempts have failed, a single TCP attempt is made. |
| udpTimeout |
Timeout to use when sending and reading data via UDP. |