summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-01-18 21:31:16 +0100
committerLennart Poettering <lennart@poettering.net>2016-01-18 23:31:16 +0100
commit59a899908f9f1ead3cdb8b87ff98225054b5dab0 (patch)
tree8cf64f5cccf7bd8a8fe8858c4fb4a402be9459f8 /src
parent7820b320eaa608748f66f8105621640cf80e483a (diff)
resolved: when following a CNAME, turn off search domains
If the first step was done via a search domain, make sure the subsequent steps are not.
Diffstat (limited to 'src')
-rw-r--r--src/resolve/resolved-dns-query.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/resolve/resolved-dns-query.c b/src/resolve/resolved-dns-query.c
index 49d1b235a2..2938238f27 100644
--- a/src/resolve/resolved-dns-query.c
+++ b/src/resolve/resolved-dns-query.c
@@ -1242,6 +1242,9 @@ static int dns_query_cname_redirect(DnsQuery *q, const DnsResourceRecord *cname)
dns_query_reset_answer(q);
q->state = DNS_TRANSACTION_NULL;
+ /* Turn off searching for the new name */
+ q->flags |= SD_RESOLVED_NO_SEARCH;
+
return 0;
}