Diff

net/dns.lua @ 5566:74ae3e7e8779

net.dns: Add nicer API to cached records
author Kim Alvefur <zash@zash.se>
date Tue, 07 May 2013 16:51:25 +0200
parent 5340:51c9959c21c0
child 5705:6eebd5808fbc
child 5730:411e9e7d8035
line wrap: on
line diff
--- 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