summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2019-08-30 11:40:42 +0200
committerlouiz’ <louiz@louiz.org>2020-02-25 23:11:38 +0100
commit9913518178b582abcd5cac69e2f6c96866801f77 (patch)
tree9ee7c9fe84df2dd0a9ffe75523ab5bda1b3e175e /src
parent5fbd900fd681a8d907f356ba1085899e4ec0e2c1 (diff)
downloadbiboumi-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')
-rw-r--r--src/network/resolver.cpp1
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"}
};