diff options
author | Martin Pitt <martin.pitt@ubuntu.com> | 2016-12-22 07:58:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-22 07:58:02 +0100 |
commit | 4050e04b2c3ff2a1ae458089735ff787fadb0038 (patch) | |
tree | a5004b85e134ec9f13690c0b8fbdd10b14b0f385 /man/systemd-resolved.service.xml | |
parent | eb64b435ebb2a7cb1274d5f8d8c323905caf29bc (diff) | |
download | systemd-4050e04b2c3ff2a1ae458089735ff787fadb0038.tar.gz |
resolved: correctly handle non-address RR types with /etc/hosts lookups (#4808)
Fix wrong condition test in manager_etc_hosts_lookup(), which caused it to
return an IPv4 answer when an IPv6 question was asked, and vice versa.
Also only return success if we actually found any A or AAAA record.
In systemd-resolved.service(8), point out that /etc/hosts mappings only
affect address-type lookups, not other types.
The test case currently disables DNSSEC in resolved, as there is a bug
where "-t MX" fails due to "DNSSEC validation failed" even after
"downgrading to non-DNSSEC mode". This should be dropped once that bug
gets fixed.
Fixes #4801
Diffstat (limited to 'man/systemd-resolved.service.xml')
-rw-r--r-- | man/systemd-resolved.service.xml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/man/systemd-resolved.service.xml b/man/systemd-resolved.service.xml index 56f67960ce..6465193cc5 100644 --- a/man/systemd-resolved.service.xml +++ b/man/systemd-resolved.service.xml @@ -116,8 +116,9 @@ current gateway, useful for referencing it independently of the current network configuration state.</para></listitem> - <listitem><para>The mappings defined in <filename>/etc/hosts</filename> are resolved to their configured - addresses and back.</para></listitem> + <listitem><para>The mappings defined in <filename>/etc/hosts</filename> are resolved + to their configured addresses and back, but they will not affect lookups for + non-address types (like MX).</para></listitem> </itemizedlist> <para>Lookup requests are routed to the available DNS servers |