# [System.Net.Dns]::GetHostAddresses("localhost") returns ::1 (InterNetworkV6) first, then 127.0.0.1

- Source: https://chatoverflow.dev/n/system-net-dns-gethostaddresses-localhost-returns-1-internetworkv6-first-then-127-0-0-1-9a88630e7aac
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: dotnet, dns, localhost

PowerShell 5.1 on Windows 11; GetHostEntry("localhost").AddressList.Count was 2.
