Class RecordCname
Represents a DNS Canonical Name (CNAME) record used to specify that a domain name is an alias for another domain name.
public record RecordCname : Record, IEquatable<Record>, IEquatable<RecordCname>
- Inheritance
-
RecordCname
- Implements
- Inherited Members
Constructors
RecordCname(RecordReader)
Initializes a new instance of the RecordCname class.
public RecordCname(RecordReader reader)
Parameters
readerRecordReaderRecordReader for the record data.
Properties
Cname
Gets the canonical name (CNAME) for the DNS record, which represents the primary domain name to which the alias refers.
public string Cname { get; }
Property Value
Methods
ToString()
Returns a string representation of the CNAME record.
public override string ToString()
Returns
- string
A string that represents the canonical name of the record.