Skip to content

Instantly share code, notes, and snippets.

@averagesecurityguy
Created December 12, 2014 17:25
Show Gist options
  • Save averagesecurityguy/b1da5a63a75a4aed3804 to your computer and use it in GitHub Desktop.
Save averagesecurityguy/b1da5a63a75a4aed3804 to your computer and use it in GitHub Desktop.
Odd DNS Behavior
When I do a dig for googleusercontent.com I don't get an answer. If I specify the DNS server IP address I do get an answer. Not sure what is happening but curl and Python cannot resolve the address while the browser can. Any ideas?
$ dig googleusercontent.com
; <<>> DiG 9.8.3-P1 <<>> googleusercontent.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 23113
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;googleusercontent.com. IN A
;; Query time: 0 msec
;; SERVER: 10.230.229.1#53(10.230.229.1)
;; WHEN: Fri Dec 12 12:17:40 2014
;; MSG SIZE rcvd: 39
$ dig @10.230.229.1 googleusercontent.com
; <<>> DiG 9.8.3-P1 <<>> @10.230.229.1 googleusercontent.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 14764
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;googleusercontent.com. IN A
;; AUTHORITY SECTION:
googleusercontent.com. 60 IN SOA ns1.google.com. dns-admin.google.com. 1576005 21600 3600 1209600 300
;; Query time: 29 msec
;; SERVER: 10.230.229.1#53(10.230.229.1)
;; WHEN: Fri Dec 12 12:19:50 2014
;; MSG SIZE rcvd: 109
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment