Far away datacenter used

Hi,

I’m located in Dubai

If I do a tracert to 1.1.1.1 my last hop is 195.229.4.43 which is located in Dubai which is good

However i’m using “dnscrypt proxy” and when i run dnscrypt-proxy -resolve example.com
I get this result, with resolver IP 162.158.117.176 ; why is it using a Japanese server?

C:\dnscrypt>dnscrypt-proxy -resolve example.com
Resolving [example.com]

Domain exists: yes, 2 name servers found
Canonical name: example.com.
IP addresses: 2606:2800:220:1:248:1893:25c8:1946, 93.184.216.34
TXT records: v=spf1 -all
Resolver IP: 162.158.117.176

162.158.117.176 seems to be located in Japan which also is confirmed with a ping of >150ms

Any idea why/how dnscrypt would not pick the closest server?

also 1.1.1.1/help is saying I’m using the Dubai datacenter which doesn’t match the output from the dnscrypt resolve

https://1.1.1.1/help#eyJpc0NmIjoiWWVzIiwiaXNEb3QiOiJObyIsImlzRG9oIjoiWWVzIiwicmVzb2x2ZXJJcC0xLjEuMS4xIjoiWWVzIiwicmVzb2x2ZXJJcC0xLjAuMC4xIjoiWWVzIiwicmVzb2x2ZXJJcC0yNjA2OjQ3MDA6NDcwMDo6MTExMSI6IlllcyIsInJlc29sdmVySXAtMjYwNjo0NzAwOjQ3MDA6OjEwMDEiOiJZZXMiLCJkYXRhY2VudGVyTG9jYXRpb24iOiJEWEIiLCJpc1dhcnAiOiJObyIsImlzcE5hbWUiOiJDbG91ZGZsYXJlIiwiaXNwQXNuIjoiMTMzMzUifQ==

That is a Cloudflare IP address. Cloudflare runs anycast network. A given IP address is generally advertised out of hundreds of our datacenters at the same time.