Some checks failed
Deploy to Phoenix / deploy (push) Has been cancelled
- ADD_CHAIN138_TO_LEDGER_LIVE: Ledger form done; public code review repo bis-innovations/LedgerLive; init/push commands - CONTRACT_DEPLOYMENT_RUNBOOK: Chain 138 gas price 1 gwei, 36-addr check, TransactionMirror workaround - CONTRACT_*: AddressMapper, MirrorManager deployed 2026-02-12; 36-address on-chain check - NEXT_STEPS_FOR_YOU: Ledger done; steps completable now (no LAN); run-completable-tasks-from-anywhere - MASTER_INDEX, OPERATOR_OPTIONAL, SMART_CONTRACTS_INVENTORY_SIMPLE: updates - LEDGER_BLOCKCHAIN_INTEGRATION_COMPLETE: bis-innovations/LedgerLive reference Co-authored-by: Cursor <cursoragent@cursor.com>
110 lines
3.3 KiB
Bash
Executable File
110 lines
3.3 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Verify DNS resolution for all domains
|
|
# Tests that all domains resolve to the expected public IP
|
|
|
|
set -euo pipefail
|
|
|
|
# Colors
|
|
RED='\033[0;31m'
|
|
GREEN='\033[0;32m'
|
|
YELLOW='\033[1;33m'
|
|
BLUE='\033[0;34m'
|
|
NC='\033[0m'
|
|
|
|
log_info() { echo -e "${BLUE}[INFO]${NC} $1"; }
|
|
log_success() { echo -e "${GREEN}[✓]${NC} $1"; }
|
|
log_warn() { echo -e "${YELLOW}[⚠]${NC} $1"; }
|
|
log_error() { echo -e "${RED}[✗]${NC} $1"; }
|
|
|
|
EXPECTED_IP="${EXPECTED_IP:-76.53.10.35}"
|
|
|
|
echo ""
|
|
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
|
echo "🔍 DNS Resolution Verification"
|
|
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
|
echo ""
|
|
log_info "Expected IP: $EXPECTED_IP"
|
|
echo ""
|
|
|
|
# Test domains
|
|
DOMAINS=(
|
|
# sankofa.nexus
|
|
"sankofa.nexus"
|
|
"www.sankofa.nexus"
|
|
"phoenix.sankofa.nexus"
|
|
"www.phoenix.sankofa.nexus"
|
|
"the-order.sankofa.nexus"
|
|
# d-bis.org
|
|
"rpc-http-pub.d-bis.org"
|
|
"rpc-ws-pub.d-bis.org"
|
|
"rpc-http-prv.d-bis.org"
|
|
"rpc-ws-prv.d-bis.org"
|
|
"explorer.d-bis.org"
|
|
"dbis-admin.d-bis.org"
|
|
"dbis-api.d-bis.org"
|
|
"dbis-api-2.d-bis.org"
|
|
"secure.d-bis.org"
|
|
# mim4u.org
|
|
"mim4u.org"
|
|
"www.mim4u.org"
|
|
"secure.mim4u.org"
|
|
"training.mim4u.org"
|
|
# defi-oracle.io
|
|
"rpc.public-0138.defi-oracle.io"
|
|
)
|
|
|
|
success_count=0
|
|
fail_count=0
|
|
warn_count=0
|
|
|
|
for domain in "${DOMAINS[@]}"; do
|
|
# Try multiple DNS servers
|
|
resolved_ip=""
|
|
|
|
for dns_server in "8.8.8.8" "1.1.1.1" ""; do
|
|
if [ -n "$dns_server" ]; then
|
|
result=$(dig +short @"$dns_server" "$domain" 2>/dev/null | head -1)
|
|
else
|
|
result=$(dig +short "$domain" 2>/dev/null | head -1)
|
|
fi
|
|
|
|
if [ -n "$result" ] && [[ "$result" =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
|
resolved_ip="$result"
|
|
break
|
|
fi
|
|
done
|
|
|
|
if [ -z "$resolved_ip" ]; then
|
|
log_error "$domain - No resolution"
|
|
((fail_count++))
|
|
elif [ "$resolved_ip" = "$EXPECTED_IP" ]; then
|
|
log_success "$domain → $resolved_ip"
|
|
((success_count++))
|
|
else
|
|
log_warn "$domain → $resolved_ip (expected $EXPECTED_IP)"
|
|
((warn_count++))
|
|
fi
|
|
done
|
|
|
|
echo ""
|
|
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
|
echo "📊 Summary"
|
|
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
|
echo ""
|
|
log_info "Total domains tested: ${#DOMAINS[@]}"
|
|
log_success "✅ Correct resolution: $success_count"
|
|
log_warn "⚠️ Wrong IP: $warn_count"
|
|
log_error "❌ No resolution: $fail_count"
|
|
echo ""
|
|
|
|
if [ $fail_count -eq 0 ] && [ $warn_count -eq 0 ]; then
|
|
log_success "All domains resolve correctly!"
|
|
exit 0
|
|
elif [ $warn_count -gt 0 ] || [ $fail_count -gt 0 ]; then
|
|
log_warn "Some domains need attention"
|
|
echo ""
|
|
log_info "Note: DNS propagation can take 1-5 minutes"
|
|
log_info "If issues persist, check Cloudflare DNS settings"
|
|
exit 1
|
|
fi
|