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
> 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.
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
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,
4 matches
Mail list logo