summaryrefslogtreecommitdiff
path: root/src/resolve/resolved-bus.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-08-17 07:56:57 +0200
committerTom Gundersen <teg@jklm.no>2015-09-16 17:03:17 +0200
commit5643c00afe29eae4b2e3575277038e60e6967d09 (patch)
treef3196293051dc93ee58eb06421df9367dc794f17 /src/resolve/resolved-bus.c
parent8e427d9be93e1289eba2a3055bbc632babc75b81 (diff)
resolved: cache - handle CNAME redirection
CNAME records are special in the way they are treated by DNS servers, and our cache should mimic that behavior: In case a domain name has an alias, its CNAME record is returned in place of any other. Our cache was not doing this despite caching the CNAME records, this entailed needless lookups to re-resolve the CNAME.
Diffstat (limited to 'src/resolve/resolved-bus.c')
-rw-r--r--src/resolve/resolved-bus.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/resolve/resolved-bus.c b/src/resolve/resolved-bus.c
index 19db781ac4..bf1b7c8ab4 100644
--- a/src/resolve/resolved-bus.c
+++ b/src/resolve/resolved-bus.c
@@ -220,8 +220,6 @@ static void bus_method_resolve_hostname_complete(DnsQuery *q) {
added++;
}
- // what about the cache?
-
/* If we didn't find anything, then let's restart the
* query, this time with the cname */
if (added <= 0) {