I need to run a check to see if a host name or IP address entered into a form exists.
I thought I would use checkdnsrr() but, as it turns out, the application I am working on is on a windows platform and checkdnsrr() is not implemented on the windows platform. The PHP docs point me to a PEAR class called Net_DNS. However, I do not want to implement an entire class to do one simple check to see if a host exists.
What I need is a simple script or function that can take a host name or ip address and see if that host name or ip address exists before trying to connect to it.
Please don't point me to the above class or some other class that will do 10 times more than I need it to do.
Thanks in advance.
Start Free Trial