NetworkInterface.GetAllNetworkInterfaces() throw exceptions in some docker environments · Issue #3 · MichaCo/DnsClient.NET · GitHub
Skip to content

NetworkInterface.GetAllNetworkInterfaces() throw exceptions in some docker environments #3

Description

@toddschilling

There's a know defect where GetAllNetworkInterfaces() throws an error when it doesn't have privileged access to the filesystem in docker. I'd recommend wrapping that call with its own exception handler and just parsing /etc/resolv.conf for nameservers as a final approach.

As a work around, I've done just that and then passed the resulting nameservers into your LookupClient for service discovery.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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