php-projecthoneypot
php-projecthoneypot copied to clipboard
dns_get_record vs gethostbyname
trafficstars
Is there a reason using dns_get_record over gethostbyname? Thanks! :)
Honestly, it never crossed my mind to use gethostbyname(). Definitely would simplify the code.
Any idea on if one performs the lookup faster than the other? I'm assuming it's a trivial difference.
I need to get in there and reformat the code to be a bit more PSR compliant, I'll consider making this update when I do.
Thanks for bringing this up!
No idea if it's faster, just thought the same; that it could simplify the code.