diff --git a/test/e2e/network/dns_common.go b/test/e2e/network/dns_common.go index fa6465a200e..04ba1d6dd08 100644 --- a/test/e2e/network/dns_common.go +++ b/test/e2e/network/dns_common.go @@ -128,7 +128,7 @@ func (t *dnsTestCommon) runDig(dnsName, target string) []string { Command: cmd, Namespace: t.f.Namespace.Name, PodName: t.utilPod.Name, - ContainerName: "util", + ContainerName: t.utilPod.Spec.Containers[0].Name, CaptureStdout: true, CaptureStderr: true, })