Page 1 of 1

PHP DNS API Error

Posted: Sun Apr 06, 2014 8:50 am
by jz32300
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

Re: PHP DNS API Error

Posted: Sun Apr 06, 2014 8:56 am
by jz32300
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

Re: PHP DNS API Error

Posted: Mon Apr 07, 2014 10:18 am
by dave
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.