From 0ff8f2a33a8f7c225860388faf43fa83f106cfe3 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Mon, 10 Jul 2023 08:00:00 +0000 Subject: resolved: fix the canonical name returned by hosts lookup by address In etc_hosts_lookup_by_address(), make sure the canonical name of the given address is returned first in the list of names that address resolves to. Resolves: #25088 --- test/units/testsuite-75.sh | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'test/units/testsuite-75.sh') diff --git a/test/units/testsuite-75.sh b/test/units/testsuite-75.sh index ef0e42a81d..504d1038e5 100755 --- a/test/units/testsuite-75.sh +++ b/test/units/testsuite-75.sh @@ -160,10 +160,12 @@ ip link del hoge.foo ### SETUP ### # Configure network hostnamectl hostname ns1.unsigned.test -{ - echo "10.0.0.1 ns1.unsigned.test" - echo "fd00:dead:beef:cafe::1 ns1.unsigned.test" -} >>/etc/hosts +cat >>/etc/hosts </etc/systemd/network/dns0.netdev <