#!/bin/bash
export LC_ALL=C
BIN=/opt/proxy-lab/bin/sing-box
D=/tmp/sbech; mkdir -p "$D"

echo "===== DoH VIA HARDCODED IP (bypass poisoned resolver) ====="
for h in lucasjow.us.ci snip.edgeoneai.cc.cd; do
  echo "--- $h"
  printf '  HTTPS: '
  curl -s --max-time 12 --resolve cloudflare-dns.com:443:1.1.1.1 \
    -H 'accept: application/dns-json' \
    "https://cloudflare-dns.com/dns-query?name=$h&type=HTTPS" 2>/dev/null | head -c 500
  echo
done
