aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-10-06 00:13:24 +0100
committerMatthew Wild <mwild1@gmail.com>2010-10-06 00:13:24 +0100
commit26cf54ee8be9c24baf35bd9a50c9b1b77c0849f0 (patch)
treee08820b32edee8075b6dfccdbf6145f637dfdd77 /net
parent0f6754746c9174992bd59fc3e167d0a39f9526ee (diff)
downloadprosody-26cf54ee8be9c24baf35bd9a50c9b1b77c0849f0.tar.gz
prosody-26cf54ee8be9c24baf35bd9a50c9b1b77c0849f0.zip
net.dns: Support for parsing PTR records
Diffstat (limited to 'net')
-rw-r--r--net/dns.lua3
1 files changed, 3 insertions, 0 deletions
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;