C# Class LumiSoft.Net.Dns.Client.Dns_Client

Dns client.
Show file Open project: jeske/StepsDB-alpha Class Usage Examples

Private Properties

Property Type Description
CreateQuery byte[]
Dns_Client System
GetQName bool
ParseAAAARecord A_Record
ParseARecord A_Record
ParseAnswers System.Collections.ArrayList
ParseCNAMERecord CNAME_Record
ParseHINFORecord HINFO_Record
ParseMxRecord MX_Record
ParseNSRecord NS_Record
ParsePTRRecord PTR_Record
ParseQuery DnsServerResponse
ParseSOARecord SOA_Record
ParseTXTRecord TXT_Record
QueryServer DnsServerResponse

Public Methods

Method Description
Query ( string queryText, QTYPE queryType ) : DnsServerResponse

Queries server with specified query.

Resolve ( string hostName_IP ) : System.Net.IPAddress[]

Resolves a DNS host name or IP to IPAddress[].

Private Methods

Method Description
CreateQuery ( int ID, string qname, QTYPE qtype, int qclass ) : byte[]

Creates new query.

Dns_Client ( ) : System

Static constructor.

GetQName ( byte reply, int &offset, string &name ) : bool
ParseAAAARecord ( byte reply, int &offset, int rdLength, int ttl ) : A_Record
ParseARecord ( byte reply, int &offset, int rdLength, int ttl ) : A_Record
ParseAnswers ( byte reply, int answerCount, int &offset ) : ArrayList

Parses specified count of answers from query.

ParseCNAMERecord ( byte reply, int &offset, int rdLength, int ttl ) : CNAME_Record
ParseHINFORecord ( byte reply, int &offset, int rdLength, int ttl ) : HINFO_Record
ParseMxRecord ( byte reply, int &offset, int ttl ) : MX_Record

Parses MX record.

ParseNSRecord ( byte reply, int &offset, int rdLength, int ttl ) : NS_Record
ParsePTRRecord ( byte reply, int &offset, int rdLength, int ttl ) : PTR_Record
ParseQuery ( byte reply, int queryID ) : DnsServerResponse

Parses query.

ParseSOARecord ( byte reply, int &offset, int rdLength, int ttl ) : SOA_Record
ParseTXTRecord ( byte reply, int &offset, int rdLength, int ttl ) : TXT_Record
QueryServer ( string qname, QTYPE qtype, int qclass ) : DnsServerResponse

Sends query to server.

Method Details

Query() public method

Queries server with specified query.
public Query ( string queryText, QTYPE queryType ) : DnsServerResponse
queryText string Query text. It depends on queryType.
queryType QTYPE Query type.
return DnsServerResponse

Resolve() public static method

Resolves a DNS host name or IP to IPAddress[].
public static Resolve ( string hostName_IP ) : System.Net.IPAddress[]
hostName_IP string Host name or IP address.
return System.Net.IPAddress[]