Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-existing domain IPv6 domains in gen_tcp #9422

Open
flexagoon opened this issue Feb 11, 2025 · 1 comment
Open

Non-existing domain IPv6 domains in gen_tcp #9422

flexagoon opened this issue Feb 11, 2025 · 1 comment
Labels
bug Issue is reported as a bug team:PS Assigned to OTP team PS

Comments

@flexagoon
Copy link

Describe the bug
When trying to connect to a domain that only has an IPv6 address with gen_tcp, it throws an nxdomain error unless you pass the :inet6 option

To Reproduce

  1. Set up a domain that only has an IPv6 (AAAA) record
  2. Try to connect to it with gen_tcp:connect

Expected behavior
The domain gets resolved and connects

Affected versions
Erlang/OTP 27

Additional context
The issue was originally reported in the Elixir Redix library, but it was closed since it's an upstream OTP issue:

whatyouhide/redix#222

@flexagoon flexagoon added the bug Issue is reported as a bug label Feb 11, 2025
@IngelaAndin IngelaAndin added the team:PS Assigned to OTP team PS label Feb 12, 2025
@ruslandoga
Copy link

Might be related: #8548

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is reported as a bug team:PS Assigned to OTP team PS
Projects
None yet
Development

No branches or pull requests

3 participants