Table of Contents

Class RecordA

Namespace
Ubiety.Dns.Core.Records.General
Assembly
Ubiety.Dns.Core.dll

Represents a DNS A Record used to map a domain to an IPv4 address.

public record RecordA : Record, IEquatable<Record>, IEquatable<RecordA>
Inheritance
RecordA
Implements
Inherited Members

Remarks

A Records are the most basic type of DNS record. They map a domain or subdomain to a 32-bit IPv4 address. Multiple A Records may exist for a single domain, each pointing to a different IP address. This allows for techniques such as load balancing or redundancy. The A RDATA format includes a single field: ADDRESS - A 32-bit IPv4 internet address.

Constructors

RecordA(RecordReader)

Initializes a new instance of the RecordA class.

public RecordA(RecordReader reader)

Parameters

reader RecordReader

RecordReader for the record data.

Properties

Address

Gets the IPv4 address associated with the DNS A Record.

public IPAddress Address { get; }

Property Value

IPAddress

Remarks

Represents a 32-bit IPv4 internet address contained in the DNS A Record. This address is used to map a domain or subdomain to a specific IPv4 address.

Methods

ToString()

Converts the current record's data to its string representation.

public override string ToString()

Returns

string

A string representation of the record, typically the IP address in this case.