?????Linux??????????????IP
???????????? ???????[ 2015/8/25 11:12:26 ] ??????????????
???????е???? InterNIC ???????????????? ID ????? CIDR ?????鹹???????? CIDR ?飩?????????????????????е?????????е?????????????·?????????????????е?·?????У???????????е?????????????????????????е????????????????????????磬????? CIDR ?鱻?????? ID ????????????????????????????????? [???? ID??????????] ????????·?????????????е?·?????С?????? CIDR ???е????? IP ?????????????λ?á?
?????????????????????????? Linux ????в??????? IP ?????????????????????????????壬?? Linux ??????????GUI????????????????????????????????????á???????Σ??? Linux ????л?????? IP ???????涼?????壬??????????????
?????????????????????????????curl ?? wget???????????á?
????Curl ???????????:
????curl icanhazip.com
????curl ifconfig.me
????curl curlmyip.com
????curl ip.appspot.com
????curl ipinfo.io/ip
????curl ipecho.net/plain
????curl www.trackip.net/i
????curl JSON??????:
????curl ipinfo.io/json
????curl ifconfig.me/all.json
????curl www.trackip.net/ip?json (?е??a)
????curl XML??????:
????curl ifconfig.me/all.xml
????curl ???????IP??? ????????
????curl ifconfig.me/all
??????? DYDNS ????????? DYDNS ??????????
????curl -s 'http://checkip.dyndns.org' | sed 's/.*Current IP Address: /([0-9/.]*/).*//1/g'
????curl -s http://checkip.dyndns.org/ | grep -o "[[:digit:].]/+"
??????? Wget ???? Curl
????wget http://ipecho.net/plain -O - -q ; echo
????wget http://observebox.com/ip -O - -q ; echo
??????? host ?? dig ????
????????е????????????????? host ?? dig ???
????host -t a dartsclink.com | sed 's/.*has address //'
????dig +short myip.opendns.com @resolver1.opendns.com
????bash ??????:
????#!/bin/bash
????PUBLIC_IP=`wget http://ipecho.net/plain -O - -q ; echo`
????echo $PUBLIC_IP
?????????á?
???????????????д???????????????·?????????? IP ?仯?????浽?????????????????????????????????Щ???????????????????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11