fix(compute/metadata): switch DNS lookup to an absolute lookup
Fixes:
@@ -147,7 +147,7 @@ func testOnGCE() bool {
go func() {
resolver := &net.Resolver{}
- addrs, err := resolver.LookupHost(ctx, "metadata.google.internal")
+ addrs, err := resolver.LookupHost(ctx, "metadata.google.internal.")
if err != nil || len(addrs) == 0 {
resc <- false
return
