Re: [exim-dev] dnsdb lookup question

2019-10-14 Thread Phil Pennock via Exim-dev
On 2019-10-14 at 12:28 +0100, Graeme Fowler via Exim-dev wrote: > Am I (missing something) or am I about to head deep into the codebase > to work out how to extend the dnsdb code? If someone is volunteering :D then ripping out all of the system resolver usage and replacing it with a libgetdns

Re: [exim-dev] dnsdb lookup question

2019-10-14 Thread Graeme Fowler via Exim-dev
On 14 Oct 2019, at 14:47, Lena--- via Exim-dev wrote: > Or you can use > ${if match{${run{/usr/local/bin/dig +short @... ...}}}{\N\.\N}} Indeed, or one of many alternatives; unfortunately I could do without the execute overhead. Although our platform has a lot of compute resource available,

Re: [exim-dev] dnsdb lookup question

2019-10-14 Thread Lena--- via Exim-dev
> I'll probably wrap Perl's Net::DNS module into a readsocket lookup > as I don't have Perl functionality in Exim in this environment. Or you can use ${if match{${run{/usr/local/bin/dig +short @... ...}}}{\N\.\N}} On my VPS (obsolete FreeBSD 6) `dig` is in /usr/bin : [root@lena ~]# exim -be

Re: [exim-dev] dnsdb lookup question

2019-10-14 Thread Graeme Fowler via Exim-dev
On 14 Oct 2019, at 12:47, Jeremy Harris via Exim-dev wrote: > You're not missing anything. Exim just uses the system resolver library > and doesn't currently use any interface to specify a particular > nameswerver. I don't even know if there is such an API, and I'd > suggest not going looking;

Re: [exim-dev] dnsdb lookup question

2019-10-14 Thread Jeremy Harris via Exim-dev
On 14/10/2019 12:28, Graeme Fowler via Exim-dev wrote: > I have a requirement to specify a nameserver for a specific query, using > dnsdb. I don't think I can do that without adding the specific nameserver > address to /etc/resolv.conf, unless I'm missing some configuration option > that's

[exim-dev] dnsdb lookup question

2019-10-14 Thread Graeme Fowler via Exim-dev
Howdy all Today's "out of my depth" question relates to the dnsdb lookup. I have a requirement to specify a nameserver for a specific query, using dnsdb. I don't think I can do that without adding the specific nameserver address to /etc/resolv.conf, unless I'm missing some configuration option