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)
128if (header.ResponseCode != DnsResponseCode.NoError) 130return new DnsResult<AddressRecord>(header.ResponseCode, null, ExtractNegativeCacheTtl(response)); 176if (header.ResponseCode != DnsResponseCode.NoError) 178return new DnsResult<SrvRecord>(header.ResponseCode, null, ExtractNegativeCacheTtl(response)); 241if (header.ResponseCode != DnsResponseCode.NoError) 243return new DnsResult<TxtRecord>(header.ResponseCode, null, ExtractNegativeCacheTtl(response)); 271if (header.ResponseCode != DnsResponseCode.NoError) 273return new DnsResult<MxRecord>(header.ResponseCode, null, ExtractNegativeCacheTtl(response)); 296if (header.ResponseCode != DnsResponseCode.NoError) 298return new DnsResult<CNameRecord>(header.ResponseCode, null, ExtractNegativeCacheTtl(response)); 321if (header.ResponseCode != DnsResponseCode.NoError) 323return new DnsResult<PtrRecord>(header.ResponseCode, null, ExtractNegativeCacheTtl(response)); 346if (header.ResponseCode != DnsResponseCode.NoError) 348return new DnsResult<NsRecord>(header.ResponseCode, null, ExtractNegativeCacheTtl(response)); 561&& header.ResponseCode is DnsResponseCode.ServerFailure or DnsResponseCode.Refused;