Katanius Posted April 2, 2007 Share Posted April 2, 2007 Hello all Is there any way or a function i dont know about to get DNS info/records on a windows platform? checkdnsrr,dns_get_record, getmxrr are not availiable on windows platforms so i tried the PEAR net_DNS class but it doesnt seem to work eventhough i used the package manager and packages installed corectly.. Is there anything else i can do? is there any function i can use without having to install extra packages and classes? ??? the thing i want to do is for a given hostname to find if it is a mail server, web server etc. Am i even walking in the right path with these functions? or should i try something else? Im new in PHP so Id appreciate any help you can give me. Quote Link to comment Share on other sites More sharing options...
jguy Posted April 2, 2007 Share Posted April 2, 2007 You can use "nslookup": Here's an example: exec("nslookup -type=A " . $reverse_ip . "." . $dnsbl_list . ".", $lookup); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.