StephanGeorg / node-dig-dns

Use dig command (domain information grope) for DNS queries in node
MIT License
37 stars 21 forks source link

Truncated TXT record #19

Closed clementcheung closed 2 years ago

clementcheung commented 2 years ago

The parse() function on index.js assumes whitespaces are the delimiter for splitting an output line. However, this fails for the TXT record because this type of record allows free text which could contains whitespaces.

e.g.

;; ANSWER SECTION: sample.fqdn 900 IN TXT "hello world"