diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-01-20 21:28:22 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-01-25 15:59:40 +0100 |
commit | edbcc1fdd94355c5cf22263ba2c1cfa4ec2eb010 (patch) | |
tree | 7fe83782671de558758ce370f0da0d4efa48f085 /src/resolve/resolved-dns-query.c | |
parent | 6955a3ba9dc5d36487724878333a5745987e6656 (diff) | |
download | systemd-edbcc1fdd94355c5cf22263ba2c1cfa4ec2eb010.tar.gz |
resolve: generate a nice clean error when clients try to resolve a name when the network is down
Diffstat (limited to 'src/resolve/resolved-dns-query.c')
-rw-r--r-- | src/resolve/resolved-dns-query.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/resolve/resolved-dns-query.c b/src/resolve/resolved-dns-query.c index fc5bf4020f..165a52fcd0 100644 --- a/src/resolve/resolved-dns-query.c +++ b/src/resolve/resolved-dns-query.c @@ -891,7 +891,8 @@ static int dns_query_synthesize_reply(DnsQuery *q, DnsTransactionState *state) { DNS_TRANSACTION_RCODE_FAILURE, DNS_TRANSACTION_NO_SERVERS, DNS_TRANSACTION_TIMEOUT, - DNS_TRANSACTION_ATTEMPTS_MAX_REACHED)) + DNS_TRANSACTION_ATTEMPTS_MAX_REACHED, + DNS_TRANSACTION_NETWORK_DOWN)) return 0; DNS_QUESTION_FOREACH(key, q->question_utf8) { |