Skip to content

Instantly share code, notes, and snippets.

@iveney
Created November 7, 2011 05:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iveney/1344235 to your computer and use it in GitHub Desktop.
Save iveney/1344235 to your computer and use it in GitHub Desktop.
iveney@iveney-mbp:~$ # find the IP of dapenti.com
iveney@iveney-mbp:~$ dig dapenti.com
; <<>> DiG 9.7.3-P3 <<>> dapenti.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 30857
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;dapenti.com. IN A
;; ANSWER SECTION:
dapenti.com. 600 IN A 61.147.103.165
;; Query time: 1096 msec
;; SERVER: 192.168.1.254#53(192.168.1.254)
;; WHEN: Sun Nov 6 23:22:03 2011
;; MSG SIZE rcvd: 45
iveney@iveney-mbp:~$ ping dapenti.com
PING dapenti.com (61.147.103.165): 56 data bytes
64 bytes from 61.147.103.165: icmp_seq=0 ttl=107 time=389.540 ms
64 bytes from 61.147.103.165: icmp_seq=1 ttl=107 time=309.544 ms
64 bytes from 61.147.103.165: icmp_seq=2 ttl=107 time=332.533 ms
64 bytes from 61.147.103.165: icmp_seq=3 ttl=107 time=355.095 ms
^C
--- dapenti.com ping statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 309.544/346.678/389.540/29.525 ms
iveney@iveney-mbp:~$ # try to wget the index page using ip
iveney@vpn3-144139:pycg$ wget 61.147.103.165
--2011-11-06 23:26:01-- http://61.147.103.165/
Connecting to 61.147.103.165:80... connected.
HTTP request sent, awaiting response... 302 Object moved
Location: /blog/index.asp [following]
--2011-11-06 23:26:02-- http://61.147.103.165/blog/index.asp
Reusing existing connection to 61.147.103.165:80.
HTTP request sent, awaiting response... 200 OK
Length: 73880 (72K) [text/html]
Saving to: `index.html'
100%[===========================================================================================================================================>] 73,880 41.2K/s in 1.8s
2011-11-06 23:26:05 (41.2 KB/s) - `index.html' saved [73880/73880]
iveney@iveney-mbp:~$ # try to wget the index page using domain name
iveney@iveney-mbp:~$ wget dapenti.com
--2011-11-06 23:22:45-- http://dapenti.com/
Resolving dapenti.com... 61.147.103.165
Connecting to dapenti.com|61.147.103.165|:80... connected.
HTTP request sent, awaiting response... 302 Object moved
Location: /blog/index.asp [following]
--2011-11-06 23:22:46-- http://dapenti.com/blog/index.asp
Connecting to dapenti.com|61.147.103.165|:80... connected.
HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers.
Retrying.
--2011-11-06 23:22:48-- (try: 2) http://dapenti.com/blog/index.asp
Connecting to dapenti.com|61.147.103.165|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 73513 (72K) [text/html]
Saving to: `index.html'
1% [=> ] 1,289 --.-K/s in 0s
2011-11-06 23:22:48 (55.9 MB/s) - Read error at byte 1289/73513 (Connection reset by peer). Retrying.
--2011-11-06 23:22:50-- (try: 3) http://dapenti.com/blog/index.asp
Connecting to dapenti.com|61.147.103.165|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 73513 (72K) [text/html]
Saving to: `index.html'
3% [====> ] 2,737 --.-K/s in 0s
2011-11-06 23:22:51 (7.72 MB/s) - Read error at byte 2737/73513 (Connection reset by peer). Retrying.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment