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
commit a3620cdd0b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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