Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

dnsquery and Linux

by Elliott (Pilgrim)
on Nov 06, 2001 at 17:35 UTC ( #123566=perlquestion: print w/replies, xml ) Need Help??

Elliott has asked for the wisdom of the Perl Monks concerning the following question:

I hope this is sufficiently Perly not to incur the wrath of nodereaper...

I have a script that uses `dnsquery. It has always worked fine until last week when my ISP upgraded their version of Linux (I've asked them what version - still awaiting a reply). All the usual chaos and disruption followed but now the dust has settled, `dnsquery is still failing.

They have no idea why it doesn't work - or even what it is(!) Does anyone know what I should tell them to do?

Replies are listed 'Best First'.
Re: dnsquery and Linux
by rob_au (Abbot) on Nov 06, 2001 at 17:54 UTC
    As I have proclaimed previously, I'm a great proponent of implementation within Perl as opposed to the calling of external programs and I would direct your attention to the Net::DNS module.

    This module is exceptionally easy to use and the module documentation includes a number of example pieces of code which can easily be tailored to your needs, including host address resolution, nameserver resolution, MX record resolution, zone transfers and SOA retrieval.

    Update: Also too, after a little Google-whoring, I found DNSwalk which makes extensive use of Net::DNS to debug DNS databases by walking through zone files and confirming zone data.

     

    Ooohhh, Rob no beer function well without!

      Thank you. I will investigate this. I didn't know it was possible from within Perl.
Re: dnsquery and Linux
by linebacker (Scribe) on Nov 07, 2001 at 01:54 UTC
    I suspect the problem is not specifically related to linux rather is probably due to the latest ISC Bind release. Note that when you try to run programs such as nsloookup using the latest BIND version (bundled with RH7.1) you are presented with the rather annoying; Note: nslookup is deprecated and may be removed from future releases. Consider using the `dig' or `host' programs instead. Run nslookup with the `-silent' option to prevent this message from appearing. Judging the output of dnsquery, using dig may work just fine for you anyway. It's bundled with RH7.1 Well, its not a perl specific answer, but a good question nonetheless. Hope that helps.
Re: dnsquery and Linux
by Elliott (Pilgrim) on Nov 06, 2001 at 18:09 UTC
    Update

    The new OS is Linux RedHat 7.1

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://123566]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2019-11-21 14:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (104 votes). Check out past polls.

    Notices?