https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6075
--- Comment #19 from Elsa Andrés <[email protected]> 2009-03-02 10:06:07 PST --- (In reply to comment #18) > Yeah, I meant to add "not a timeout, though" to my previous comment, but > forgot > when writing. My bad. However, we already know 'host' works -- you where > trying to debug Perl, imitating SA behavior, right? Yes. Sorry if I was a bit rude :-) Well, in the way of debugging Perl (as comment #11 suggested) I have found a script that can help a bit, JFYR. The script is as follows: *** #!/usr/bin/perl use Net::DNS::Resolver; my $res = Net::DNS::Resolver->new( nameservers => [qw(80.58.0.33)], # specify your own here udp_timeout => 2, retry => 1, debug => 1, ); my $host = '213.21.195.128.dnsbl.sorbs.net'; if (my $pkt = $res->query($host)) { for my $answer ( $pkt->answer() ) { my $type = $answer->type(); if ($type eq "PTR") { print $answer->ptrdname(), "\n"; } elsif ($type eq "A") { print $answer->name(), "\n"; } } } *** And what I get after running it: ./test.pl *** ;; query(213.21.195.128.dnsbl.sorbs.net) ;; setting up an AF_INET() family type UDP socket ;; send_udp(80.58.0.33:53) ;; answer from 80.58.0.33:53 : 104 bytes ;; HEADER SECTION ;; id = 61344 ;; qr = 1 opcode = QUERY aa = 0 tc = 0 rd = 1 ;; ra = 1 ad = 0 cd = 0 rcode = NXDOMAIN ;; qdcount = 1 ancount = 0 nscount = 1 arcount = 0 ;; QUESTION SECTION (1 record) ;; 213.21.195.128.dnsbl.sorbs.net. IN A ;; ANSWER SECTION (0 records) ;; AUTHORITY SECTION (1 record) dnsbl.sorbs.net. 600 IN SOA rbldns0.sorbs.net. dns.isux.com. ( 1236012948 ; Serial 7200 ; Refresh 7200 ; Retry 604800 ; Expire 3600 ) ; Minimum TTL ;; ADDITIONAL SECTION (0 records) *** And tcpdump: *** 18:56:24.985631 IP 10.0.0.11.32931 > 33.Red-80-58-0.staticIP.rima-tde.net.domain: 29368+ A? 213.21.195.128.dnsbl.sorbs.net. (48) 18:56:25.025395 IP 33.Red-80-58-0.staticIP.rima-tde.net.domain > 10.0.0.11.32931: 29368 NXDomain 0/1/0 (104) *** Still getting a good response. I cannot reproduce de "timeout" I get with SA, just only through SA. -- Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
