Merge pull request #5872 from backpaper0/remove-cname-on-domain-ip-resolution

fix: improve DNS resolution in firewall script to filter CNAME records
This commit is contained in:
ant-kurt
2025-08-19 11:23:35 -07:00
committed by GitHub

View File

@@ -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