-
Notifications
You must be signed in to change notification settings - Fork 308
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
DNS TTL Not Respected by celestia-core Leading to Potential Future Sync Issues #1425
Comments
For reference the issue in celestia-node: celestiaorg/celestia-node#3570 |
One workaround for this issue would be to recreate the connection once it fails after the IP address changes. This way, we don't need to add support to handle the DNS TTL, and the node would request the new IP address from the DNS server. |
Yeah, we could add code such that if the connection failed it would try resolve the DNS again to see if there had been an IP change and if so reconnect to the peer. Ideally we'd only try connect if the error specifically had to do with the network connection and not some malicious behaviour from the peer |
Description:
We identified a potential issue where changes to the DNS entries of nodes in celestia-core are not respected, similar to the issue observed in celestia-node. Although we have not yet encountered sync issues due to this behavior, it could pose a problem in the future. It appears that nodes resolve DNS entries only once at startup and continue using the same IP address indefinitely, ignoring DNS TTL.
Steps to Reproduce:
Suspected Cause:
Nodes resolve DNS entries only once at startup and continue using the same IP address without respecting the TTL. This could affect:
Relevant Code:
celestia-core/p2p/peer.go
Line 140 in c2e6331
Potential Fix:
Repositories Potentially Needing Changes:
celestiaorg/celestia-core
cometbft/cometbft
(upstream implementation of Tendermint)Impact:
Not respecting DNS TTL can lead to potential connectivity and sync issues, affecting network reliability in the future.
Request for Assistance:
The text was updated successfully, but these errors were encountered: