Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: NET::DNS

by Improv (Pilgrim)
on Apr 28, 2003 at 17:59 UTC ( [id://253767]=note: print w/replies, xml ) Need Help??


in reply to NET::DNS

A few things:
  • Is DNS set up correctly on your system? Do other DNS queries work? (e.g. can IE or Mozilla resolve www.cnn.com?)
  • What version of Net::DNS are you using?
  • What examples are you trying? What errors do they give?

Replies are listed 'Best First'.
Re: Re: NET::DNS
by Anonymous Monk on Apr 28, 2003 at 18:10 UTC
  • Yes, IE can go to websites.
  • Version is 0.34
  • One of the examples are
    #/usr/bin/perl -w use warnings; use strict; use Net::DNS; my $rr; my $res = Net::DNS::Resolver->new; my $query = $res->query("http://www.yahoo.com", "NS"); if ($query) { foreach $rr ($query->answer) { next unless $rr->type eq "NS"; print $rr->nsdname, "\n"; } } else { print "query failed: ", $res->errorstring, "\n"; }
      Ok, by not working, does it print 'query failed', or does it die, or do something else? Is it possible you're behind a firewall, and just accessing the web through a proxy?
        I get the error query failed: connection failed

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://253767]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2025-04-19 02:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.