From 26cf54ee8be9c24baf35bd9a50c9b1b77c0849f0 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Wed, 6 Oct 2010 00:13:24 +0100 Subject: net.dns: Support for parsing PTR records --- net/dns.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'net') diff --git a/net/dns.lua b/net/dns.lua index 41a0c536..29d9cf36 100644 --- a/net/dns.lua +++ b/net/dns.lua @@ -438,6 +438,9 @@ function resolver:SRV(rr) -- - - - - - - - - - - - - - - - - - - - - - SRV rr.srv.target = self:name(); end +function resolver:PTR(rr) + rr.ptr = self:name(); +end function SRV_tostring(rr) -- - - - - - - - - - - - - - - - - - SRV_tostring local s = rr.srv; -- cgit v1.2.3