34 references to DnsRecordType
System.Net.NameResolution (34)
System\Net\DnsMessageReader.cs (8)
12
public
DnsRecordType
Type { get; }
15
internal DnsQuestion(DnsEncodedName name,
DnsRecordType
type, DnsRecordClass @class)
27
public
DnsRecordType
Type { get; }
40
internal DnsRecord(DnsEncodedName name,
DnsRecordType
type, DnsRecordClass @class,
105
DnsRecordType
type = (
DnsRecordType
)BinaryPrimitives.ReadUInt16BigEndian(_message[_pos..]);
136
DnsRecordType
type = (
DnsRecordType
)BinaryPrimitives.ReadUInt16BigEndian(_message[_pos..]);
System\Net\DnsMessageWriter.cs (1)
38
DnsRecordType
type,
System\Net\DnsRecordParsing.cs (9)
167
if (record.Type !=
DnsRecordType
.A || record.Data.Length != 4)
178
if (record.Type !=
DnsRecordType
.AAAA || record.Data.Length != 16)
189
if (record.Type !=
DnsRecordType
.CNAME || record.Data.Length == 0)
204
if (record.Type !=
DnsRecordType
.MX || record.Data.Length < 3)
221
if (record.Type !=
DnsRecordType
.SRV || record.Data.Length < 7)
239
if (record.Type !=
DnsRecordType
.SOA || record.Data.Length < 22)
272
if (record.Type !=
DnsRecordType
.TXT || record.Data.Length == 0)
283
if (record.Type !=
DnsRecordType
.PTR || record.Data.Length == 0)
298
if (record.Type !=
DnsRecordType
.NS || record.Data.Length == 0)
System\Net\DnsResolverPal.Managed.cs (16)
65
DnsRecordType
qtype = addressFamily switch
67
AddressFamily.InterNetwork =>
DnsRecordType
.A,
68
AddressFamily.InterNetworkV6 =>
DnsRecordType
.AAAA,
78
using DnsResponse response = await SendQuery(servers, async, name,
DnsRecordType
.SRV, cancellationToken).ConfigureAwait(false);
84
using DnsResponse response = await SendQuery(servers, async, name,
DnsRecordType
.MX, cancellationToken).ConfigureAwait(false);
90
using DnsResponse response = await SendQuery(servers, async, name,
DnsRecordType
.TXT, cancellationToken).ConfigureAwait(false);
96
using DnsResponse response = await SendQuery(servers, async, name,
DnsRecordType
.CNAME, cancellationToken).ConfigureAwait(false);
102
using DnsResponse response = await SendQuery(servers, async, name,
DnsRecordType
.PTR, cancellationToken).ConfigureAwait(false);
108
using DnsResponse response = await SendQuery(servers, async, name,
DnsRecordType
.NS, cancellationToken).ConfigureAwait(false);
114
private static DnsResult<AddressRecord> ParseAddresses(ReadOnlySpan<byte> response,
DnsRecordType
qtype)
137
if (qtype ==
DnsRecordType
.A)
147
Debug.Assert(qtype ==
DnsRecordType
.AAAA);
382
private static async Task<DnsResponse> SendQuery(IList<IPEndPoint> servers, bool async, string name,
DnsRecordType
qtype, CancellationToken cancellationToken)
555
ReadOnlySpan<byte> response, ushort expectedId, string expectedName,
DnsRecordType
expectedType,
586
ReadOnlySpan<byte> response, DnsMessageHeader header, string expectedName,
DnsRecordType
expectedType)
604
private static unsafe int WriteQuery(ushort queryId, string name,
DnsRecordType
type, Span<byte> destination)