Hello all, I am on CentOS 6 64-bit. Normally I would just install modules with the official repository, but there currently is not a perl version newer than 5.10.1, so I had to go around and use perlbrew to get to 5.16.0. I am trying to install Mail::DKIM::Verifier with cpanm but I'm getting numerous DNS errors and the test is failing. I looked in the log and most of it looks okay, it's just this part that causes everything to fail:
DNS query timeout for _domainkey.messiah.edu at /root/.cpanm/work/1407 +941109.18337/Mail-DKIM-0.40/blib/lib/Mail/DKIM/DNS.pm line 156. # Looks like you planned 19 tests but ran 2. # Looks like your test exited with 4 just after 2. t/policy.t ................... Dubious, test returned 4 (wstat 1024, 0x400) Failed 17/19 subtests DNS query timeout for test1._domainkey.messiah.edu at /root/.cpanm/wor +k/1407941109.18337/Mail-DKIM-0.40/blib/lib/Mail/DKIM/DNS.pm line 156. # Looks like your test exited with 4 before it could output anything. t/public_key.t ............... Dubious, test returned 4 (wstat 1024, 0x400) Failed 5/5 subtests
Naturally, I figured I need to install Mail::DKIM::DNS which is part of the Mail::DKIM package. However, I get the exact same error when trying to install that:
DNS query timeout for _domainkey.messiah.edu at /root/.cpanm/work/1407 +941381.18484/Mail-DKIM-0.40/blib/lib/Mail/DKIM/DNS.pm line 156. # Looks like you planned 19 tests but ran 2. # Looks like your test exited with 4 just after 2. t/policy.t ................... Dubious, test returned 4 (wstat 1024, 0x400) Failed 17/19 subtests DNS query timeout for test1._domainkey.messiah.edu at /root/.cpanm/wor +k/1407941381.18484/Mail-DKIM-0.40/blib/lib/Mail/DKIM/DNS.pm line 156. # Looks like your test exited with 4 before it could output anything. t/public_key.t ............... Dubious, test returned 4 (wstat 1024, 0x400) Failed 5/5 subtests
I know DNS servers are set up on the machine because I can ping websites.
PING google.com (4.31.38.40) 56(84) bytes of data. 64 bytes from 4.31.38.40: icmp_seq=1 ttl=59 time=8.04 ms 64 bytes from 4.31.38.40: icmp_seq=2 ttl=59 time=8.26 ms 64 bytes from 4.31.38.40: icmp_seq=3 ttl=59 time=8.39 ms
What could be causing DNS query timeouts? Thanks in advance.

In reply to DNS errors with module by Toasterman

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.