[exim-dev] [Bug 291] Find IP addresses of a domain's nameser…

Página Inicial
Delete this message
Reply to this message
Autor: Phil Pennock
Data:  
Para: exim-dev
Assunto: [exim-dev] [Bug 291] Find IP addresses of a domain's nameservers
------- You are receiving this mail because: -------
You are the QA contact for the bug.

http://bugs.exim.org/show_bug.cgi?id=291

Nigel Metheringham <nigel@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|Exim 4.72                   |Exim 4.73


Phil Pennock <pdp@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pdp@???
         AssignedTo|nigel@???              |pdp@???





--- Comment #2 from Phil Pennock <pdp@???> 2010-06-06 05:16:25 ---
With map/filter, this can be mostly done now.

IPv4-only, assuming all entries have A records:
${map {${lookup dnsdb{>: ns=spodhuis.org}}}{${lookup dnsdb{a=$item}}}}

However, whichever way around I try, I'm unable to get working results for
IPv4+IPv6 with empty items trimmed, because filter with a spec and an explicit
instance of the separator character appears to be auto-doubling the separator.
Or I'm missing something.

First way fails harder:
${filter {<; ${map {<; ${lookup dnsdb{>; ns=spodhuis.org}}}{${lookup dnsdb{>;
a=$item}};${lookup dnsdb{>; aaaa=$item}}}}}{!eq{$item}{}}}

second way fails less:
${map{<; ${lookup dnsdb{>; ns=spodhuis.org}}}{${filter{<; ${lookup dnsdb{>;
a=$item}};${lookup dnsdb{>; aaaa=$item}}}{!eq{$item}{}}}}}

I suspect I'm just being dumb so I'm going to hold off from ripping apart dnsdb
to be able to do two lookups given a pseudo-type of T_ADDR/"addr" and hope
someone else points out precisely how I'm being dumb.


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email