Méthode | Description | |
---|---|---|
Lookup ( string hostname, DNSQType queryType, int timeout, List |
This method will wait until either the lookup completes or the timeout is reached before returning.
|
|
Lookup ( string hostname, DNSQType queryType, int timeout, List |
||
LookupAsync ( string hostname ) : Heijden.DNS.DNSResponse |
Does a lookup on the DNSManager's currently cached entries. If not found it returns null indicating no information is currently available on the host while at the same time queueing a lookup for the DNSManager to do a lookup. Once the lookup has been completed the entry will be stored in cache and available for subsequent lookup requests. This approach to lookups is very useful for some SIP request situations. SIP has a built in retransmit mechanism so rather than hold up the processing of a SIP request while a DNS lookup is done the request can be ignored and in the time it takes for the SIP request retransmit the lookup can be done.
|
|
LookupAsync ( string hostname, DNSQType queryType ) : Heijden.DNS.DNSResponse | ||
SetDNSServers ( List |
||
Stop ( ) : void |
Méthode | Description | |
---|---|---|
DNSManager ( ) : System | ||
MatchIPAddress ( string hostname ) : Heijden.DNS.DNSResponse | ||
ProcessLookups ( ) : void | ||
QueueLookup ( LookupRequest lookupRequest ) : void |
public static Lookup ( string hostname, DNSQType queryType, int timeout, List |
||
hostname | string | The hostname of the A record to lookup in DNS. |
queryType | DNSQType | |
timeout | int | Timeout in seconds for the lookup. |
dnsServers | List |
|
Résultat | Heijden.DNS.DNSResponse |
public static Lookup ( string hostname, DNSQType queryType, int timeout, List |
||
hostname | string | |
queryType | DNSQType | |
timeout | int | |
dnsServers | List |
|
useCache | bool | |
async | bool | |
Résultat | Heijden.DNS.DNSResponse |
public static LookupAsync ( string hostname ) : Heijden.DNS.DNSResponse | ||
hostname | string | The hostname of the A record to lookup in DNS. |
Résultat | Heijden.DNS.DNSResponse |
public static LookupAsync ( string hostname, DNSQType queryType ) : Heijden.DNS.DNSResponse | ||
hostname | string | |
queryType | DNSQType | |
Résultat | Heijden.DNS.DNSResponse |
public static SetDNSServers ( List |
||
dnsServers | List |
|
Résultat | void |