public sealed record DnsResolution : IEquatable<DnsResolution> The response of a DNS server to one query.
Parameters
ResponseCodeThe response code.
DnsResponseCode.NameErrorand the other error codes are results, not exceptions.AnswersThe answer section; empty for an error code or a name without records of the type.
Constructors
DnsResolution
public DnsResolution(DnsResponseCode ResponseCode, ImmutableArray<DnsAnswer> Answers) The response of a DNS server to one query.
Parameters
ResponseCodeThe response code.
DnsResponseCode.NameErrorand the other error codes are results, not exceptions.AnswersThe answer section; empty for an error code or a name without records of the type.
Properties
Answers
public ImmutableArray<DnsAnswer> Answers { get; init; } The answer section; empty for an error code or a name without records of the type.
ResponseCode
public DnsResponseCode ResponseCode { get; init; } The response code. DnsResponseCode.NameError and the other error codes are results, not exceptions.