4 ms·
Use DNS. If a.gtld-servers.net (or whatever server the registry uses) doesn't have NS records for the domain, it doesn't exist. Be careful, some registries don
by soult 16y ago
Use DNS. If a.gtld-servers.net (or whatever server the registry uses) doesn't have NS records for the domain, it doesn't exist.
Be careful, some registries don't require that you set a nameserver (most do). For those you will have to fall back to whois.
Of course there are internal APIs for registrars to use, but as a small fish you don't get access to them.
- kree10 16y agoAs long as you're not dealing with a TLD with a wildcard (like .ws) you should be able to just check for NXDOMAIN status on your NS queries.