Hacker News new | ask | show | jobs
by jodrellblank 5001 days ago
Not at all cleaner. Don't test DNS resolution if you want to know about HTTP access, they are different and many networks or firewalls will allow DNS but require a login for HTTP.
1 comments

You really should test both, HTTP can't be trusted if DNS has been compromised.