IntersectMBO / IntersectMBO/ouroboros-network
DNS producer tries to resolve and connect to AAAA DNS records even if only IPv4 host listen address is configured
- Dominant language
- Haskell
- Stars
- 296
- Forks
- 104
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 4
Description
**Internal/External**
*External* Copied from https://github.com/input-output-hk/cardano-node/issues/3781
**Area**
*Other* Node connectivity
**Summary**
ouroboros/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**
application 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 https://github.com/input-output-hk/cardano-node/pull/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.
Contributor guide
Assessment
This issue has not been assessed yet.