Option to ipv6 in DNS lookup for backups

I am working on getting our FDB backup in Google Cloud Platform to work directly with Google Cloud Storage, instead of our current setup of using the deprecated Minio gateway.

One of our issues is the same as reported in Fdbbackup not work with ipv6 resolver, work with ipv4, only we don’t have an easy option to turn on ipv6.

The behaviour to prefer ipv6 seems to be introduced by Prefer IPv6 in hostname resolving. by RenxuanW · Pull Request #7733 · apple/foundationdb · GitHub, which was backported to 7.1.

Would it be possible to add a knob to prefer ipv4?

I have confirmed that I am able to talk to GCS if I do the DNS lookup manually and put the ipv4 address in /etc/hosts, but I don’t think that is good solution.

1 Like