C# 클래스 Heijden.DNS.Resolver

Resolver is the main class to do DNS query lookups
파일 보기 프로젝트 열기: sipsorcery/sipsorcery 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
DefaultDnsServers List

공개 메소드들

메소드 설명
BeginGetHostEntry ( IPAddress ip, AsyncCallback requestCallback, object stateObject ) : IAsyncResult

Asynchronously resolves an IP address to an System.Net.IPHostEntry instance.

BeginGetHostEntry ( string hostNameOrAddress, AsyncCallback requestCallback, object stateObject ) : IAsyncResult

Asynchronously resolves a host name or IP address to an System.Net.IPHostEntry instance.

ClearCache ( ) : void

Clear the resolver cache

EndGetHostEntry ( IAsyncResult AsyncResult ) : IPHostEntry

Ends an asynchronous request for DNS information.

GetArpaFromIp ( IPAddress ip ) : string

Translates the IPV4 or IPV6 address into an arpa address

GetDnsServers ( ) : System.Net.IPEndPoint[]

Gets a list of default DNS servers used on the Windows machine.

GetHostEntry ( IPAddress ip ) : IPHostEntry

Resolves an IP address to an System.Net.IPHostEntry instance.

GetHostEntry ( string hostNameOrAddress ) : IPHostEntry

Resolves a host name or IP address to an System.Net.IPHostEntry instance.

Query ( string name, DNSQType qtype, QClass qclass, int timeout ) : Heijden.DNS.DNSResponse

Do Query on specified DNS servers

Query ( string name, DNSQType qtype, int timeout ) : Heijden.DNS.DNSResponse

Do an QClass=IN Query on specified DNS servers

Query ( string name, DNSQType qtype, int timeout, List dnsServers ) : Heijden.DNS.DNSResponse
QueryCache ( string name, DNSQType qtype ) : Heijden.DNS.DNSResponse

Do an QClass=IN Query on the previously cached results.

QueryCache ( string name, DNSQType qtype, QClass qclass ) : Heijden.DNS.DNSResponse

Do an QClass=IN Query on the previously cached results.

Resolver ( ) : System

Resolver constructor, using DNS servers specified by Windows

Resolver ( IPAddress ServerIpAddress, int ServerPortNumber ) : System

Constructor of Resolver using DNS server and port specified.

Resolver ( IPEndPoint DnsServers ) : System

Constructor of Resolver using DNS servers specified.

Resolver ( string ServerIpAddress ) : System

Constructor of Resolver using DNS address.

Resolver ( string ServerIpAddress, int ServerPortNumber ) : System

Constructor of Resolver using DNS address and port specified.

비공개 메소드들

메소드 설명
AddToCache ( Heijden.DNS.DNSResponse response, string questionKey ) : void
GetActiveDNSServer ( ) : IPEndPoint
GetResponse ( Heijden.DNS.DNSRequest request, List dnsServers, int timeout ) : Heijden.DNS.DNSResponse
IncrementTimeoutCount ( IPEndPoint dnsServer ) : void
MakeEntry ( string HostName, int timeout ) : IPHostEntry
ResetTimeoutCount ( IPEndPoint dnsServer ) : void
SearchInCache ( Question question ) : Heijden.DNS.DNSResponse
TcpRequest ( Heijden.DNS.DNSRequest request, List dnsServers, int timeout ) : Heijden.DNS.DNSResponse

UdpRequest ( Heijden.DNS.DNSRequest request, List dnsServers, int timeout ) : Heijden.DNS.DNSResponse

Verbose ( string format ) : void

메소드 상세

BeginGetHostEntry() 공개 메소드

Asynchronously resolves an IP address to an System.Net.IPHostEntry instance.
public BeginGetHostEntry ( IPAddress ip, AsyncCallback requestCallback, object stateObject ) : IAsyncResult
ip System.Net.IPAddress The IP address to resolve.
requestCallback AsyncCallback /// An System.AsyncCallback delegate that references the method to invoke when /// the operation is complete. ///
stateObject object /// A user-defined object that contains information about the operation. This /// object is passed to the requestCallback delegate when the operation is complete. ///
리턴 IAsyncResult

BeginGetHostEntry() 공개 메소드

Asynchronously resolves a host name or IP address to an System.Net.IPHostEntry instance.
public BeginGetHostEntry ( string hostNameOrAddress, AsyncCallback requestCallback, object stateObject ) : IAsyncResult
hostNameOrAddress string The host name or IP address to resolve.
requestCallback AsyncCallback /// An System.AsyncCallback delegate that references the method to invoke when /// the operation is complete. ///
stateObject object /// A user-defined object that contains information about the operation. This /// object is passed to the requestCallback delegate when the operation is complete. ///
리턴 IAsyncResult

ClearCache() 공개 메소드

Clear the resolver cache
public ClearCache ( ) : void
리턴 void

EndGetHostEntry() 공개 메소드

Ends an asynchronous request for DNS information.
public EndGetHostEntry ( IAsyncResult AsyncResult ) : IPHostEntry
AsyncResult IAsyncResult /// An System.IAsyncResult instance returned by a call to an /// Overload:Heijden.Dns.Resolver.BeginGetHostEntry method. ///
리턴 System.Net.IPHostEntry

GetArpaFromIp() 공개 정적인 메소드

Translates the IPV4 or IPV6 address into an arpa address
public static GetArpaFromIp ( IPAddress ip ) : string
ip System.Net.IPAddress IP address to get the arpa address form
리턴 string

GetDnsServers() 공개 정적인 메소드

Gets a list of default DNS servers used on the Windows machine.
public static GetDnsServers ( ) : System.Net.IPEndPoint[]
리턴 System.Net.IPEndPoint[]

GetHostEntry() 공개 메소드

Resolves an IP address to an System.Net.IPHostEntry instance.
public GetHostEntry ( IPAddress ip ) : IPHostEntry
ip System.Net.IPAddress An IP address.
리턴 System.Net.IPHostEntry

GetHostEntry() 공개 메소드

Resolves a host name or IP address to an System.Net.IPHostEntry instance.
public GetHostEntry ( string hostNameOrAddress ) : IPHostEntry
hostNameOrAddress string The host name or IP address to resolve.
리턴 System.Net.IPHostEntry

Query() 공개 메소드

Do Query on specified DNS servers
public Query ( string name, DNSQType qtype, QClass qclass, int timeout ) : Heijden.DNS.DNSResponse
name string Name to query
qtype DNSQType Question type
qclass QClass Class type
timeout int Timeout for lookup in seconds.
리턴 Heijden.DNS.DNSResponse

Query() 공개 메소드

Do an QClass=IN Query on specified DNS servers
public Query ( string name, DNSQType qtype, int timeout ) : Heijden.DNS.DNSResponse
name string Name to query
qtype DNSQType Question type
timeout int Timeout for lookup in seconds.
리턴 Heijden.DNS.DNSResponse

Query() 공개 메소드

public Query ( string name, DNSQType qtype, int timeout, List dnsServers ) : Heijden.DNS.DNSResponse
name string
qtype DNSQType
timeout int
dnsServers List
리턴 Heijden.DNS.DNSResponse

QueryCache() 공개 메소드

Do an QClass=IN Query on the previously cached results.
public QueryCache ( string name, DNSQType qtype ) : Heijden.DNS.DNSResponse
name string Name to query
qtype DNSQType Question type
리턴 Heijden.DNS.DNSResponse

QueryCache() 공개 메소드

Do an QClass=IN Query on the previously cached results.
public QueryCache ( string name, DNSQType qtype, QClass qclass ) : Heijden.DNS.DNSResponse
name string Name to query
qtype DNSQType Question type
qclass QClass
리턴 Heijden.DNS.DNSResponse

Resolver() 공개 메소드

Resolver constructor, using DNS servers specified by Windows
public Resolver ( ) : System
리턴 System

Resolver() 공개 메소드

Constructor of Resolver using DNS server and port specified.
public Resolver ( IPAddress ServerIpAddress, int ServerPortNumber ) : System
ServerIpAddress System.Net.IPAddress DNS server to use
ServerPortNumber int DNS port to use
리턴 System

Resolver() 공개 메소드

Constructor of Resolver using DNS servers specified.
public Resolver ( IPEndPoint DnsServers ) : System
DnsServers System.Net.IPEndPoint Set of DNS servers
리턴 System

Resolver() 공개 메소드

Constructor of Resolver using DNS address.
public Resolver ( string ServerIpAddress ) : System
ServerIpAddress string DNS server address to use
리턴 System

Resolver() 공개 메소드

Constructor of Resolver using DNS address and port specified.
public Resolver ( string ServerIpAddress, int ServerPortNumber ) : System
ServerIpAddress string DNS server address to use
ServerPortNumber int DNS port to use
리턴 System

프로퍼티 상세

DefaultDnsServers 공개적으로 정적으로 프로퍼티

Gets list of OPENDNS servers
public static List DefaultDnsServers
리턴 List