Actions
Bug #13033
closedDNS lookups using DNS forwarder yields invalid cache entries in systemd-resolved
Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
DNS Forwarder
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Plus Target Version:
Release Notes:
Default
Affected Version:
2.6.x
Affected Architecture:
Description
I have configured a wildcard record in DNS forwarder, supplied in the "custom options" like the following:
address=/example.com/10.0.0.1
and host overrides:
example.com -> 10.0.0.1
a.example.com -> 10.0.0.1
b.example.com -> 10.0.0.2
On a Ubuntu 18.04 machine, running a lookup specifying IPv6
systemd-resolve -6 b.example.com
yields:
b.example.com: resolve call failed: 'a.nowhow.ch' does not have any RR of the requested type
This request adds, however, an entry in the cache of systemd-resolved:
#011b.example.com IN CNAME a.example.com
(this can be seen from running "sudo killall -USR1 systemd-resolved" and looking at the syslog.)
Running
systemd-resolve -4 b.example.com
now results in
b.example.com: 10.0.0.1 (a.example.com)
This behaviour seems to be new to 2.6.0 and resulted in wrong DNS lookups, as systemd-resolved seems to aquire both IPv4 and IPv6 addresses by default (according to man pages)
Related issues
Actions