# HG changeset patch
# User Matthew Wild <mwild1@gmail.com>
# Date 1286320404 -3600
# Node ID 4cf5962747fcaca4d339be0f8a6dd0ba6f1c88fe
# Parent  e344b00f2cc99eaeb961ddcc465b18926265fc37
net.dns: Support for parsing PTR records

diff -r e344b00f2cc9 -r 4cf5962747fc net/dns.lua
--- a/net/dns.lua	Tue Oct 05 18:55:17 2010 +0100
+++ b/net/dns.lua	Wed Oct 06 00:13:24 2010 +0100
@@ -438,6 +438,9 @@
 	  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;