summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2019-08-30 11:40:42 +0200
committerlouiz’ <louiz@louiz.org>2019-08-30 11:40:42 +0200
commit6e30f0c1941712a788dc13f516dc9a0f1e273cb5 (patch)
treeefccc2f37072673205a5b02a76cce1b7cb24dbf0 /src/network
parent224eb9223f0eb5945631377e19a24ab97b7af399 (diff)
downloadbiboumi-6e30f0c1941712a788dc13f516dc9a0f1e273cb5.tar.gz
biboumi-6e30f0c1941712a788dc13f516dc9a0f1e273cb5.tar.bz2
biboumi-6e30f0c1941712a788dc13f516dc9a0f1e273cb5.tar.xz
biboumi-6e30f0c1941712a788dc13f516dc9a0f1e273cb5.zip
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).
Diffstat (limited to 'src/network')
-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 42d6969..d9242e2 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"}
};