An NDoc Documented Class Library

DNSLookup Members

DNSLookup overview

Public Static Fields

QCLASS_ANYQuery class for any scheme of record system.
QCLASS_CHAOSQuery class for Chaos scheme of record system. This scheme is almost extinct.
QCLASS_HESIODQuery class for Hesiod scheme of record system. This scheme is only used at M.I.T.
QCLASS_INQuery class for Internet scheme of record system. This is the most widely used class
QTYPE_A Query type value for Address Record. Address record provides the IP address for a hostname.
QTYPE_A6Query type value for IPV6 Address Record(Newer version of A6). AAAA is still widely used.
QTYPE_AAAAQuery type value for IPv6 Address Record. AAAA Record provides the IPv6 address for a hostname.
QTYPE_ANYQuery type value for All Records. This query will return all available records for a host/domain.
QTYPE_CNAMEQuery type value for Canonical Name Record. Alias Hostname can be created for some other hostname in possibly a different domain. The CNAME record provides the real hostname for a given hostname.
QTYPE_MXQuery type value for Mail Exchange Record. MX Record indicates servers that are responsible for handling mail for the domain.
QTYPE_NSQuery type value for Name Server Record. Name Server records provides the Authoritative Name Server for a domain.
QTYPE_PTRQuery type value for Pointer Record. PTR Record provide a mapping from IP address back to host name.
QTYPE_SOAQuery type value for Start Of Authority Record. SOA Record contains information about a zone.
QTYPE_TXTQuery type value for Text Record. TXT Record has text information. Text record is sometimes used for SPF(Sender Policy Framework) record.
QTYPE_WKSQuery type value for Well Known Services Record. WKS record provides information about services that are available on a server. The services are HTTP, POP, IMAP... The record provides a list of ports on which the services are available.

Public Instance Constructors

DNSLookup Constructor DNSLookup Constructor looks up a requested record on a given server. The lookup is done in the constructor itself. If there is any error, an exception is throw.

Public Instance Fields

INTERNAL_BUFFERSize of internal buffer used to field the response from the DNS server. If lot of records are expected in the response, this number should be increased. The default value is 5024.

Public Instance Methods

Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetA6RecordsReturns all A6 records received in the response. These records are extracted from all three sections(Answer, Authority and Additional) of the response. There can be more than one A6 record for a hostname.
GetAAAARecordsReturns all AAAA records received in the response. These records are extracted from all three sections(Answer, Authority and Additional) of the response. There can be more than one AAAA record for a hostname.
GetAdditionalRecordsReturns Resource Records extracted from the Additional Section of the response. The return array has instances of subclasses of Resource Records. Each element in the array can be checked for the type and typecast.
GetAnswerRecordsReturns Resource Records extracted from the Answer Section of the response. The return array has instances of subclasses of Resource Records. Each element in the array can be checked for the type and typecast.
GetARecordsReturns all A records received in the response. These records are extracted from all three sections(Answer, Authority and Additional) of the response. There can be more than one A record for a hostname.
GetAuthorityRecordsReturns Resource Records extracted from the Authority Section of the response. The return array has instances of subclasses of Resource Records. Each element in the array can be checked for the type and typecast.
GetCNAMERecordsReturns all CNAME records received in the response. These records are extracted from all three sections(Answer, Authority and Additional) of the response. There can be more than one CNAME record for a hostname.
GetHashCode (inherited from Object)Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetMXRecordsReturns all MX records received in the response. These records are extracted from all three sections(Answer, Authority and Additional) of the response. There can be more than one MX record for a hostname.
GetNSRecordsReturns all NS records received in the response. These records are extracted from all three sections(Answer, Authority and Additional) of the response. There can be more than one NS record for a hostname.
GetPTRRecordsReturns all PTR records received in the response. These records are extracted from all three sections(Answer, Authority and Additional) of the response. There can be more than one PTR record for a hostname.
GetQuestionRecord Returns the Question Record that is sent back in the response. The QuestionRecord has the original query that caused the response.
GetSOARecordsReturns all SOA records received in the response. These records are extracted from all three sections(Answer, Authority and Additional) of the response.
GetTXTRecordsReturns all TXT records received in the response. These records are extracted from all three sections(Answer, Authority and Additional) of the response.
GetType (inherited from Object)Gets the Type of the current instance.
GetWKSRecordsReturns all WKS records received in the response. These records are extracted from all three sections(Answer, Authority and Additional) of the response.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

DNSLookup Class | Lavantech.Dns Namespace | SimpleDNSLookup