1 # dnsdb lookup in string expansions
4 test.ex ${lookup dnsdb{test.ex}{$value}fail}
5 txt=test.ex ${lookup dnsdb{txt=test.ex}{$value}fail}
6 a=black-1.test.ex ${lookup dnsdb{a=black-1.test.ex}{$value}fail}
7 xxx=test.ex ${lookup dnsdb{xxx=test.ex}{$value}fail}
8 a=localhost.test.ex ${lookup dnsdb{a=localhost.test.ex}{$value}fail}
9 cname=alias-eximtesthost.test.ex ${lookup dnsdb{cname=alias-eximtesthost.test.ex}{$value}fail}
10 ns=test.ex ${lookup dnsdb{ns=test.ex}{$value}fail}
11 zns=x.y.z.test.ex ${lookup dnsdb{zns=x.y.z.test.ex}{$value}fail}
12 mx=mxt1.test.ex ${lookup dnsdb{mx=mxt1.test.ex}{$value}fail}
13 mx=mxt3.test.ex ${lookup dnsdb{mx=mxt3.test.ex}{$value}fail}
14 mxh=mxt1.test.ex ${lookup dnsdb{mxh=mxt1.test.ex}{$value}fail}
15 ptr=V4NET.0.0.1 ${lookup dnsdb{ptr=V4NET.0.0.1}{$value}fail}
16 ptr=ptr.test.ex ${lookup dnsdb{ptr=ptr.test.ex}{$value}fail}
17 srv=_smtp._tcp.srv01.test.ex ${lookup dnsdb{srv=_smtp._tcp.srv01.test.ex}{$value}{fail}}
18 srv=_smtp._tcp.nosmtp.test.ex ${lookup dnsdb{srv=_smtp._tcp.nosmtp.test.ex}{$value}{fail}}
20 csa=csa1.test.ex ${lookup dnsdb{csa=csa1.test.ex}}
21 csa=csa2.test.ex ${lookup dnsdb{csa=csa2.test.ex}}
23 # DNS lookups with multiple items
25 ten-1:ten2 ${lookup dnsdb{a=ten-1.test.ex:ten-2.test.ex}}
26 ten-1:defer:ten2 ${lookup dnsdb{a=ten-1.test.ex:test.again.dns:ten-2.test.ex}}
27 ten-1|ten2 ${lookup dnsdb{a=<|ten-1.test.ex|ten-2.test.ex}}
28 mxt1;mxt2 | output ${lookup dnsdb{>|mx=<;mxt1.test.ex;mxt2.test.ex}}
29 mxt1;mxt2 | output ${lookup dnsdb{>|mxh=<;mxt1.test.ex;mxt2.test.ex}}
30 13/14 rbl ${lookup dnsdb{> 13.12.11.V4NET.rbl.test.ex:13.12.11.V4NET.rbl.test.ex}}
31 double ptr ${lookup dnsdb{ptr=V4NET.0.0.1:V4NET.0.0.2}}
32 ten-1:bad ${lookup dnsdb{ a = ten-1.test.ex:badbad.test.ex}{$value}{FAILED}}
33 bad:bad ${lookup dnsdb{ a = <; badbad.test.ex ; badbad.test.ex}{$value}{FAILED}}
35 defer:defer ${lookup dnsdb{a=test.again.dns:test.again.dns}}
36 defer_lax:ten-1 ${lookup dnsdb{a=test.again.dns:ten-1.test.ex}}
37 defer_lax:ten-1 ${lookup dnsdb{defer_lax,a=test.again.dns:ten-1.test.ex}}
38 defer_never:ten-1 ${lookup dnsdb{defer_never,a=test.again.dns:ten-1.test.ex}}
39 defer_never:defer ${lookup dnsdb{defer_never,a=test.again.dns:test.again.dns}}
40 defer_strict:ten-1 ${lookup dnsdb{defer_strict,a=test.again.dns:ten-1.test.ex}}