Dnsquery
| From: | J.Mueller, pro.vider.de GmbH | Date: | Fri, 17 Aug 2001 08:28:50 +0000 |
| Subject: | Dnsquery | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-63154@lists.php.net to get a copy of this message | ||
Hello,
I've tried to execute the system function dnsquery, which works fine
from a shell:
% dnsquery -h domain.net
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 61611
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 2, ADDITIONAL: 2
;; domain.net, type = ANY, class = IN
domain.net. 2D IN NS NS2.domain.net.
domain.net. 2D IN NS NS1.domain.net.
domain.net. 2D IN NS NS2.domain.net.
domain.net. 2D IN NS NS1.domain.net.
NS2.domain.net. 2D IN A 198.182.225.2
NS1.domain.net. 2D IN A 204.107.140.2
but not with PHP-functions, e.g.
system("dnsquery -h domain.net");
exec("dnsquery -h domain.net");
There is no output at all. I'm using FreeBSD 4.2 Server, Apache 1.3.11, PHP 4.04
Does anyone have an idea how I can get this work?
Thanks very much.
Juergen