From df8464e4e22ad1930220ca9ad16591989f98e9f3 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 7 May 2013 16:51:25 +0200 Subject: net.dns: Add nicer API to cached records --- net/dns.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'net/dns.lua') 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 -- cgit v1.2.3