make an option to use TCP for peer-list dns lookups

Description

https://pkg.go.dev/net#Resolver.LookupSRV has proto parameter and it's pretty simple to implement it in peer-list:
https://github.com/percona/percona-xtradb-cluster-operator/blob/89f4814ad6710ab9acfdb106a7ef4f25e20c32df/cmd/peer-list/main.go#L51

Please implement a possibility to use tcp for peer-list SRV lookups. Services filling SRV records with many items and the resulting response could be too big for UDP settings. TCP is more reliable and allows to get a full response.

Environment

None

AFFECTED CS IDs

CS0037220

Activity

Aaditya Dubey August 28, 2023 at 4:37 PM

Hi ,

Thank you for the report and feedback.

Details

Assignee

Reporter

Needs QA

Yes

None

None

Priority

Smart Checklist

Created August 24, 2023 at 9:40 AM
Updated January 15, 2025 at 4:25 PM
Loading...