projects
/
prosody.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net.dns: Support for parsing PTR records
[prosody.git]
/
net
/
dns.lua
diff --git
a/net/dns.lua
b/net/dns.lua
index 41a0c536c5baf742666ada3c95a812e7bdeb4f51..29d9cf36d227a52df80b9e4ae75a730e094b4e2c 100644
(file)
--- 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;