{"id":18194,"date":"2020-04-02T14:56:33","date_gmt":"2020-04-02T05:56:33","guid":{"rendered":"https:\/\/www.skyarch.net\/blog\/?p=18194"},"modified":"2024-04-08T16:33:35","modified_gmt":"2024-04-08T07:33:35","slug":"hosts%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%9fweb%e3%83%9a%e3%83%bc%e3%82%b8%e7%a2%ba%e8%aa%8d","status":"publish","type":"post","link":"https:\/\/www.skyarch.net\/blog\/hosts%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%9fweb%e3%83%9a%e3%83%bc%e3%82%b8%e7%a2%ba%e8%aa%8d\/","title":{"rendered":"hosts\u3092\u4f7f\u3063\u305fWeb\u30da\u30fc\u30b8\u78ba\u8a8d"},"content":{"rendered":"<h2>\u3053\u3068\u306e\u306f\u3058\u307e\u308a<\/h2>\n<p>\u5f0a\u793e\u306e\u6280\u8853\u30b5\u30dd\u30fc\u30c8\u306e\u30e1\u30fc\u30eb\u5b9b\u306b\u306f\u3001\u3088\u304f\u3053\u306e\u3088\u3046\u306a\u3054\u4f9d\u983c\u3092\u9802\u304d\u307e\u3059\u3002<\/p>\n<blockquote>\n<ul>\n<li>\u300c\u65b0\u3057\u3044\u30b5\u30fc\u30d0\u306eWeb\u30da\u30fc\u30b8\u8868\u793a\u306e\u78ba\u8a8d\u65b9\u6cd5\u306f\u3069\u3046\u3059\u308c\u3070\u826f\u3044\uff1f\u300d<\/li>\n<li>\u300cLB\u3068\u304bCloudFront\u3068\u304b\u3092\u5c0e\u5165\u3057\u305f\u72b6\u614b\u306e\u30da\u30fc\u30b8\u78ba\u8a8d\u304c\u3057\u305f\u3044\uff01\u300d<\/li>\n<li>\u300c\u65b0\u3057\u3044\u30b5\u30d6\u30c9\u30e1\u30a4\u30f3\u3092\u4f5c\u3063\u3066\u3082\u3089\u3063\u305f\u3051\u3069\u3001\u78ba\u8a8d\u65b9\u6cd5\u304c\u308f\u304b\u3089\u306a\u3044\u3002\u300d<\/li>\n<\/ul>\n<\/blockquote>\n<p>\u3053\u306e\u3088\u3046\u306a\u3001\u901a\u5e38\u3067\u306f\u78ba\u8a8d\u3067\u304d\u306a\u3044\u65b0\u3057\u3044\u30b5\u30fc\u30d0\u306a\u3069\u306b\u8a2d\u7f6e\u3057\u305f\u30b3\u30f3\u30c6\u30f3\u30c4\u3092<br \/>\n\u30c9\u30e1\u30a4\u30f3\u540d\u3092\u4f7f\u3063\u3066\u78ba\u8a8d\u3059\u308b\u65b9\u6cd5\u30922\u3064\u3001\u3054\u7d39\u4ecb\u3055\u305b\u3066\u9802\u304d\u307e\u3059\u3002<\/p>\n<h2>TL;DL<\/h2>\n<p>\u4eca\u56de\u306fhosts\u3092\u5229\u7528\u3057\u305f\u30da\u30fc\u30b8\u78ba\u8a8d\u65b9\u6cd5\u30922\u3064\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<ol>\n<li>curl \u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u5229\u7528<\/li>\n<li>hosts \u30d5\u30a1\u30a4\u30eb\u3092\u66f8\u304d\u63db\u3048\u308b<\/li>\n<\/ol>\n<h2>hosts\u3068\u306f<\/h2>\n<p>Wikipedia\u306e\u8a18\u4e8b\u306b\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306a\u8a18\u8f09\u304c\u3054\u3056\u3044\u307e\u3057\u305f\u3002<\/p>\n<blockquote><p>\n  hosts\uff08\u30db\u30b9\u30c4\uff09\u3068\u306f\u3001TCP\/IP\u3092\u5229\u7528\u3059\u308b\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u306b\u304a\u3051\u308b\u30db\u30b9\u30c8\u540d\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u3001IP\u30a2\u30c9\u30ec\u30b9\u3068\u30db\u30b9\u30c8\u540d\u306e\u5bfe\u5fdc\u3092\u8a18\u8ff0\u3057\u305f\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3067\u3042\u308b\u3002<\/p>\n<p>  (<a href=\"https:\/\/ja.wikipedia.org\/wiki\/Hosts\">https:\/\/ja.wikipedia.org\/wiki\/Hosts<\/a> \u3088\u308a)\n<\/p><\/blockquote>\n<p>\u7c21\u5358\u306b\u4f8b\u3048\u308b\u306a\u3089\u3070\u3001\u30bf\u30a6\u30f3\u25cb\u30fc\u30af\u306e\u3088\u3046\u306a\u96fb\u8a71\u5e33\u3092\u60f3\u50cf\u3057\u3066\u9802\u3051\u308b\u3068\u308f\u304b\u308a\u3084\u3059\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p><strong>\u300c\u30b9\u30ab\u30a4\u30a2\u30fc\u30c1\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30b9\u300d\u306b\u96fb\u8a71<\/strong> \u2192 <strong>\u300c03-6743-1100\u300d<\/strong> \u3068\u3044\u3046\u3088\u3046\u306b\u3001<br \/>\n<strong>\u300c\u65b0\u3057\u3044\u30b5\u30fc\u30d0\u300d\u306b\u63a5\u7d9a<\/strong> \u2192 <strong>\u300c\u65b0\u30b5\u30fc\u30d0\u306eIP\u30a2\u30c9\u30ec\u30b9\u300d<\/strong> \u3068\u3044\u3046\u3082\u306e\u3092\u8a2d\u5b9a\u3059\u308b\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>\u65b0\u54c1\u306e\u643a\u5e2f\u96fb\u8a71\u306e\u69d8\u306b\u3001\u3053\u306e\u96fb\u8a71\u5e33\u306e\u3088\u3046\u306ahosts\u306b\u5bfe\u5fdc\u8868\u3092\u767b\u9332\u3067\u304d\u308b\u306e\u3067\u3059\u3002<\/p>\n<div id=\"attachment_18197\" style=\"width: 286px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2020\/04\/townwork.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-18197\" class=\"size-medium wp-image-18197\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2020\/04\/townwork-276x300.png\" alt=\"\u30bf\u30a6\u25cb\u30ef\u30fc\u30af\" width=\"276\" height=\"300\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2020\/04\/townwork-276x300.png 276w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2020\/04\/townwork.png 368w\" sizes=\"auto, (max-width: 276px) 100vw, 276px\" \/><\/a><p id=\"caption-attachment-18197\" class=\"wp-caption-text\">\u30bf\u30a6\u25cb\u30ef\u30fc\u30af\u3092\u30a4\u30e1\u30fc\u30b8<\/p><\/div>\n<h3>\u767b\u9332\u3059\u308bIP\u30a2\u30c9\u30ec\u30b9<\/h3>\n<p>\u307e\u305a\u306f\u3001hosts\u306b\u767b\u9332\u3059\u308bIP\u30a2\u30c9\u30ec\u30b9\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<p>\u767b\u9332\u3059\u308bIP\u30a2\u30c9\u30ec\u30b9\u306f\u3001 <strong>\u3069\u3053\u3092\u7d4c\u7531\u3057\u3066Web\u30da\u30fc\u30b8\u3092\u8868\u793a\u3059\u308b\u306e\u304b<\/strong> \u306b\u3088\u3063\u3066\u5909\u308f\u308a\u307e\u3059\u3002<br \/>\n\u3053\u3053\u3067\u306f\u3001\u3088\u304f\u3042\u308b\u30d1\u30bf\u30fc\u30f3\uff12\u3064\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h4>\u30b5\u30fc\u30d0\u76f4\u63a5<\/h4>\n<p>\u30b5\u30fc\u30d0\u3078\u76f4\u63a5\u30a2\u30af\u30bb\u30b9\u3057\u3066Web\u30da\u30fc\u30b8\u8868\u793a\u3092\u3059\u308b\u5834\u5408\u3001\u30b0\u30ed\u30fc\u30d0\u30ebIP\u30a2\u30c9\u30ec\u30b9\u3092\u5229\u7528\u3057\u307e\u3059\u3002<br \/>\nAWS\u306e\u5834\u5408\u306f\u3001 <strong>Elastic IP\u30a2\u30c9\u30ec\u30b9 (EIP)<\/strong> \u3084\u81ea\u52d5\u3067\u5272\u308a\u632f\u3089\u308c\u305f\u30b0\u30ed\u30fc\u30d0\u30ebIP\u30a2\u30c9\u30ec\u30b9\u3092\u5229\u7528\u3057\u307e\u3059\u3002<\/p>\n<h4>LB (ELB) \u3084CDN(CloudFront) \u306a\u3069\u3092\u5229\u7528<\/h4>\n<p>\u30b5\u30fc\u30d0\u3078\u76f4\u63a5\u30a2\u30af\u30bb\u30b9\u3057\u306a\u3044\u5834\u5408\u3001\u4e00\u756a\u6700\u521d\u306e\u5165\u53e3\u90e8\u5206\u306e\u30b0\u30ed\u30fc\u30d0\u30ebIP\u30a2\u30c9\u30ec\u30b9\u304c\u5fc5\u8981\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u74b0\u5883\u306e\u69cb\u6210\u306b\u3088\u3063\u3066\u7570\u306a\u308a\u307e\u3059\u304c\u3001<br \/>\n\u305d\u308c\u305e\u308c\u306b\u7528\u610f\u3055\u308c\u3066\u3044\u308b <strong>\u30c9\u30e1\u30a4\u30f3\u540d<\/strong> \u3084 <strong>\u30b0\u30ed\u30fc\u30d0\u30ebIP\u30a2\u30c9\u30ec\u30b9<\/strong> \u3092hosts\u306b\u767b\u9332\u3059\u308b\u3053\u3068\u3067\u3001<br \/>\nWeb\u30da\u30fc\u30b8\u3078\u306e\u30a2\u30af\u30bb\u30b9\u304c\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<hr \/>\n<p>\u3053\u3053\u3067\u306fAWS\u3067\u306e\u4f8b\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001ELB\u3092\u7d4c\u7531\u3057\u3066\u30a2\u30af\u30bb\u30b9\u3092\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u307e\u305a\u306f <code>ELB\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u540d<\/code> \u3092\u7528\u610f\u3057\u307e\u3059\u3002<br \/>\n\u4e0b\u8a18\u306e\u3088\u3046\u306a\u6587\u5b57\u5217\u3067\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nhosts-skyarch-1234567890.ap-northeast-1.elb.amazonaws.com\n<\/pre>\n<p>\u6b21\u306b\u3001\u3053\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u540d\u306b\u7d10\u4ed8\u3044\u3066\u3044\u308bIP\u30a2\u30c9\u30ec\u30b9\u3092\u691c\u7d22\u3057\u307e\u3059\u3002<br \/>\n\u30b3\u30de\u30f3\u30c9\u304c\u5229\u7528\u3067\u304d\u308b\u65b9\u306f\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306a\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3059\u308b\u3053\u3068\u3067IP\u30a2\u30c9\u30ec\u30b9\u304c\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n$ nslookup hosts-skyarch-1234567890.ap-northeast-1.elb.amazonaws.com\nServer: 192.168.255.16\nAddress: 192.168.255.16#53\n\nNon-authoritative answer:\nName: hosts-skyarch-1234567890.ap-northeast-1.elb.amazonaws.com\nAddress: 52.194.87.175\nName: hosts-skyarch-1234567890.ap-northeast-1.elb.amazonaws.com\nAddress: 52.197.159.89\n<\/pre>\n<p>\u307e\u305f\u3001\u3053\u306e\u5024\u306fWeb\u30da\u30fc\u30b8\u3067\u3082\u691c\u7d22\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/www.cman.jp\/network\/support\/nslookup.html\">https:\/\/www.cman.jp\/network\/support\/nslookup.html<\/a><\/p>\n<ol>\n<li>\u3053\u306e\u30da\u30fc\u30b8\u306e\u30db\u30b9\u30c8\u540d FQDN \u306b ELB\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u540d \u3092\u5165\u529b<\/li>\n<li>\u300cnslookup\u5b9f\u884c\u300d\u3092\u62bc\u3059<\/li>\n<li>IP\u30a2\u30c9\u30ec\u30b9\u304c\u51fa\u3066\u304d\u307e\u3059\u3002<\/li>\n<\/ol>\n<div id=\"attachment_18204\" style=\"width: 738px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2020\/04\/nslookup-web.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-18204\" class=\"wp-image-18204 size-large\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2020\/04\/nslookup-web-1024x392.png\" alt=\"nslookup for web\" width=\"728\" height=\"279\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2020\/04\/nslookup-web-1024x392.png 1024w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2020\/04\/nslookup-web-300x115.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2020\/04\/nslookup-web-768x294.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2020\/04\/nslookup-web-1536x588.png 1536w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2020\/04\/nslookup-web-728x279.png 728w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2020\/04\/nslookup-web.png 2001w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><\/a><p id=\"caption-attachment-18204\" class=\"wp-caption-text\">\u5de6\u304c\u8a2d\u5b9a\u753b\u9762\u3001\u53f3\u304c\u5b9f\u884c\u5f8c\u306e\u753b\u9762\u3002<\/p><\/div>\n<p>CloudFront\u306e\u5834\u5408\u3082\u3001<code>ELB\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u540d<\/code> \u3092 <code>Domain Name<\/code> \u306b\u8aad\u307f\u66ff\u3048\u308b\u3053\u3068\u3067\u3001<br \/>\n\u540c\u69d8\u306b\u3057\u3066IP\u30a2\u30c9\u30ec\u30b9\u304c\u691c\u7d22\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u3053\u306e\u6642 <strong>IP\u30a2\u30c9\u30ec\u30b9\u304c\u8907\u6570<\/strong> \u51fa\u3066\u304f\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u304c\u3001<strong>\u304a\u597d\u304d\u306a\u3082\u306e\uff11\u3064<\/strong> \u3067OK\u3067\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001ELB\u3084CloudFront\u306e\u5834\u5408\u306f\u3001\u5b9a\u671f\u7684\u306bIP\u30a2\u30c9\u30ec\u30b9\u304c\u5909\u66f4\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u65e2\u306b\u8a2d\u5b9a\u3057\u3066\u3044\u308b\u306e\u306b\u3064\u306a\u304c\u3089\u306a\u3044\uff01\u3068\u3044\u3046\u5834\u5408\u306f\u3001\u518d\u5ea6IP\u30a2\u30c9\u30ec\u30b9\u3092\u8abf\u3079\u3066\u8a2d\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>hosts\u3092\u5229\u7528\u3057\u305fWeb\u30da\u30fc\u30b8\u78ba\u8a8d<\/h2>\n<p>\u3053\u3053\u307e\u3067\u3067\u3001hosts\u306b\u767b\u9332\u3059\u308bIP\u30a2\u30c9\u30ec\u30b9\u304c\u3054\u6e96\u5099\u3067\u304d\u305f\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u3067\u306f\u5b9f\u969b\u306bhosts\u3092\u5229\u7528\u3057\u3066Web\u30da\u30fc\u30b8\u78ba\u8a8d\u3092\u3057\u3066\u307f\u307e\u3059\u3002<br \/>\n\u4eca\u56de\u306f\u79c1\u304c\u3088\u304f\u4f7f\u30462\u3064\u306e\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u8aac\u660e\u3067\u306f\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306aWeb\u30da\u30fc\u30b8\u304c\u78ba\u8a8d\u3067\u304d\u308b\u304b\u3002<br \/>\n\u3068\u3044\u3046\u5f62\u3067\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th>\u9805\u76ee<\/th>\n<th>\u5024<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u30c9\u30e1\u30a4\u30f3\u540d<\/td>\n<td>hosts.skyarch.net<\/td>\n<\/tr>\n<tr>\n<td>IP\u30a2\u30c9\u30ec\u30b9<\/td>\n<td>12.34.56.78<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div id=\"attachment_18208\" style=\"width: 844px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2020\/04\/testpage.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-18208\" class=\"wp-image-18208 size-full\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2020\/04\/testpage.png\" alt=\"\u30c6\u30b9\u30c8\u30da\u30fc\u30b8\" width=\"834\" height=\"183\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2020\/04\/testpage.png 834w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2020\/04\/testpage-300x66.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2020\/04\/testpage-768x169.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2020\/04\/testpage-728x160.png 728w\" sizes=\"auto, (max-width: 834px) 100vw, 834px\" \/><\/a><p id=\"caption-attachment-18208\" class=\"wp-caption-text\">\u30c6\u30b9\u30c8\u30da\u30fc\u30b8\u306f\u3053\u306e\u3088\u3046\u306a\u8868\u793a\u3067\u3059\u3002<\/p><\/div>\n<h3>[\u304a\u3059\u3059\u3081\u5ea6:\u2605] curl \u3092\u5229\u7528\u3057\u305f\u78ba\u8a8d<\/h3>\n<p>\u6700\u521d\u306f\u3001\u30b3\u30de\u30f3\u30c9\u304c\u5229\u7528\u3067\u304d\u308c\u3070\u3059\u3050\u306b\u3067\u304d\u3066\u3057\u307e\u3046\u6280\u3067\u3059\u3002<\/p>\n<p>\u30b3\u30fc\u30c9\u306f\u3053\u3061\u3089\u2193<br \/>\n<code>curl -H 'Host:hosts.skyarch.net' 12.34.56.78<\/code><\/p>\n<p>\u5b9f\u969b\u306e\u5b9f\u884c\u7d50\u679c\u306f\u3053\u3061\u3089\u2193 \u203b<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n$ curl -H \u2019Host:hosts.skyarch.net\u2019 12.34.56.78\n\uff1ch1\uff1eThis is a hosts.skyarch.net\uff1c\/h1\uff1e\n\n\u203b:\u30b7\u30f3\u30bf\u30c3\u30af\u30b9\u30cf\u30a4\u30e9\u30a4\u30c8\u304c\u30a8\u30b9\u30b1\u30fc\u30d7\u3057\u3066\u3057\u307e\u3046\u306e\u3067\u5168\u89d2\u8868\u8a18\u3067\u3059\u3002\u30b3\u30d4\u30da\u3057\u3066\u3082\u52d5\u304d\u307e\u305b\u3093\u3002\u3002\u3054\u3081\u3093\u306a\u3055\u3044\u3002\n<\/pre>\n<p>\u3053\u308c\u3060\u3051\u3067\u3059\u3002\u7c21\u5358\u3067\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u5225\u306e\u65b9\u6cd5\u3068\u3057\u3066\u3001\u4e0b\u8a18\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n<code>curl --resolv 'hosts.skyarch.net:80:13.114.29.19' http:\/\/hosts.skyarch.net<\/code><\/p>\n<p>\u5b9f\u969b\u306e\u5b9f\u884c\u7d50\u679c\u306f\u3053\u3061\u3089\u2193 \u203b<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\ncurl --resolv \u2019hosts.skyarch.net:80:13.114.29.19\u2019 http:\/\/hosts.skyarch.net\n\uff1ch1\uff1eThis is a hosts.skyarch.net\uff1c\/h1\uff1e\n\n\u203b:\u30b7\u30f3\u30bf\u30c3\u30af\u30b9\u30cf\u30a4\u30e9\u30a4\u30c8\u304c\u30a8\u30b9\u30b1\u30fc\u30d7\u3057\u3066\u3057\u307e\u3046\u306e\u3067\u5168\u89d2\u8868\u8a18\u3067\u3059\u3002\u30b3\u30d4\u30da\u3057\u3066\u3082\u52d5\u304d\u307e\u305b\u3093\u3002\u3002\u3054\u3081\u3093\u306a\u3055\u3044\u3002\n<\/pre>\n<p>\u3057\u304b\u3057\u3001\u3053\u3061\u3089\u306f\u8868\u793a\u306e\u78ba\u8a8d\u3067\u306f\u306a\u304f\u3001 <strong>\u758e\u901a\u304c\u53d6\u308c\u308b\u304b<\/strong> \u306e\u78ba\u8a8d\u304c\u9650\u5ea6\u3060\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u307e\u305f\u3001Windows\u306b\u306f\u6a19\u6e96\u3067 <code>curl<\/code> \u30b3\u30de\u30f3\u30c9\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u306a\u3044\u70ba\u3001\u5229\u7528\u307e\u3067\u306e\u30cf\u30fc\u30c9\u30eb\u304c\u9ad8\u3044\u3067\u3059\u3002<\/p>\n<p>IP\u30a2\u30c9\u30ec\u30b9\u306a\u3069\u3067\u5236\u9650\u3057\u3066\u3044\u308b\u304b\u3092\u624b\u8efd\u306b\u78ba\u304b\u3081\u305f\u3044\u6642\u306b\u304a\u3059\u3059\u3081\u3067\u3059\u3002<\/p>\n<h3>[\u304a\u3059\u3059\u3081\u5ea6:\u2605\u2605] hosts\u30d5\u30a1\u30a4\u30eb\u306e\u66f8\u304d\u63db\u3048<\/h3>\n<p>\u6b21\u306b\u3001\u30aa\u30fc\u30bd\u30c9\u30c3\u30af\u30b9\u306a\u65b9\u6cd5\u3067\u3042\u308b hosts\u30d5\u30a1\u30a4\u30eb\u306e\u66f8\u304d\u63db\u3048\u3067\u3059\u3002<\/p>\n<p>OS\u306b\u3088\u3063\u3066\u3001\u7de8\u96c6\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u306e\u4f4d\u7f6e\u304c\u7570\u306a\u308a\u307e\u3059\u3002<br \/>\n\u306a\u304a\u3001\u4e21\u65b9\u3068\u3082 <strong>\u7ba1\u7406\u8005\u6a29\u9650\u3067\u30d5\u30a1\u30a4\u30eb\u306e\u7de8\u96c6<\/strong> \u304c\u5fc5\u8981\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>Windows10 : <code>C:\\Windows\\System32\\drivers\\etc\\hosts<\/code><\/li>\n<li>Mac\/Linux : <code>\/etc\/hosts<\/code><\/li>\n<\/ul>\n<h4>Windows\u306e\u5834\u5408<\/h4>\n<p>\u306a\u304a\u3001Windows\u306e\u5834\u5408\u306f\u3001\u30b9\u30bf\u30fc\u30c8\u30dc\u30bf\u30f3\u6a2a\u306e\u691c\u7d22\u304b\u3089\u3067 <code>notepad<\/code> \u3068\u5165\u529b\u3057\u3001<br \/>\n\u51fa\u3066\u304d\u305f\u30a2\u30a4\u30b3\u30f3\u3092\u53f3\u30af\u30ea\u30c3\u30af\u3057\u3001\u300c\u7ba1\u7406\u8005\u3068\u3057\u3066\u5b9f\u884c\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n<div id=\"attachment_18215\" style=\"width: 356px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2020\/04\/notepad-admin.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-18215\" class=\"wp-image-18215 size-full\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2020\/04\/notepad-admin.png\" alt=\"\u30e1\u30e2\u5e33\u3092\u7ba1\u7406\u8005\u3067\u5b9f\u884c\" width=\"346\" height=\"586\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2020\/04\/notepad-admin.png 346w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2020\/04\/notepad-admin-177x300.png 177w\" sizes=\"auto, (max-width: 346px) 100vw, 346px\" \/><\/a><p id=\"caption-attachment-18215\" class=\"wp-caption-text\">\u300c\u7ba1\u7406\u8005\u3068\u3057\u3066\u5b9f\u884c\u300d<\/p><\/div>\n<p>\u8868\u793a\u3055\u308c\u305f\u30e1\u30e2\u5e33\u306b\u3066\u4e0a\u8a18\u30d1\u30b9\u306ehosts\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304d\u3001\u7de8\u96c6\u3092\u3057\u307e\u3059\u3002<br \/>\n(\u203betc\u30d5\u30a9\u30eb\u30c0\u4ee5\u4e0b\u3067\u30d5\u30a1\u30a4\u30eb\u304c\u8868\u793a\u3055\u308c\u306a\u3044\u5834\u5408\u306f\u3001\u53f3\u4e0b\u306e\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3\u30ea\u30b9\u30c8\u3092<br \/>\n\u300c\u30c6\u30ad\u30b9\u30c8\u6587\u7ae0\u300d\u304b\u3089\u300c\u3059\u3079\u3066\u306e\u30d5\u30a1\u30a4\u30eb\u300d\u306b\u5207\u308a\u66ff\u3048\u3066\u304f\u3060\u3055\u3044\u3002\uff09<\/p>\n<h4>Mac \/ Linux \u306e\u5834\u5408<\/h4>\n<p>\u4e21\u65b9\u3068\u3082\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u5229\u7528\u3057\u3066\u306e\u7de8\u96c6\u304c\u7c21\u5358\u3067\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n$ sudo nano \/etc\/hosts\n<\/pre>\n<p>\u203b nano\u306f\u304a\u597d\u304d\u306a\u30a8\u30c7\u30a3\u30bf\u306b\u8aad\u307f\u66ff\u3048\u3066\u304f\u3060\u3055\u3044\u3002<sup id=\"fnref-18194-1\"><a href=\"#fn-18194-1\">1<\/a><\/sup><\/p>\n<p>\u30b3\u30de\u30f3\u30c9\u5b9f\u884c\u5f8c\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u6c42\u3081\u3089\u308c\u307e\u3059\u306e\u3067\u3001\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>nano\u30a8\u30c7\u30a3\u30bf\u3067\u306e\u7de8\u96c6\u5f8c\u306f<\/p>\n<ol>\n<li>Ctrl + X \u3067\u7d42\u4e86<\/li>\n<li>\u4fdd\u5b58\u3059\u308b\u304b\u3092\u5c0b\u306d\u3089\u308c\u305f\u3068\u304d\u306f <code>y<\/code><\/li>\n<li>\u305d\u306e\u3042\u3068\u306fEnter<\/li>\n<\/ol>\n<p>\u3068\u3044\u3046\u9806\u306b\u5165\u529b\u3059\u308b\u3053\u3068\u3067\u4fdd\u5b58\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h4>hosts\u30d5\u30a1\u30a4\u30eb\u306e\u66f8\u304d\u65b9<\/h4>\n<p>hosts\u30d5\u30a1\u30a4\u30eb\u306f\u4e0b\u8a18\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3067\u8a18\u8f09\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nIP\u30a2\u30c9\u30ec\u30b9 \u30c9\u30e1\u30a4\u30f3\u540d\n<\/pre>\n<p>\u3067\u3059\u306e\u3067\u3001\u4eca\u56de\u306e\u4f8b\u306e\u5834\u5408\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n12.34.56.78 hosts.skyarch.net\n<\/pre>\n<p>\u3053\u308c\u3092\u4e00\u756a\u4e0b\u306b\u8ffd\u8a18\u3057\u3066\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n<h4>\u4fdd\u5b58\u5f8c\u306e\u6ce8\u610f<\/h4>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2018\/10\/pato_lamp_on_red.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-15333 size-thumbnail\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2018\/10\/pato_lamp_on_red-150x150.png\" alt=\"\" width=\"150\" height=\"150\" \/><\/a>\n<p>hosts\u30d5\u30a1\u30a4\u30eb\u3092\u8ffd\u8a18\u3057\u305f\u5f8c\u306f\u3001\u5ff5\u306e\u70ba Chrome\u306a\u3069\u306e <strong>Web\u30d6\u30e9\u30a6\u30b6\u306e\u30bf\u30d6\u3092\u9589\u3058\u3066<\/strong> \u9802\u304d\u3001<br \/>\n\u518d\u5ea6\u958b\u3044\u305f\u4e0a\u3067\u3001\u30c9\u30e1\u30a4\u30f3\u540d\u3092\u5165\u529b\u3057\u30a2\u30af\u30bb\u30b9\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n(\u79c1\u81ea\u8eab\u3082\u3053\u308c\u3092\u5fd8\u308c\u3066\u3001\u3088\u304f\u9996\u3092\u50be\u3052\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002)<\/p>\n<p>\u306a\u304a\u3001\u305d\u308c\u3067\u3082\u3060\u3081\u306a\u5834\u5408\u306f\u3001\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u30a6\u30a3\u30f3\u30c9\u30a6\u306a\u3069\u3092\u5229\u7528\u3057\u3066\u30a2\u30af\u30bb\u30b9\u3092\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u203b\u6700\u521d\u304b\u3089\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u5834\u5408\u3067\u3082\u3001\u30bf\u30d6\u306f\u958b\u304d\u76f4\u3059\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\uff01<\/p>\n<div id=\"attachment_18216\" style=\"width: 738px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2020\/04\/safari-test.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-18216\" class=\"wp-image-18216 size-large\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2020\/04\/safari-test-1024x149.png\" alt=\"\u30c6\u30b9\u30c8\u30da\u30fc\u30b8on\u30d6\u30e9\u30a6\u30b6\" width=\"728\" height=\"106\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2020\/04\/safari-test-1024x149.png 1024w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2020\/04\/safari-test-300x44.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2020\/04\/safari-test-768x112.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2020\/04\/safari-test-728x106.png 728w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2020\/04\/safari-test.png 1206w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><\/a><p id=\"caption-attachment-18216\" class=\"wp-caption-text\">safari\u3067\u306e\u8868\u793a\u30a4\u30e1\u30fc\u30b8\u3002\u3053\u306e\u69d8\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p><\/div>\n<p>\u3053\u3061\u3089\u304c\u4e00\u756a\u30aa\u30fc\u30bd\u30c9\u30c3\u30af\u30b9\u306a\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n<hr \/>\n<p>\u4ee5\u4e0a\u3001hosts\u8a2d\u5b9a\u65b9\u6cd52\u7a2e\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n<ol>\n<li>curl \u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u5229\u7528<\/li>\n<li>hosts \u30d5\u30a1\u30a4\u30eb\u3092\u66f8\u304d\u63db\u3048\u308b<\/li>\n<\/ol>\n<p>\u30e1\u30ea\u30c3\u30c8\u30fb\u30c7\u30e1\u30ea\u30c3\u30c8\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u5229\u7528\u3059\u308b\u3068\u826f\u3044\u3068\u601d\u3044\u307e\u3059\uff01<br \/>\n\u4f55\u304b\u306e\u304a\u5f79\u306b\u7acb\u3066\u308c\u3070\u5e78\u3044\u3067\u3059\u3002<\/p>\n<div class=\"footnotes\">\n<hr \/>\n<ol>\n<li id=\"fn-18194-1\">\n\u7b46\u8005\u500b\u4eba\u7684\u306b\u306f vim\u3002&#160;<a href=\"#fnref-18194-1\">&#8617;<\/a>\n<\/li>\n<\/ol>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3068\u306e\u306f\u3058\u307e\u308a \u5f0a\u793e\u306e\u6280\u8853\u30b5\u30dd\u30fc\u30c8\u306e\u30e1\u30fc\u30eb\u5b9b\u306b\u306f\u3001\u3088\u304f\u3053\u306e\u3088\u3046\u306a\u3054\u4f9d\u983c\u3092\u9802\u304d\u307e\u3059\u3002 \u300c\u65b0\u3057\u3044\u30b5\u30fc\u30d0\u306eWeb\u30da\u30fc\u30b8\u8868\u793a\u306e\u78ba\u8a8d\u65b9\u6cd5\u306f\u3069\u3046\u3059\u308c\u3070\u826f\u3044\uff1f\u300d \u300cLB\u3068\u304bCloudFront\u3068\u304b\u3092\u5c0e\u5165\u3057\u305f\u72b6\u614b\u306e\u30da\u30fc\u30b8\u78ba\u8a8d\u304c\u3057\u305f\u3044\uff01\u300d&#8230;<\/p>\n","protected":false},"author":82,"featured_media":18202,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"ja","_original_post":"https:\/\/www.skyarch.net\/blog\/?p=18194","footnotes":""},"categories":[237],"tags":[],"class_list":{"0":"post-18194","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-pc","8":"ja"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/18194","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/users\/82"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/comments?post=18194"}],"version-history":[{"count":42,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/18194\/revisions"}],"predecessor-version":[{"id":26267,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/18194\/revisions\/26267"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media\/18202"}],"wp:attachment":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media?parent=18194"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/categories?post=18194"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/tags?post=18194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}