Had to make the assert_dns_record test helper more robust against 'getent hosts' returning duplicates