Most of the times, the first hit (namely the ipv4 address) is all that
is used from the DNS query.

In my case, it is essentially a testcase for Tcl's socket, which tries
to establish a connection to an unlistened port, and expects a
"connection refused" error.  But Tcl in this case(namely that the
connection gets refused) attempts the connect on the next address-
result, which is then the bad ipv6-address. That one then caused an
"EINVAL" from the connect() syscall, which it reported up, so the
testcase expecting "connection refused" failed.

I'm aware that the impact is not very big, but that just explains, why
it wasn't already noticed long before.

Conclusion is, that DNS should either not return an inet6 link-local
address at all, as this cannot be used that way (namely without the name
of the network-device), or it should only provide it together with the
network-device, if that is possible in the DNS protocol.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1853669

Title:
  systemd resolves own hostname to link local ipv6 address

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1853669/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to