I have been searching this one for weeks, so far I found that You can use the whois queries to check if a domain is registered and/or do a DNS record check. But while playing with the whois cli tool today I found this
NOTE: FAILURE TO LOCATE A RECORD IN THE WHOIS DATABASE IS NOT
INDICATIVE OF THE AVAILABILITY OF A DOMAIN NAME.
from whois example.com. Now I want to know if there's a reliable way of knowing if a domain is registered or not, and is it possible for someone who is not an accredited registrar to do so.