Skip to content

Instantly share code, notes, and snippets.

Created December 18, 2014 15:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/b1b3b128de491fc97f0e to your computer and use it in GitHub Desktop.
Save anonymous/b1b3b128de491fc97f0e to your computer and use it in GitHub Desktop.
# dig @staite.net old.staite.net
; <<>> DiG 9.8.4-rpz2+rl005.12-P1 <<>> @staite.net old.staite.net
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 5594
;; flags: qr aa rd; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0
;; WARNING: recursion requested but not available
;; QUESTION SECTION:
;old.staite.net. IN A
;; ANSWER SECTION:
old.staite.net. 3600 IN CNAME new.staite.net.
new.staite.net. 3600 IN A 127.0.0.1
;; Query time: 12 msec
;; SERVER: 37.59.46.223#53(37.59.46.223)
;; WHEN: Thu Dec 18 15:29:43 2014
;; MSG SIZE rcvd: 66
--------------------------------------------------------------------
# netcat -lp 80 &
# wget -q http://old.staite.net/
GET / HTTP/1.1
User-Agent: Wget/1.13.4 (linux-gnu)
Accept: */*
Host: old.staite.net
Connection: Keep-Alive
^^^^^ Host is still old.staite.net.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment