質問編集履歴

1

curlをしたとき、hostしたときの詳細を追加

2017/05/01 12:19

投稿

yamakoda
yamakoda

スコア9

test CHANGED
File without changes
test CHANGED
@@ -116,11 +116,67 @@
116
116
 
117
117
 
118
118
 
119
+
120
+
121
+
122
+
119
123
  名前解決できていないのかなと思い、コマンドラインからhostを打ってみましたが
120
124
 
121
125
  すべてのサイトでおそらく正しいIPアドレスが返ってきました。
122
126
 
123
127
 
128
+
129
+ ```
130
+
131
+ host line.me
132
+
133
+ => line.me has address 203.104.138.138
134
+
135
+ => line.me mail is handled by 10 smtp.line.me.
136
+
137
+
138
+
139
+ host www.atmarkit.co.jp
140
+
141
+ => www.atmarkit.co.jp has address 52.193.143.47
142
+
143
+ => www.atmarkit.co.jp has address 52.197.201.70
144
+
145
+ => www.atmarkit.co.jp has address 52.69.9.87
146
+
147
+ => www.atmarkit.co.jp has address 52.192.186.170
148
+
149
+ ```
150
+
151
+
152
+
153
+ curlをしてみるとリダイレクトまではとれているようでした。
154
+
155
+
156
+
157
+ ```
158
+
159
+ curl line.me
160
+
161
+ <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
162
+
163
+ <html><head>
164
+
165
+ <title>302 Found</title>
166
+
167
+ </head><body>
168
+
169
+ <h1>Found</h1>
170
+
171
+ <p>The document has moved <a href="https://line.me/en/">here</a>.</p>
172
+
173
+ </body></html>
174
+
175
+ ```
176
+
177
+
178
+
179
+ ただ `https://line.me/en/` にcurlをうつとタイムアウトしました。
124
180
 
125
181
 
126
182