For an IP you need to lookup the PTR in reverse notation (1.0.0.127.in-addr.arpa) vs an A record which is name to IP. PTR is IP to Name.
-- Edward McLain Director of Cloud Architecture Solutions Architect, VCP, CDCDP emcl...@teklinks.com d:205.314.6646 <http://www.teklinks.com/> Please direct all support questions to our support team at host...@teklinks.com <http://mailto:host...@teklinks.com/> or 205.314.6634. -----Original Message----- From: David Favor <da...@davidfavor.com> Date: Thursday, July 17, 2014 at 9:18 AM To: qpsmtpd <qpsmtpd@perl.org> Subject: qpsmtpd-async weird ParaDNS lookup problem >I've been running qpsmtpd-async for years on all sorts of servers. > >Likely I have something in DNS setup slightly wrong on a new server >I'm setting up + what's wrong escapes me. > >The symptom is qpsmtpd-async hanging forever in the HELO sequence. > >Both forkserver + prefork work fine + async works so much better, >I'd like to resolve this problem. > >Here's an example of the problem... > >Listen child making a Qpsmtpd::PollServer for 7. >11869 in config(plugins) >11869 config(plugins) returning (resolve_sender_host >dont_require_anglebrackets rcpt_simple t...@newswire.net >ch...@newswire.net d...@newswire.net supp...@newswire.net >account...@newswire.net >sa...@newswire.net debr...@newswire.net maildir >/cluster/clients/ivan-budimir %d/users/%l/Maildir) from cache >DNS failure looking for 127.0.0.1 after 0 secs (looked for 1, got 0) >11869 (connect) running plugin: resolve_sender_host >11869 (connect) resolve_sender_host: DEBUG: ip=127.0.0.1 host=localhost >domain=localhost >11869 Plugin resolve_sender_host, hook connect returned DECLINED, >11869 in config(smtpgreeting) >11869 config(smtpgreeting) returning (Ready!) from cache > >Notice this line emitted from ParaDNS... > > DNS failure looking for 127.0.0.1 after 0 secs (looked for 1, got 0) > >Bind looks good... > > biz-net2# netstat -pluten | grep named > tcp 0 0 127.0.0.1:53 0.0.0.0:* >LISTEN 105 6068 4715/named > tcp 0 0 127.0.0.1:953 0.0.0.0:* >LISTEN 105 6073 4715/named > tcp6 0 0 ::1:53 :::* >LISTEN 105 6070 4715/named > tcp6 0 0 ::1:953 :::* >LISTEN 105 6074 4715/named > udp 0 0 127.0.0.1:53 0.0.0.0:* > 105 6067 4715/named > udp6 0 0 ::1:53 :::* > 105 6069 4715/named > >And host seems to work too... > > biz-net2# host localhost > localhost has address 127.0.0.1 > localhost has IPv6 address ::1 > > biz-net2# host 127.0.0.1 > 1.0.0.127.in-addr.arpa domain name pointer localhost. > >If I turn on ParaDNS debugging (export PARADNS_DEBUG=100) I just see the >lookup fail again... > > 100/2 [17636] dns lookup: Trying to resolve A: 127.0.0.1 > 100/2 [17636] dns lookup: NS Query: 127.0.0.1 (60806) > DNS failure looking for 127.0.0.1 after 0 secs (looked for 1, got 0) > >biz-net2# perl -MParaDNS -e 'print "$ParaDNS::VERSION\n"' >2.0 > >Anyone have any suggestions?