summaryrefslogtreecommitdiff
path: root/src/resolve-host
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-08-21 16:23:02 +0200
committerTom Gundersen <teg@jklm.no>2015-08-21 16:23:02 +0200
commit932b06b8fff181aad50ce3ff839865def5574454 (patch)
tree9985b4bcede7c6cd9cd8a3c305e6925bbfc49e98 /src/resolve-host
parent37ebef9873ba5cbcb2d26a0b0ebb749b13dfac79 (diff)
parent09b1fe142b6f4bdbf925e04a916b97e5eb445bcb (diff)
Merge pull request #1005 from poettering/resolved-refuse-compression
Don't do name compression when passing RRs across the bus
Diffstat (limited to 'src/resolve-host')
-rw-r--r--src/resolve-host/resolve-host.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/resolve-host/resolve-host.c b/src/resolve-host/resolve-host.c
index 3f45a9f0e8..4a7d1e3173 100644
--- a/src/resolve-host/resolve-host.c
+++ b/src/resolve-host/resolve-host.c
@@ -392,6 +392,8 @@ static int resolve_record(sd_bus *bus, const char *name) {
if (r < 0)
return log_oom();
+ p->refuse_compression = true;
+
r = dns_packet_append_blob(p, d, l, NULL);
if (r < 0)
return log_oom();
@@ -441,7 +443,7 @@ static void help_dns_types(void) {
const char *t;
if (arg_legend)
- puts("Known dns types:");
+ puts("Known DNS RR types:");
for (i = 0; i < _DNS_TYPE_MAX; i++) {
t = dns_type_to_string(i);
if (t)
@@ -454,7 +456,7 @@ static void help_dns_classes(void) {
const char *t;
if (arg_legend)
- puts("Known dns classes:");
+ puts("Known DNS RR classes:");
for (i = 0; i < _DNS_CLASS_MAX; i++) {
t = dns_class_to_string(i);
if (t)