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

[BUG] - cardano-node tries to resolve and connect to AAAA DNS records even if only IPv4 host listen address is configured #3781

Closed
weebl2000 opened this issue Apr 9, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@weebl2000
Copy link

weebl2000 commented Apr 9, 2022

Internal/External
External

Area
Other Node connectivity

Summary
cardano-node tries to resolve/connect over IPv6 AAAA DNS records even if IPv6 is explicitly disabled.

Steps to reproduce

  1. Have an IPv6 enabled machine
  2. Add a producer by hostname which has an AAAA record.

Expected behavior
cardano-node should either:

  • not resolve the AAAA records of the DNS name if it is IPv6 capable but only IPv4 host address is configured, and vice versa.
  • BUT IDEALLY cardano-node should be able to have an IPv4 listen address only, but still be able to make IPv6 outbound connections!

Screenshots and attachments
It was reported in this thread:

https://forum.cardano.org/t/domain-relays-new-cardano-testnet-iohkdev-io-unsupported-remote-target-address-2a0532100-3-3001/99231/1

Additional context

Unfortunately I kind of saw this problem arise a year ago when I saw that cardano-node will not be IPv6 capable if only IPv4 host listen address is configured. That's why I submitted this PR #2773 a year go, but it was not deemed necessary.

Imho the solution is that we should make the cardano-node be able to connect over both IPv4 and IPv6 outbound, without having to specify a listen address for both IPv4 and IPv6.

@weebl2000 weebl2000 added the bug Something isn't working label Apr 9, 2022
@Jimbo4350
Copy link
Contributor

Jimbo4350 commented Nov 3, 2022

@weebl2000 please move this to https://github.com/input-output-hk/ouroboros-network. Any issues networking related should be opened there.

@weebl2000
Copy link
Author

@weebl2000 please move this to https://github.com/input-output-hk/ouroboros-network. Any issues networking related should be opened there.

IntersectMBO/ouroboros-network#4130
done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants