Which return direct IP address instead of its canonical name, and I think it is wired. So I use 208.67.222.222 (OpenDNS) to resolve www.amazon.com by runing
Which seems alright. So I change the upstream server to OpenDNS and flush the DNS, now the problem seems to be resolved. I am still testing.
The most wired thing I have is when I use 8.8.8.8(Google) as DNS server to resolve www.amazon.com in my Macbook pro which is in the same local network, I get the correct one:
The pihole is hosted on my Ubuntu 18.04.3 LTS server. I just check my /etc/host, I do not have anything related to amazon.com or www.amazon.com in it.
127.0.0.1 localhost
127.0.1.1 apollo
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
Also, I believe if you put something in the host file, it will only effect nslookup www.amazon.com
but not nslookup www.amazon.com 8.8.8.8
I check 8.8.4.4 which is another ip for google dns, I also get these two IPs which are the same as 8.8.8.8.
Do you have any idea which setting/config will effect and only affect google dns(both 8.8.8.8 and 8.8.4.4), but not other dns?...... Or do you have any idea where these two IPs come from?....
Interesting. I totally forget about the DNS`s geographically awareness and I do have VPN active on my server. I will double check tonight to see if the VPN cause this issue.