{"id":1141,"date":"2016-11-01T11:29:00","date_gmt":"2016-11-01T02:29:00","guid":{"rendered":"http:\/\/www.chihayafuru.jp\/tech\/?p=1141"},"modified":"2017-02-13T14:22:24","modified_gmt":"2017-02-13T05:22:24","slug":"sudo%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89%e3%81%ab%e5%af%be%e3%81%97%e3%81%a6unable-to-resolve-host-xxx%e3%81%8c%e8%a1%a8%e7%a4%ba%e3%81%95%e3%82%8c%e3%82%8b","status":"publish","type":"post","link":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/archives\/1141","title":{"rendered":"sudo\u30b3\u30de\u30f3\u30c9\u306b\u5bfe\u3057\u3066&#8221;unable to resolve host xxx&#8221;\u304c\u8868\u793a\u3055\u308c\u308b"},"content":{"rendered":"<h3>1. sudo\u30b3\u30de\u30f3\u30c9\u306e\u5b9f\u884c\u7d50\u679c\u3092\u78ba\u8a8d\u3059\u308b<\/h3>\n<pre class=\"lang:sh mark:2 decode:true \" >$ sudo cat \/etc\/hosts\r\nsudo: unable to resolve host MYHOSTNAME\r\n127.0.0.1 localhost\r\n\r\n# The following lines are desirable for IPv6 capable hosts\r\n::1 ip6-localhost ip6-loopback\r\nfe00::0 ip6-localnet\r\nff00::0 ip6-mcastprefix\r\nff02::1 ip6-allnodes\r\nff02::2 ip6-allrouters\r\nff02::3 ip6-allhosts<\/pre>\n<p><!--more--><\/p>\n<h3>2. \/etc\/hosts\u306b\u30db\u30b9\u30c8\u540d\u3092\u8ffd\u52a0\u3059\u308b<\/h3>\n<pre class=\"lang:sh decode:true \" >$ sudo sh -c 'echo 127.0.1.1 $(hostname) &gt;&gt; \/etc\/hosts'<\/pre>\n<h3>3. \/etc\/hosts\u306e\u7de8\u96c6\u7d50\u679c\u3092\u78ba\u8a8d\u3059\u308b<\/h3>\n<pre class=\"lang:sh decode:true \" >$ sudo cat \/etc\/hosts\r\n127.0.0.1 localhost\r\n\r\n# The following lines are desirable for IPv6 capable hosts\r\n::1 ip6-localhost ip6-loopback\r\nfe00::0 ip6-localnet\r\nff00::0 ip6-mcastprefix\r\nff02::1 ip6-allnodes\r\nff02::2 ip6-allrouters\r\nff02::3 ip6-allhosts\r\n127.0.1.1 MYHOSTNAME<\/pre>\n<p>&quot;unable resolve host &#8230;&quot;\u304c\u8868\u793a\u3055\u308c\u306a\u304f\u306a\u3063\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. sudo\u30b3\u30de\u30f3\u30c9\u306e\u5b9f\u884c\u7d50\u679c\u3092\u78ba\u8a8d\u3059\u308b $ sudo cat \/etc\/hosts sudo: unable to resolve host MYHOSTNAME 127.0.0.1 localhost # The  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[6],"class_list":["post-1141","post","type-post","status-publish","format-standard","hentry","category-memo","tag-unix"],"_links":{"self":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/1141","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/comments?post=1141"}],"version-history":[{"count":6,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/1141\/revisions"}],"predecessor-version":[{"id":1147,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/1141\/revisions\/1147"}],"wp:attachment":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/media?parent=1141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/categories?post=1141"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/tags?post=1141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}