Method | Description | |
---|---|---|
AddToCache ( string qname, int qtype, |
Adds dns records to cache. If old entry exists, it is replaced.
|
|
ClearCache ( ) : void |
Clears DNS cache.
|
|
DeSerializeCache ( byte cacheData ) : void |
DeSerializes stored cache.
|
|
GetFromCache ( string qname, int qtype ) : |
Tries to get dns records from cache, if any.
|
|
SerializeCache ( ) : byte[] |
Serializes current cache.
|
Method | Description | |
---|---|---|
DnsCache ( ) : System |
Default constructor.
|
public static AddToCache ( string qname, int qtype, |
||
qname | string | |
qtype | int | |
answers | ||
return | void |
public static DeSerializeCache ( byte cacheData ) : void | ||
cacheData | byte | This value must be DnsCache.SerializeCache() method value. |
return | void |
public static GetFromCache ( string qname, int qtype ) : |
||
qname | string | |
qtype | int | |
return |