PHP DNS API Error

Support forum for the PHP DNS Query API
Post Reply
jz32300
Posts: 2
Joined: Sun Apr 06, 2014 8:44 am

PHP DNS API Error

Post by jz32300 » Sun Apr 06, 2014 8:50 am

Hi,

I just downloaded your DNS API for PHP and tested the example index.php included.

using the DNS IP address 8.8.8.8 (Google), I reciev the following output:

Code: Select all

Querying: www.purplepixie.org -t A @8.8.8.8

Query Error: Failed to write question to socket
Does this mean that my hosting platform does not allow the opening of sockets or am I doing something wrong?

Thanks in advance
Clive

jz32300
Posts: 2
Joined: Sun Apr 06, 2014 8:44 am

Re: PHP DNS API Error

Post by jz32300 » Sun Apr 06, 2014 8:56 am

Hi again

I think I've answered the question myself - the error was returned when using UDP, if I use TCP I get the expected results.

Apologies
Clive

dave
Site Admin
Posts: 260
Joined: Fri May 30, 2008 9:09 pm
Location: UK
Contact:

Re: PHP DNS API Error

Post by dave » Mon Apr 07, 2014 10:18 am

No need to apologise! Just glad to see you've solved the problem.

My guess would be some sort of permissions issue then, either within PHP itself or more generally for whichever user the script is run as.

Regards,

Dave.

Post Reply