From 14b3c5bc64a16df07583fe4b5ef2e0129d063893 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Thu, 17 Sep 2015 13:35:16 +0100 Subject: DNS: time-limit cached returns, using TTL. Bug 1395 This can matter for fast-changing data such as DNSBLs. --- test/scripts/2200-dnsdb/2200 | 13 +++++++++++++ test/scripts/2200-dnsdb/2201 | 18 ++++++++++++++++++ 2 files changed, 31 insertions(+) (limited to 'test/scripts/2200-dnsdb') diff --git a/test/scripts/2200-dnsdb/2200 b/test/scripts/2200-dnsdb/2200 index 40837dbd0..9f6262524 100644 --- a/test/scripts/2200-dnsdb/2200 +++ b/test/scripts/2200-dnsdb/2200 @@ -49,3 +49,16 @@ defer_strict:ten-1 ${lookup dnsdb{defer_strict,a=test.again.dns:ten-1.te delay1500 ${lookup dnsdb{retrans_1s,retry_2,a=delay1500.test.ex}} **** +# +# Cacheability +exim -d-all+lookup -be +a=localhost.test.ex ${lookup dnsdb{a=localhost.test.ex}{$value}fail} +a=localhost.test.ex ${lookup dnsdb{a=localhost.test.ex}{$value}fail} +**** +# +# TTL-limited noncacheability +exim -d-all+lookup -odq user@shorthost.test.ex +**** +# +no_msglog_check +# diff --git a/test/scripts/2200-dnsdb/2201 b/test/scripts/2200-dnsdb/2201 index 600298793..d432ca187 100644 --- a/test/scripts/2200-dnsdb/2201 +++ b/test/scripts/2200-dnsdb/2201 @@ -1,6 +1,24 @@ # query-style lookup in domains, local_parts, senders +munge debug_pid exim -d -bt test.ex@test.ex unknown@test.ex **** 2 exim -f a@b.c -bt test.ex@test.ex unknown@test.ex **** +# +# +# lookup non/cacheability, lookup done as a list item +exim -d-all+lookup -odq -f a@shorthost.test.ex t@test.ex +**** +# +# +# lookup non/cacheability, lookup done for a dnslists= ACL condition +exim -DSERVER=server -d-all+dnsbl -bd -oX PORT_D +**** +exim -q +**** +# +killdaemon +millisleep 500 +no_msglog_check +# -- cgit v1.2.3