host¶
descobre o IP de um domínio:
> host riseup.net
riseup.net has address 198.252.153.69
riseup.net mail is handled by 10 mx1.riseup.net.
> host 198.252.153.69
69.153.252.198.in-addr.arpa domain name pointer lyre.riseup.net.
ifconfig¶
informações sobre adaptadores de rede. Dali sai meu IP interno.
no debian:
> /sbin/ifconfig
ip addr¶
retorna o mesmo que o ifconfig.
traceroute¶
traça a rota de uma requisição.
> traceroute riseup.net
traceroute to riseup.net (198.252.153.69), 30 hops max, 60 byte packets
1 10.42.0.1 (10.42.0.1) 172.535 ms 175.100 ms 175.511 ms
2 gw.colo2-arin01.koumbit.net (199.58.81.193) 176.373 ms 178.012 ms 177.556 ms
3 netel.ic-netel0.koumbit.net (64.15.66.17) 180.384 ms 180.787 ms 183.831 ms
4 199.193.52.69 (199.193.52.69) 184.239 ms 184.287 ms 184.315 ms
5 te0-0-2-2.nr11.b020176-1.ymq02.atlas.cogentco.com (38.104.155.25) 185.592 ms 186.171 ms 186.545 ms
6 te0-0-2-3.agr11.ymq02.atlas.cogentco.com (154.24.5.189) 186.621 ms 175.558 ms te0-0-2-3.agr12.ymq02.atlas.cogentco.com (154.24.5.193) 175.791 ms
7 te0-7-0-3.ccr22.ymq02.atlas.cogentco.com (154.54.80.57) 176.207 ms te0-0-1-3.ccr22.ymq02.atlas.cogentco.com (154.54.40.153) 176.233 ms 176.611 ms
8 hu0-4-0-1.ccr21.ymq01.atlas.cogentco.com (154.54.25.126) 177.233 ms hu0-4-0-1.ccr22.ymq01.atlas.cogentco.com (154.54.31.222) 178.321 ms hu0-4-0-1.ccr21.ymq01.atlas.cogentco.com (154.54.25.126) 177.741 ms
9 be2090.ccr21.yyz02.atlas.cogentco.com (154.54.30.205) 186.890 ms be2093.ccr22.yyz02.atlas.cogentco.com (154.54.44.105) 187.376 ms be2090.ccr21.yyz02.atlas.cogentco.com (154.54.30.205) 187.794 ms
10 be2994.ccr22.cle04.atlas.cogentco.com (154.54.31.233) 198.576 ms 198.532 ms be2993.ccr21.cle04.atlas.cogentco.com (154.54.31.225) 197.967 ms
11 be2717.ccr41.ord01.atlas.cogentco.com (154.54.6.221) 203.648 ms be2718.ccr42.ord01.atlas.cogentco.com (154.54.7.129) 204.471 ms 205.344 ms
12 be2832.ccr22.mci01.atlas.cogentco.com (154.54.44.169) 207.731 ms 208.262 ms be2831.ccr21.mci01.atlas.cogentco.com (154.54.42.165) 209.231 ms
13 be3035.ccr21.den01.atlas.cogentco.com (154.54.5.89) 221.124 ms 222.104 ms 223.165 ms
14 be3038.ccr21.slc01.atlas.cogentco.com (154.54.42.97) 235.716 ms be3037.ccr21.slc01.atlas.cogentco.com (154.54.41.145) 236.184 ms be3038.ccr21.slc01.atlas.cogentco.com (154.54.42.97) 236.139 ms
15 be2085.ccr21.sea02.atlas.cogentco.com (154.54.2.197) 255.374 ms 258.564 ms 258.518 ms
16 be3053.ccr22.sea02.atlas.cogentco.com (154.54.2.38) 257.091 ms 257.395 ms 257.952 ms
17 wren.riseup.net (198.252.153.1) 258.513 ms 249.759 ms 250.924 ms
IP público¶
para descobrir meu IP público:
> curl -s checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//'