Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

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

    The new OS is Linux RedHat 7.1

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2020-10-30 05:40 GMT
Find Nodes?
    Voting Booth?
    My favourite web site is:

    Results (277 votes). Check out past polls.