I hit this because raw.githubusercontent.com seems to have been blocked in my country with DNS servers 8.8.8.8 or 1.1.1.1 it gets resolved to 202.83.21.15, this is an ip of my ISP and not raw.githubusercontent.com
$ dig +dnssec @8.8.8.8 raw.githubusercontent.com
; <<>> DiG 9.18.10 <<>> +dnssec @8.8.8.8 raw.githubusercontent.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 33984
;; flags: qr aa; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;raw.githubusercontent.com. IN A
;; ANSWER SECTION:
raw.githubusercontent.com. 10 IN A 202.83.21.15
;; Query time: 0 msec
;; SERVER: 8.8.8.8#53(8.8.8.8) (UDP)
;; WHEN: Fri Jan 06 11:00:10 IST 2023
;; MSG SIZE rcvd: 84
Whois of the wrong IP
whois -H 202.83.21.15
% [whois.apnic.net]
% Whois data copyright terms http://www.apnic.net/db/dbcopyright.html
% Information related to '202.83.21.0 - 202.83.21.254'
% Abuse contact for '202.83.21.0 - 202.83.21.254' is '[email protected]'
inetnum: 202.83.21.0 - 202.83.21.254
netname: CableLite
descr: Broad Band Internet Service Provider, India
country: IN
geoloc: 12.984080 77.579818
admin-c: IA145-AP
tech-c: IT120-AP
abuse-c: AC1823-AP
status: ALLOCATED NON-PORTABLE
mnt-by: MAINT-IN-ACT
mnt-irt: IRT-CABLELITE-IN
last-modified: 2021-01-15T11:13:16Z
source: APNIC
irt: IRT-CABLELITE-IN
address: Atria Convergence Technologies Pvt Ltd
address: # 1, 2nd Floor, Indian Express Building,
address: Queen's Road, Bangalore - 560 001
e-mail: [email protected]
abuse-mailbox: [email protected]
admin-c: IA145-AP
tech-c: IT120-AP
....
Same website when i query over DoH I get the correct ip
curl -H 'accept: application/dns-json' 'https://cloudflare-dns.com/dns-query?name=raw.githubusercontent.com&type=A' 2>/dev/null | jq .Answer[0]
{
"name": "raw.githubusercontent.com",
"type": 1,
"TTL": 446,
"data": "185.199.111.133"
}