SocketTools .NET Edition

DnsClient.Retry Property

Set the number of times the control attempts to resolve a hostname.

[Visual Basic]
Public Property Retry As Integer
[C#]
public int Retry {get; set;}

Property Value

An integer value.

Remarks

The Retry property specifies the number of times, per nameserver, that the control attempts to resolve a hostname or address. If attempts to query a nameserver fail, the control waits a period of time and then resubmits the query. As the number of retries increase, the longer the period of time the control waits to receive a response before attempting the query using another nameserver.

The default number of retries is four, with a minimum value of one and a maximum value of eight.

See Also

DnsClient Class | SocketTools Namespace | Timeout Property