Skip to content

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

TypeScript

fix: improve DNS resolution in firewall script to filter CNAME records

Uragami Taichieb48d5e4a80a
diff --git a/.devcontainer/init-firewall.sh b/.devcontainer/init-firewall.sh
index 0b987171..b126dd98 100644
--- a/.devcontainer/init-firewall.sh
+++ b/.devcontainer/init-firewall.sh
@@ -71,7 +71,7 @@ for domain in \
"statsig.anthropic.com" \
"statsig.com"; do
echo "Resolving $domain..."
- ips=$(dig +short A "$domain")
+ ips=$(dig +noall +answer A "$domain" | awk '$4 == "A" {print $5}')
if [ -z "$ips" ]; then
echo "ERROR: Failed to resolve $domain"
exit 1