I did not see any differences when asking for the specific nameserver about some hostame. However, I was able to fix this problem. Having the debug and recurse options on did not point me in the right direction b/c I did not see the method ptrdname in the debug output.

FIX WAS: I needed to change address method to ptrdname method. I found this using dumper on the $rr variable. Thank you for your persistence and help! :)

my $res = Net::DNS::Resolver->new( nameservers => [qw(ns7.xx.com xx.xx.xx.com)], recurse => 0, ## dont do recursive lookups debug => 0, ); my $query = $res->search("10.xx.xx.55"); use Data::Dumper; #print Dumper($query); #exit; if ($query) { foreach my $rr ($query->answer) { next unless $rr->type eq "PTR"; ## skip record if not eq PTR + ## print $rr->ptrdname, "\n"; print Dumper($rr); } } else { warn "query failed: ", $res->errorstring, "\n"; } #for my $key (keys %ns7IP) { # print $key,' => ',join "\n\t", sort @{$ns7IP{$key}},"\n"; #} print "\n"; "DNS_results.plx" 71 lines, 2813 characters

root@xxxxx(R3 Prod):/home/ # perl DNS_results.plx sap005.alxxxmeX.com

$VAR1 = bless( { 'rdlength' => 22, 'ttl' => 2195, 'name' => '55.xx.xx.10.in-addr.arpa', 'ptrdname' => 'sap005.alxxxsmeX.com', 'class' => 'IN', 'type' => 'PTR', 'rdata' => 'sap005 alarixxxxx' }, 'Net::DNS::RR::PTR' );

In reply to Re^10: Net::DNS::Resolver v0.61 output by mikejones
in thread Net::DNS::Resolver v0.61 output by mikejones

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.