net.dns: Add nicer API to cached records
authorKim Alvefur <zash@zash.se>
Tue, 07 May 2013 16:51:25 +0200
changeset 5566 74ae3e7e8779
parent 5565 6dd806829226
child 5567 c4ab25b35a55
net.dns: Add nicer API to cached records
net/dns.lua
--- a/net/dns.lua	Tue May 07 10:42:44 2013 -0400
+++ b/net/dns.lua	Tue May 07 16:51:25 2013 +0200
@@ -1072,6 +1072,10 @@
 	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