Andy Smith wrote:
> What you may find useful is translating the IP address to the AS
> number which can be done via DNS:
>
> http://www.cymru.com/BGP/asnlookup.html#dns
>
> $ dig +short -t txt 5.231.50.69.origin.asn.cymru.com
> "26904 | 69.50.224.0/20 | US | arin | 2003-06-05"
> $ dig +short -t txt AS26904.asn.cymru.com
> "26904 | US | arin | 2002-12-16 | NECTARTECH - NECTARTECH SERVICES"
>
> Cheers,
> Andy
>
similarly, here:
{${lookup dnsdb{defer_never,txt=\
${extract{4}{.}{$sender_host_address}}.\
${extract{3}{.}{$sender_host_address}}.\
${extract{2}{.}{$sender_host_address}}.\
${extract{1}{.}{$sender_host_address}}.\
asn.routeviews.org}\
{(from_AS ${extract{1}{\n}{$value}})\n\t} {} }
- Jeremy
--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/