コンテンツにスキップ

curl

2 つのコマンドがあり、その違いこそがすべての価値です。

ホストネットワーク名前空間で実行されます — データプレーンが関与する前の、ノード自身の接続性です。

Terminal window
{"command":["curl-host","-v","cloud.f5.com"]}
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying <public-ip>:80...
* Connected to cloud.f5.com (<public-ip>) port 80 (#0)
> GET / HTTP/1.1
> Host: cloud.f5.com
> User-Agent: curl/7.76.1
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 301 Moved Permanently
< location: https://cloud.f5.com/
< server: volt-adc
< date: Mon, 03 Aug 2026 16:30:24 GMT
< connection: close
< content-length: 0
<
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
* Closing connection 0

ホストではなく Vega (コントロールプレーン) のコンテキストで実行されます。観測可能な違い、そしてここで確認できる唯一の違いは、継承される環境です。curl-vega はプライベートレンジ、int.ves.ioint.volterra.us、およびサイト自身の .tenant.local ドメインを含む NO_PROXY リストを報告しますが、curl-host は何も報告しません。それが DNS パスについて何を意味するかは測定されていません。

Terminal window
{"command":["curl-vega","-v","cloud.f5.com"]}
* Uses proxy env variable NO_PROXY == '10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,100.127.0.0/18,100.127.192.0/18,169.254.0.0/16,int.ves.io,int.volterra.us,mcn-ce-ha-eastus01.<tenant>.tenant.local'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying <public-ip>:80...
* Connected to cloud.f5.com (<public-ip>) port 80 (#0)
> GET / HTTP/1.1
> Host: cloud.f5.com
> User-Agent: curl/7.76.1
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 301 Moved Permanently
< location: https://cloud.f5.com/
< server: volt-adc
< date: Mon, 03 Aug 2026 16:30:26 GMT
< connection: close
< content-length: 0
<
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
* Closing connection 0

どちらも通常の curl 引数を個別の配列要素として受け付けます。接続と TLS ハンドシェイクの行に失敗が現れることが多いため、-v は付けておく価値があります。