aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2013-05-07 16:51:25 +0200
committerKim Alvefur <zash@zash.se>2013-05-07 16:51:25 +0200
commitda37f7a74b5c7e148d1302a819640211d1e268a6 (patch)
tree5a12ab511941fa57fbfe5beb1b57b2eda6e2856d
parentbe44da094904edc6262d667730ff673fa5023755 (diff)
downloadprosody-da37f7a74b5c7e148d1302a819640211d1e268a6.tar.gz
prosody-da37f7a74b5c7e148d1302a819640211d1e268a6.zip
net.dns: Add nicer API to cached records
-rw-r--r--net/dns.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/dns.lua b/net/dns.lua
index c9c51fe8..89b50255 100644
--- a/net/dns.lua
+++ b/net/dns.lua
@@ -1072,6 +1072,10 @@ function dns.settimeout(...)
return _resolver:settimeout(...);
end
+function dns.cache()
+ return _resolver.cache;
+end
+
function dns.socket_wrapper_set(...) -- - - - - - - - - socket_wrapper_set
return _resolver:socket_wrapper_set(...);
end