• DnsClient
  • Readme
  • Api Docs
  • MichaCo.net
This site uses "cookies" - small data files stored locally on your computer - to save information about your preferences when using this site. Learn More.

    Show / Hide Table of Contents

    Class DnsResourceRecord

    Base class for all resource records.

    Inheritance
    Object
    ResourceRecordInfo
    DnsResourceRecord
    AddressRecord
    AfsDbRecord
    CaaRecord
    CNameRecord
    EmptyRecord
    HInfoRecord
    MbRecord
    MgRecord
    MInfoRecord
    MrRecord
    MxRecord
    NsRecord
    NullRecord
    OptRecord
    PtrRecord
    RpRecord
    SoaRecord
    SrvRecord
    SshfpRecord
    TxtRecord
    UnknownRecord
    UriRecord
    WksRecord
    Inherited Members
    ResourceRecordInfo.DomainName
    ResourceRecordInfo.RecordType
    ResourceRecordInfo.RecordClass
    ResourceRecordInfo.TimeToLive
    ResourceRecordInfo.InitialTimeToLive
    ResourceRecordInfo.RawDataLength
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Namespace: DnsClient.Protocol
    Assembly: DnsClient.dll
    Syntax
    public abstract class DnsResourceRecord : ResourceRecordInfo

    Constructors

    | Improve this Doc View Source

    DnsResourceRecord(ResourceRecordInfo)

    Initializes a new instance of the DnsResourceRecord class.

    Declaration
    public DnsResourceRecord(ResourceRecordInfo info)
    Parameters
    Type Name Description
    ResourceRecordInfo info

    The information.

    Exceptions
    Type Condition
    ArgumentNullException

    If info is null.

    Methods

    | Improve this Doc View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Overrides
    Object.ToString()
    | Improve this Doc View Source

    ToString(Int32)

    Same as ToString but offsets the DomainName by offset. Set the offset to -32 for example to make it print nicely in consols.

    Declaration
    public virtual string ToString(int offset = 0)
    Parameters
    Type Name Description
    Int32 offset

    The offset.

    Returns
    Type Description
    String

    A string representing this instance.

    See Also

    ResourceRecordInfo
    • Improve this Doc
    • View Source
    © 2025 by Michael Conrad. All rights reserved. - MichaCo.net