diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-10-06 00:13:24 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-10-06 00:13:24 +0100 |
commit | 26cf54ee8be9c24baf35bd9a50c9b1b77c0849f0 (patch) | |
tree | e08820b32edee8075b6dfccdbf6145f637dfdd77 | |
parent | 0f6754746c9174992bd59fc3e167d0a39f9526ee (diff) | |
download | prosody-26cf54ee8be9c24baf35bd9a50c9b1b77c0849f0.tar.gz prosody-26cf54ee8be9c24baf35bd9a50c9b1b77c0849f0.zip |
net.dns: Support for parsing PTR records
-rw-r--r-- | net/dns.lua | 3 |
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; |