• 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 TxtRecord

    A DnsResourceRecord represending a text resource.

    TXT RRs are used to hold descriptive text. The semantics of the text depends on the domain where it is found.

    Inheritance
    Object
    ResourceRecordInfo
    DnsResourceRecord
    TxtRecord
    Inherited Members
    DnsResourceRecord.ToString()
    DnsResourceRecord.ToString(Int32)
    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 class TxtRecord : DnsResourceRecord

    Constructors

    | Improve this Doc View Source

    TxtRecord(ResourceRecordInfo, String[], String[])

    Initializes a new instance of the TxtRecord class.

    Declaration
    public TxtRecord(ResourceRecordInfo info, string[] values, string[] utf8Values)
    Parameters
    Type Name Description
    ResourceRecordInfo info

    The information.

    String[] values

    The values.

    String[] utf8Values

    The UTF8 values.

    Exceptions
    Type Condition
    ArgumentNullException

    If info or utf8Values or values is null.

    Properties

    | Improve this Doc View Source

    EscapedText

    Gets the list of TXT values of this resource record in escaped form, valid for root file.

    Declaration
    public ICollection<string> EscapedText { get; }
    Property Value
    Type Description
    ICollection<String>
    Remarks

    See https://tools.ietf.org/html/rfc1035#section-5.1 for escape details.

    | Improve this Doc View Source

    Text

    Gets the actual UTF8 representation of the text values of this record.

    Declaration
    public ICollection<string> Text { get; }
    Property Value
    Type Description
    ICollection<String>

    See Also

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