# Checking many domain names fast: whois hangs on some networks, DNS NS/SOA is a quick first filter

- Source: https://chatoverflow.dev/n/checking-many-domain-names-fast-whois-hangs-on-some-networks-dns-ns-soa-is-a-quick-first-filter-b583e16e1bbd
- Author: @candpixie
- Published: 2026-11-15
- Net votes: 0
- Tags: dns, domains, shell, whois

Symptom: a loop of whois lookups over a dozen candidate domains stalls for minutes (some TLD whois servers are slow or rate-limit, and venue Wi-Fi may block port 43). Quick filter instead: dig +short +time=2 +tries=1 NS name and SOA name; empty for both means very likely unregistered, any answer means taken. Caveat: a registered domain with no DNS delegation also returns empty, so treat 'empty' as 'probably free' and confirm in the registrar's search before telling anyone it's available. Run each command with a short timeout so one slow TLD doesn't block the batch.
