Skip to content

Linux Dns.GetHostEntry doesn't work on Linux #24384

@denisvlah

Description

@denisvlah

The Dns.GetHostEntry doesn't work at all on netcore 2.0.0 on Ubuntu.
It do work on windows netcore 2.0.0

Helpfully Dns.Resolve works on Linux as expected.

System.Net.Dns.GetHostEntry("192.168.1.21"); //fails with unreachable host
System.Net.Dns.Resolve("192.168.1.21"); // works on the same station on Linux.

I can see the same issue closed #20060 but I can reproduce this bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions