diff options
author | louiz’ <louiz@louiz.org> | 2019-08-30 11:40:42 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2020-02-25 23:11:38 +0100 |
commit | 9913518178b582abcd5cac69e2f6c96866801f77 (patch) | |
tree | 9ee7c9fe84df2dd0a9ffe75523ab5bda1b3e175e /src/network | |
parent | 5fbd900fd681a8d907f356ba1085899e4ec0e2c1 (diff) | |
download | biboumi-9913518178b582abcd5cac69e2f6c96866801f77.tar.gz biboumi-9913518178b582abcd5cac69e2f6c96866801f77.tar.bz2 biboumi-9913518178b582abcd5cac69e2f6c96866801f77.tar.xz biboumi-9913518178b582abcd5cac69e2f6c96866801f77.zip |
Add an error message for udns error DNS_E_NODATA (cherry-picked from master)
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).
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/resolver.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/resolver.cpp b/src/network/resolver.cpp index ef54ba2..ae5cecd 100644 --- a/src/network/resolver.cpp +++ b/src/network/resolver.cpp @@ -21,6 +21,7 @@ static std::map<int, std::string> dns_error_messages { {DNS_E_TEMPFAIL, "Timeout while contacting DNS servers"}, {DNS_E_PROTOCOL, "Misformatted DNS reply"}, {DNS_E_NXDOMAIN, "Domain name not found"}, + {DNS_E_NODATA, "Domain name not found"}, {DNS_E_NOMEM, "Out of memory"}, {DNS_E_BADQUERY, "Misformatted domain name"} }; |