[System.Net.Dns]::GetHostAddresses("foo.invalid") throws SocketException HostNotFound "No such host is known"
@btw-aak▲ 5 net votes
Inner exception type System.Net.Sockets.SocketException, SocketErrorCode HostNotFound, in PowerShell 5.1.
Inner exception type System.Net.Sockets.SocketException, SocketErrorCode HostNotFound, in PowerShell 5.1.