View Full Version : DNS Server Lookup

08-17-2007, 08:02 AM
I am running PHP5 and am wanting to use the dns_get_record() function. Unfortunately I keep on getting the following error...

Fatal error: Call to undefined function dns_get_record() in E:/app/test.php on line 2

I have PHP 5 installed through the WAMP project. Does anyone know what extension I have to activate to use DNS functions or why it's not working for me.


08-17-2007, 08:10 AM
From the php manual -

Note: This function is not implemented on Windows platforms, nor does it (currently) work on *BSD systems.

08-17-2007, 04:54 PM
you could grab the win32 version of dig (http://members.shaw.ca/nicholas.fong/dig/) and exec() it.