using System; namespace DnsClient.Protocol { /* RFC 1035 (https://tools.ietf.org/html/rfc1035#section-3.3.12) 3.3.12. PTR RDATA format +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ / PTRDNAME / +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ where: PTRDNAME A which points to some location in the domain name space. PTR records cause no additional section processing. These RRs are used in special domains to point to some other location in the domain space. These records are simple data, and don't imply any special processing similar to that performed by CNAME, which identifies aliases. See the description of the IN-ADDR.ARPA domain for an example. */ /// /// A represending a pointer. These RRs are used /// in special domains to point to some other location in the domain space. /// /// /// RFC 1035 public class PtrRecord : DnsResourceRecord { /// /// Gets the domain name which points to some location in the domain name space. /// /// /// The domain name. /// public DnsString PtrDomainName { get; } /// /// Initializes a new instance of the class. /// /// The information. /// The domain name. /// If or is null. public PtrRecord(ResourceRecordInfo info, DnsString ptrDomainName) : base(info) { PtrDomainName = ptrDomainName ?? throw new ArgumentNullException(nameof(ptrDomainName)); } private protected override string RecordToString() { return PtrDomainName.Value; } } }