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.
This commit is contained in:
Simone Basso 2021-11-12 14:53:15 +01:00 committed by GitHub
parent 0a322ebab0
commit 5a481b395a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}