Skip to content

DNS IPv6 fallback support follow-up #1005

@hennna

Description

@hennna

In #978 , we discussed the changes necessary to begin DNS IPv6 support which are reflected #1002 . For the fallback "auto" policy, we decided to query ares_gethostbyname twice. Once with parameter AF_INET6 and then with parameter AF_INET if the original query failed.

An alternative option would be to use the AF_UNSPEC option provided in the c-ares library. This should ideally implement the "auto" policy desired. However, it is currently lacking in two parts:

1.Does not support returning multiple types of addresses

  1. Has unpredictable behavior. For example, returning the IPv4 localhost address even when IPv6 is supported.

If either or both of these issues are supported by c-ares AF_UNSPEC, we should revisit this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementFeature requests. Not bugs or questions.stalestalebot believes this issue/PR has not been touched recently

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions