Commit 6e30f0c1 authored by louiz’'s avatar louiz’

Add an error message for udns error DNS_E_NODATA

In cases where the DNS server does not respond “domain not found” but
“domain found, but no IP for that record type”, we just say “domain not
found” too (instead of nothing, previously).
parent 224eb922
...@@ -21,6 +21,7 @@ static std::map<int, std::string> dns_error_messages { ...@@ -21,6 +21,7 @@ static std::map<int, std::string> dns_error_messages {
{DNS_E_TEMPFAIL, "Timeout while contacting DNS servers"}, {DNS_E_TEMPFAIL, "Timeout while contacting DNS servers"},
{DNS_E_PROTOCOL, "Misformatted DNS reply"}, {DNS_E_PROTOCOL, "Misformatted DNS reply"},
{DNS_E_NXDOMAIN, "Domain name not found"}, {DNS_E_NXDOMAIN, "Domain name not found"},
{DNS_E_NODATA, "Domain name not found"},
{DNS_E_NOMEM, "Out of memory"}, {DNS_E_NOMEM, "Out of memory"},
{DNS_E_BADQUERY, "Misformatted domain name"} {DNS_E_BADQUERY, "Misformatted domain name"}
}; };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment