Skip to content

redis-cli adds -4 / -6 options to determine IPV4 / IPV6 priority in DNS lookup#11315

Merged
yossigo merged 5 commits intoredis:unstablefrom
enjoy-binbin:redis_cli_4_6_options
Dec 24, 2023
Merged

redis-cli adds -4 / -6 options to determine IPV4 / IPV6 priority in DNS lookup#11315
yossigo merged 5 commits intoredis:unstablefrom
enjoy-binbin:redis_cli_4_6_options

Conversation

@enjoy-binbin
Copy link
Contributor

This PR, we added -4 and -6 options to redis-cli to determine
IPV4 / IPV6 priority in DNS lookup.
This was mentioned in #11151 (comment)

For now it's only used in CLUSTER MEET.

The options also made it possible to reliably test dns lookup in CI,
using this option, we can add some localhost tests for #11151.

The commit was cherry-picked from #11151, back then we decided to split the PR.

@hwware
Copy link
Contributor

hwware commented Sep 28, 2022

I do not review the codes, but I have one question first, the option "-4" or "-6" is mandatory or there is another option without argument.
When there is no argument, it is equal to “-4” ? Thanks

@enjoy-binbin
Copy link
Contributor Author

They are all optional, when not passed in, the effect is the same as before

@yossigo yossigo added the release-notes indication that this issue needs to be mentioned in the release notes label Dec 24, 2023
@yossigo yossigo merged commit 09e0d33 into redis:unstable Dec 24, 2023
@enjoy-binbin enjoy-binbin deleted the redis_cli_4_6_options branch December 25, 2023 01:52
roggervalf pushed a commit to roggervalf/redis that referenced this pull request Feb 11, 2024
…NS lookup (redis#11315)

This PR, we added -4 and -6 options to redis-cli to determine
IPV4 / IPV6 priority in DNS lookup.
This was mentioned in
redis#11151 (comment)

For now it's only used in CLUSTER MEET.

The options also made it possible to reliably test dns lookup in CI,
using this option, we can add some localhost tests for redis#11151.

The commit was cherry-picked from redis#11151, back then we decided to split
the PR.

Co-authored-by: Viktor Söderqvist <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-notes indication that this issue needs to be mentioned in the release notes

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants