Example:
Code: Select all
[email protected] ~ $ host www.google.com
www.google.com has address 74.125.225.211
www.google.com has address 74.125.225.212
www.google.com has address 74.125.225.208
www.google.com has address 74.125.225.209
www.google.com has address 74.125.225.210
www.google.com has IPv6 address 2607:f8b0:400f:801::1014
[email protected] ~ $ wget www.google.com -O /dev/null
--2012-12-16 09:07:45-- http://www.google.com/
Resolving www.google.com (www.google.com)... failed: Name or service not known.
wget: unable to resolve host address `www.google.com'
Code: Select all
[email protected] ~ $ wget -4 www.google.com -O /dev/null
--2012-12-16 09:08:22-- http://www.google.com/
Resolving www.google.com (www.google.com)... 74.125.225.211, 74.125.225.212, 74.125.225.208, ...
Connecting to www.google.com (www.google.com)|74.125.225.211|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `/dev/null'
[ <=> ] 13,847 36.2K/s in 0.4s
2012-12-16 09:08:22 (36.2 KB/s) - `/dev/null' saved [13847]
Code: Select all
inet4_only = on
Code: Select all
[email protected] ~ $ wget www.google.com -O /dev/null
--2012-12-16 09:24:28-- http://www.google.com/
Resolving www.google.com (www.google.com)... 74.125.225.210, 74.125.225.211, 74.125.225.212, ...
Connecting to www.google.com (www.google.com)|74.125.225.210|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `/dev/null'
[ <=> ] 13,907 12.9K/s in 1.1s
2012-12-16 09:24:29 (12.9 KB/s) - `/dev/null' saved [13907]