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