I cannot confirm that glibc's "dns" works like that -- it behaves the
same as resolved:
$ grep heise.de /etc/hosts
1.2.3.4 heise.de
$ grep hosts /etc/nsswitch.conf
hosts: files dns
$ getent ahosts heise.de | grep STREAM
1.2.3.4 STREAM heise.de
If I drop the heise.de entry from /etc/hosts, I get an IPv6 address
again as expected:
$ getent ahosts heise.de | grep STREAM
2a02:2e0:3fe:1001:302:: STREAM heise.de
193.99.144.80 STREAM
This is all after "sudo systemctl stop systemd-resolved", so it's not
interfering at all. Can you try the above on your system, to make sure
it behaves the same?
** Changed in: systemd (Ubuntu)
Status: Triaged => Incomplete
** Changed in: systemd (Ubuntu)
Assignee: Martin Pitt (pitti) => (unassigned)
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1644330
Title:
systemd-resolved assumes that /etc/hosts for one address family means
it doesn't ask DNS for another
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1644330/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs