'Temporary failure in name resolution' in QA tests on Gitaly Cluster

The QA tests running on Gitaly Cluster sometime fail with the following error:

Failed to open TCP connection to gitlab-gitaly-cluster.test:80 (getaddrinfo: Temporary failure in name resolution)

A recent failure appears in a job in a scheduled master pipeline: https://gitlab.com/gitlab-org/gitlab-qa-mirror/-/jobs/1843040095

However, the related issues show failure reports from up to 2 months ago.