Open picatz opened 6 years ago
Some more BASH to check Domainr
which was some weirder logic:
curl https://domainr.com/facebook.com -s | grep "registrar=" -q
More BASH to check Ultratools
which has some weirder logic too:
curl https://www.ultratools.com/tools/ipWhoisLookupResult -s -X POST -d 'ipAddress=facebook.com' | grep "Registration" -q
Even more BASH? If you insist.
curl -s https://www.whois-search.com/whois/facebook.com | grep -w "Registrar" -q
The
-w
option forgrep
ensures a more exact match. 🏓
Need more weird BASH? Perfect.
curl -s "https://registrar.verisign-grs.com/webwhois-ui/rest/whois?q=facebook.com&tld=com&type=domain" | grep -w "Registrar" -q
But, it's heavily rate limited...
{"eppStatusDescEnabledTld":"false","message":"Error","responseType":"captchaNeeded"}
Can check domain suffixes for .uk
, .co.uk
, .org.uk
, and .me.uk
and I think even .cymru
and .wales
--- ok then.
curl -s "https://www.nominet.uk/whois/?query=facebook.uk#whois-results" | grep -w "Registrar:" -q
Yo 'dawg, I heard you like that curl?
curl "https://www.easywhois.com/" -X POST -d "mode=whois" -d "domain=facebook.com" | grep -w "Registrar"
In truth, to search for if a domain is available via HTTP backends can be pretty darn straight forward.
How To
On most sites, you have a nice search bar and we can type in the domain we like, you know the drill I'm sure.
You see that it's already been registered. You will see other information along with it:
There's probably a mess of other stuff on the screen. But, we could simply do a grep for
Registrar
in our command-line withcurl
and easily check if a domain ingrep
with some BASHThis allows us to use that logic like so:
Go Code not BASH Scripts
Then, all we need to do is translate that logic into Go code.
That's it.
Multiple Backends
We can't just pseudo
curl
one site. We need maximum efficiency for large batches and need to cross-reference results. This is where multiple HTTP backends comes in most handy.