Skip to content

Commit 15fc942

Browse files
author
Daniel W
committed
Merge pull request tungd#55 from bortzmeyer/Authority
2 parents fb0e57b + 21bd477 commit 15fc942

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/dns/record.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ defmodule DNS.Record do
1919
queries = Enum.map(struct.qdlist, &DNS.Query.to_record/1)
2020
answers = Enum.map(struct.anlist, &DNS.Resource.to_record/1)
2121
additional = Enum.map(struct.arlist, &DNS.Resource.to_record/1)
22+
authority = Enum.map(struct.nslist, &DNS.Resource.to_record/1)
2223

23-
_to_record(%{struct | header: header, qdlist: queries, anlist: answers, arlist: additional})
24+
_to_record(%{struct | header: header, qdlist: queries, anlist: answers, nslist: authority, arlist: additional})
2425
end
2526

2627
defp _to_record(%DNS.Record{unquote_splicing(pairs)}) do

0 commit comments

Comments
 (0)