引き続きモンゴル旅行のタイミングなので、やってみる
今回は滞在先の IP アドレスを調べて whois の Country の項目を見て場所を見てみる
IP アドレスを調べて、いろいろ使いたいので変数に入れておく
$ curl https://ifconfig.me/
66.181.174.90
$ IPADDR=$(curl https://ifconfig.me/ -s)
echo $IPADDR
66.181.174.90whois から Country の項目を抽出した
MN が確認できる
whois $IPADDR | grep -i country
Country: AU
country: MN
country: MN
country: ZZ
country: MN
country: MNAU は OrgName: Asia Pacific Network Information Centre となっており、 ZZ は role: ABUSE UNIVISIONLLCMN となっていた