1 write to ResponseCode
System.Net.NameResolution (1)
System\Net\DnsMessageHeader.cs (1)
63ResponseCode = responseCode,
16 references to ResponseCode
System.Net.NameResolution (16)
System\Net\DnsMessageHeader.cs (1)
96word |= (ushort)((int)ResponseCode & 0xF);
System\Net\DnsResolverPal.Managed.cs (15)
118if (header.ResponseCode != DnsResponseCode.NoError) 120return new DnsResult<AddressRecord>(header.ResponseCode, null, ExtractNegativeCacheTtl(response)); 166if (header.ResponseCode != DnsResponseCode.NoError) 168return new DnsResult<SrvRecord>(header.ResponseCode, null, ExtractNegativeCacheTtl(response)); 231if (header.ResponseCode != DnsResponseCode.NoError) 233return new DnsResult<TxtRecord>(header.ResponseCode, null, ExtractNegativeCacheTtl(response)); 261if (header.ResponseCode != DnsResponseCode.NoError) 263return new DnsResult<MxRecord>(header.ResponseCode, null, ExtractNegativeCacheTtl(response)); 286if (header.ResponseCode != DnsResponseCode.NoError) 288return new DnsResult<CNameRecord>(header.ResponseCode, null, ExtractNegativeCacheTtl(response)); 311if (header.ResponseCode != DnsResponseCode.NoError) 313return new DnsResult<PtrRecord>(header.ResponseCode, null, ExtractNegativeCacheTtl(response)); 336if (header.ResponseCode != DnsResponseCode.NoError) 338return new DnsResult<NsRecord>(header.ResponseCode, null, ExtractNegativeCacheTtl(response)); 551&& header.ResponseCode is DnsResponseCode.ServerFailure or DnsResponseCode.Refused;