Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
rajivm
· 13y ago · 0 comments
You should do a "whois" lookup for the domain. The return code for a 'get' request on the domain has no bearing on its availability -- many parked domains do not even have DNS configured, let alone HTTP.
Comments
[–]
cbhl
13y ago
I'd be wary of doing automated whois lookups, which might be considered abusive / against terms of service depending on which server you hit.
[–]
trevorah
13y ago
Good point. This doesnt sound like a quick fix.
[–]
trevorah
13y ago
Very true. This requires a little more work than my current hack. I'll see if there is a whois package for node...