Skip to content

NameResolution tests fail on tvos/Android devices - localhost resolves to non-loopback addresses #126456

@kotlarmilos

Description

@kotlarmilos

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=1362636
Build error leg or test failing: System.Net.NameResolution.Tests.GetHostAddressesTest.DnsGetHostAddresses_LocalhostAndSubdomain_BothReturnLoopback, System.Net.NameResolution.Tests.GetHostEntryTest.DnsGetHostEntry_LocalhostAndSubdomain_BothReturnLoopback
Pull request: #125441

Affected CI jobs: build_tvos_arm64_Release_AllSubsets_CoreCLR, build_android_arm64_Release_AllSubsets_CoreCLR

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "Expected loopback address but got",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Summary

DnsGetHostAddresses_LocalhostAndSubdomain_BothReturnLoopback and DnsGetHostEntry_LocalhostAndSubdomain_BothReturnLoopback fail on tvos-arm64 and Android devices because localhost DNS resolution returns real device IP addresses instead of loopback (127.0.0.1/::1).

Error:

Assert.All() Failure: 16 out of 18 items in the collection did not pass.
[5]:  Item:  10.64.36.129
      Error: Expected loopback address but got: 10.64.36.129

Note

This issue was filed with the assistance of GitHub Copilot.

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1362636
Error message validated: [Expected loopback address but got]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 4/2/2026 10:16:51 AM UTC

Report

Build Definition Test Pull Request
1362636 dotnet/runtime System.Net.NameResolution.Functional.Tests.WorkItemExecution #125441

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Known Build ErrorUse this to report build issues in the .NET Helix tabarea-System.Netdisabled-testThe test is disabled in source code against the issueos-androidos-tvosApple tvOSuntriagedNew issue has not been triaged by the area owner

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions