net.dns: Add nicer API to cached records
authorKim Alvefur <zash@zash.se>
Tue, 7 May 2013 14:51:25 +0000 (16:51 +0200)
committerKim Alvefur <zash@zash.se>
Tue, 7 May 2013 14:51:25 +0000 (16:51 +0200)
net/dns.lua

index c9c51fe8afd470e5f95cf745669e53f839fea5da..89b50255811b606af3ff2a53e0a91312bbe5e974 100644 (file)
@@ -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