mdoTomofumi Chiba
5/8/2026, 9:26:23 AM

curl: /etc/hosts を修正せずに host と ip の対応を変更する

--resolve option を使う。

curl --resolve www.google.com:443:142.251.42.174 https://www.google.com/

hostname:port:ip

ref: https://www.softel.co.jp/blogs/tech/archives/6081

TweetBlueskyLike