Re: Perl script ran by chrooted apache

2012-08-24 Thread Mik J
I modified the wrong file. Since I was debugging I had created many copies of that script. Yes your solution works. Thank you. - Mail original - > De : Mik J > À : "misc@openbsd.org" > Cc : > Envoyé le : Vendredi 24 août 2012 23h14 > Objet : Re: Perl scri

Re: Perl script ran by chrooted apache

2012-08-24 Thread Mik J
> De : Sébastien Marie > On Fri, Aug 24, 2012 at 06:02:39PM +0100, Mik J wrote: >> Hello, >> >> I have the following perl script that works in command line: >> >> [...] >> >> # ./dns.pl >> 142.244.12.42 >> >> [...] >> >> I tried in /var/www/htdocs/cgi/ but when I access >> http://192.

Re: Perl script ran by chrooted apache

2012-08-24 Thread Sébastien Marie
On Fri, Aug 24, 2012 at 06:02:39PM +0100, Mik J wrote: > Hello, > > I have the following perl script that works in command line: > > [...] > > # ./dns.pl > 142.244.12.42 > > [...] > > I tried in /var/www/htdocs/cgi/ but when I access > http://192.168.1.1/cgi/dns.pl > I have a blank page > > In

Perl script ran by chrooted apache

2012-08-24 Thread Mik J
Hello, I have the following perl script that works in command line: #!/usr/bin/perl use Net::DNS; my $res   = Net::DNS::Resolver->new; my $query = $res->search("www.openbsd.org"); if ($query) {     foreach my $rr ($query->answer) {     next unless $rr->type eq "A";     print $rr->address,