Skip to content

Instantly share code, notes, and snippets.

@timperrett
Created February 6, 2017 18:04
Show Gist options
  • Save timperrett/40b3efac876a33b076f50fa3af5a6d48 to your computer and use it in GitHub Desktop.
Save timperrett/40b3efac876a33b076f50fa3af5a6d48 to your computer and use it in GitHub Desktop.
root@d0c3205330f6:/build#
root@d0c3205330f6:/build# nslookup localhost
Server: 10.0.2.3
Address: 10.0.2.3#53
Name: localhost
Address: 127.0.0.1
root@d0c3205330f6:/build# dig localhost
; <<>> DiG 9.10.3-P4-Ubuntu <<>> localhost
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 57747
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 2
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;localhost. IN A
;; ANSWER SECTION:
localhost. 604800 IN A 127.0.0.1
;; AUTHORITY SECTION:
localhost. 604800 IN NS localhost.
;; ADDITIONAL SECTION:
localhost. 604800 IN AAAA ::1
;; Query time: 1 msec
;; SERVER: 10.0.2.3#53(10.0.2.3)
;; WHEN: Mon Feb 06 18:04:37 UTC 2017
;; MSG SIZE rcvd: 96
root@d0c3205330f6:/build#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment