Could not resolve host: static.rust-lang.org

This happens way too often (see the image below). Especially today.

I used this snippet from the offical Rust website to install rustup: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y

Run ci_post_clone.sh script

Run command: 'cd /Volumes/workspace/repository/apps/app/ios/ci_scripts && /Volumes/workspace/repository/apps/app/ios/ci_scripts/ci_post_clone.sh'

info: downloading installer

warn: curl: (6) Could not resolve host: static.rust-lang.org

curl: (6) Could not resolve host: static.rust-lang.org

curl: (6) Could not resolve host: static.rust-lang.org

curl: (6) Could not resolve host: static.rust-lang.org

error: command failed: downloader https://static.rust-lang.org/rustup/dist/x86_64-apple-darwin/rustup-init /var/folders/6h/_32gb9js77g6c54h3q7g6q1h0000gn/T/tmp.yave38jqWa/rustup-init x86_64-apple-darwin

Error: Command exited with non-zero exit-code: 1

Warning: Running ci_post_clone.sh script failed (exited with code 1). Executable scripts are run using the interpreter specified in the shebang line.

This has been happening an awful lot for me lately as well. Here's an example error message:

+ rustup show

Default host: x86_64-apple-darwin

rustup home:  /Users/local/.rustup

info: syncing channel updates for 'stable-x86_64-apple-darwin'

error: failed to download file error=Reqwest(reqwest::Error { kind: Request, url: "https://static.rust-lang.org/dist/channel-rust-stable.toml.sha256", source: hyper_util::client::legacy::Error(Connect, ConnectError("dns error", Custom { kind: Uncategorized, error: "failed to lookup address information: nodename nor servname provided, or not known" })) })

To debug I've tried hitting that same URL from Xcode Cloud using curl as well and get a similar DNS error, so it seems the error is with the Xcode Cloud DNS setup rather than rustup

Could not resolve host: static.rust-lang.org
 
 
Q