Last active
September 15, 2019 13:08
-
-
Save lawliet89/a376473c24bbc7c9f27695c9bc66a289 to your computer and use it in GitHub Desktop.
Indonesia Reddit Banning via DNS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ dig @8.8.8.8 reddit.com | |
; <<>> DiG 9.11.5-P1-1ubuntu2.5-Ubuntu <<>> @8.8.8.8 reddit.com | |
; (1 server found) | |
;; global options: +cmd | |
;; Got answer: | |
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 25135 | |
;; flags: qr rd; QUERY: 1, ANSWER: 2, AUTHORITY: 1, ADDITIONAL: 1 | |
;; WARNING: recursion requested but not available | |
;; OPT PSEUDOSECTION: | |
; EDNS: version: 0, flags:; udp: 4096 | |
;; QUESTION SECTION: | |
;reddit.com. IN A | |
;; ANSWER SECTION: | |
reddit.com. 900 IN CNAME internetpositif.uzone.id. | |
internetpositif.uzone.id. 30 IN A 36.86.63.185 | |
;; AUTHORITY SECTION: | |
trustpositifkominfo. 900 IN SOA localhost. aduankonten.mail.kominfo.go.id. 2019091100 1000 1000 2592000 900 | |
;; Query time: 8 msec | |
;; SERVER: 8.8.8.8#53(8.8.8.8) | |
;; WHEN: Sun Sep 15 18:52:46 +08 2019 | |
;; MSG SIZE rcvd: 187 | |
$ dig reddit.com @h1.1.1.1 | |
; <<>> DiG 9.11.5-P1-1ubuntu2.5-Ubuntu <<>> reddit.com @h1.1.1.1 | |
;; global options: +cmd | |
;; Got answer: | |
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 48259 | |
;; flags: qr rd; QUERY: 1, ANSWER: 2, AUTHORITY: 1, ADDITIONAL: 1 | |
;; WARNING: recursion requested but not available | |
;; OPT PSEUDOSECTION: | |
; EDNS: version: 0, flags:; udp: 4096 | |
;; QUESTION SECTION: | |
;reddit.com. IN A | |
;; ANSWER SECTION: | |
reddit.com. 900 IN CNAME internetpositif.uzone.id. | |
internetpositif.uzone.id. 30 IN A 36.86.63.185 | |
;; AUTHORITY SECTION: | |
trustpositifkominfo. 900 IN SOA localhost. aduankonten.mail.kominfo.go.id. 2019091100 1000 1000 2592000 900 | |
;; Query time: 3 msec | |
;; SERVER: 36.86.63.182#53(36.86.63.182) | |
;; WHEN: Sun Sep 15 18:58:17 +08 2019 | |
;; MSG SIZE rcvd: 187 | |
$ dig reddit.com @8.8.8.8 | |
; <<>> DiG 9.11.5-P1-1ubuntu2.5-Ubuntu <<>> reddit.com @8.8.8.8 | |
;; global options: +cmd | |
;; Got answer: | |
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 2936 | |
;; flags: qr rd; QUERY: 1, ANSWER: 2, AUTHORITY: 1, ADDITIONAL: 1 | |
;; WARNING: recursion requested but not available | |
;; OPT PSEUDOSECTION: | |
; EDNS: version: 0, flags:; udp: 4096 | |
;; QUESTION SECTION: | |
;reddit.com. IN A | |
;; ANSWER SECTION: | |
reddit.com. 900 IN CNAME internetpositif.uzone.id. | |
internetpositif.uzone.id. 30 IN A 36.86.63.185 | |
;; AUTHORITY SECTION: | |
trustpositifkominfo. 900 IN SOA localhost. aduankonten.mail.kominfo.go.id. 2019091100 1000 1000 2592000 900 | |
;; Query time: 6 msec | |
;; SERVER: 8.8.8.8#53(8.8.8.8) | |
;; WHEN: Sun Sep 15 18:58:35 +08 2019 | |
;; MSG SIZE rcvd: 187 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# go get github.com/picatz/doh | |
$ doh query reddit.com | jq | |
{ | |
"Status": 0, | |
"TC": false, | |
"RD": true, | |
"RA": true, | |
"AD": false, | |
"CD": false, | |
"Question": [ | |
{ | |
"name": "reddit.com.", | |
"type": 1 | |
} | |
], | |
"Answer": [ | |
{ | |
"name": "reddit.com.", | |
"type": 1, | |
"TTL": 257, | |
"data": "151.101.1.140" | |
}, | |
{ | |
"name": "reddit.com.", | |
"type": 1, | |
"TTL": 257, | |
"data": "151.101.65.140" | |
}, | |
{ | |
"name": "reddit.com.", | |
"type": 1, | |
"TTL": 257, | |
"data": "151.101.129.140" | |
}, | |
{ | |
"name": "reddit.com.", | |
"type": 1, | |
"TTL": 257, | |
"data": "151.101.193.140" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment