From 5a481b395aa06f5d1f542562920c0208b2f79fb1 Mon Sep 17 00:00:00 2001 From: Simone Basso Date: Fri, 12 Nov 2021 14:53:15 +0100 Subject: [PATCH] fix(geolocate): use powerdns.org whoami service (#592) This diff needs to be backported to the release/3.11 branch. Reference issue https://github.com/ooni/probe/issues/1865. --- internal/engine/geolocate/resolverlookup.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/engine/geolocate/resolverlookup.go b/internal/engine/geolocate/resolverlookup.go index 51b6b9e..fb25eb1 100644 --- a/internal/engine/geolocate/resolverlookup.go +++ b/internal/engine/geolocate/resolverlookup.go @@ -20,7 +20,7 @@ type resolverLookupClient struct{} func (rlc resolverLookupClient) do(ctx context.Context, r dnsResolver) (string, error) { var ips []string - ips, err := r.LookupHost(ctx, "whoami.akamai.net") + ips, err := r.LookupHost(ctx, "whoami.v4.powerdns.org") if err != nil { return "", err }