{
    "componentChunkName": "component---src-templates-blog-post-js",
    "path": "/2022-07-22_check_the_location_by_whois/",
    "result": {"data":{"site":{"siteMetadata":{"title":"365"}},"markdownRemark":{"id":"267ac50f-5b37-5ceb-beab-f571c148ed13","excerpt":"引き続きモンゴル旅行のタイミングなので、やってみる 今回は滞在先の IP アドレスを調べて whois の Country の項目を見て場所を見てみる IP アドレスを調べて、いろいろ使いたいので変数に入れておく whois から Country…","html":"<p>引き続きモンゴル旅行のタイミングなので、やってみる<br>\n今回は滞在先の IP アドレスを調べて whois の Country の項目を見て場所を見てみる</p>\n<p>IP アドレスを調べて、いろいろ使いたいので変数に入れておく</p>\n<div class=\"gatsby-highlight\" data-language=\"sh\"><pre class=\"language-sh\"><code class=\"language-sh\">$ curl https://ifconfig.me/\n66.181.174.90\n\n$ IPADDR=$(curl https://ifconfig.me/ -s)\necho $IPADDR\n66.181.174.90</code></pre></div>\n<p>whois から Country の項目を抽出した<br>\n<code class=\"language-text\">MN</code> が確認できる</p>\n<div class=\"gatsby-highlight\" data-language=\"sh\"><pre class=\"language-sh\"><code class=\"language-sh\">whois $IPADDR | grep -i country\nCountry:        AU\ncountry:        MN\ncountry:        MN\ncountry:        ZZ\ncountry:        MN\ncountry:        MN</code></pre></div>\n<p><code class=\"language-text\">AU</code> は <code class=\"language-text\">OrgName: Asia Pacific Network Information Centre</code> となっており、 <code class=\"language-text\">ZZ</code> は  <code class=\"language-text\">role: ABUSE UNIVISIONLLCMN</code> となっていた</p>\n<h2>参考</h2>\n<ul>\n<li><a href=\"https://oji-cloud.net/2020/10/08/post-5607/\">IPアドレスからWHOISの国コード,組織を一覧するワンライナー | Oji-Cloud</a></li>\n</ul>","frontmatter":{"title":"今海外に居るので whois で場所を見てみる","date":"2022/07/22","description":null}},"previous":{"fields":{"slug":"/2022-07-21_github_login_mail/"},"frontmatter":{"title":"海外から GitHub にログインしてメールが来た"}},"next":{"fields":{"slug":"/2022-07-24_vpn_gate/"},"frontmatter":{"title":"IP アドレスでアクセス制限された Web ページがあったので VPN で接続してアクセスをする"}}},"pageContext":{"id":"267ac50f-5b37-5ceb-beab-f571c148ed13","previousPostId":"efea828e-4897-5886-ae3e-c1ff83d0e453","nextPostId":"3c22e390-f029-51ec-ad2c-bb189f439309"}},
    "staticQueryHashes": ["2841359383","3257411868"]}