Skip to content

net: report detailed DNS errors with Extended DNS Errors in the go resolver #63192

@mateusz834

Description

@mateusz834

Currently when a query fails we return a "server misbehaving" error. RFC 8914 allows the resolver to include detailed errors about the failure of a DNS query. It would be nice to support it in the pure go resolver. We already support EDNS(0), so it should be fairly easy to add.

The only thing that I am not sure about is the optional EXTRA-TEXT field of the EDE Option, it would be nice to include it in the error, but it can be an arbitrary UTF-8 string. We should probably not include arbitrary characters in the error string. Not sure about that.

CC @mjl- (#63116 (comment))

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions