Skip to content
Snippets Groups Projects
Commit bbe5aa80 authored by Štěpán Balážik's avatar Štěpán Balážik
Browse files

Fixed example for using resolve() function.

parent ce28b173
No related merge requests found
************************ ************************
Knot DNS Resolver daemon Knot DNS Resolver daemon
************************ ************************
...@@ -449,6 +448,7 @@ Environment ...@@ -449,6 +448,7 @@ Environment
-- Print matching records -- Print matching records
local records = pkt:section(kres.section.ANSWER) local records = pkt:section(kres.section.ANSWER)
for i = 1, #records do for i = 1, #records do
local rr = records[i]
if rr.type == kres.type.AAAA then if rr.type == kres.type.AAAA then
print ('record:', kres.rr2str(rr)) print ('record:', kres.rr2str(rr))
end end
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment