node-dig-dns icon indicating copy to clipboard operation
node-dig-dns copied to clipboard

Answer when querying CAA records doesnt include 2 of the results

Open BelfordZ opened this issue 7 years ago • 2 comments

command: dig www.crowai.com. CAA Result (cli):

...

;; ANSWER SECTION:
www.crowai.com.		299	IN	CNAME	www.unbouncepages.com.
www.unbouncepages.com.	3599	IN	CNAME	unbouncepages.com.
unbouncepages.com.	59	IN	CAA	0 issue "comodoca.com"
unbouncepages.com.	59	IN	CAA	0 issue "letsencrypt.org"
unbouncepages.com.	59	IN	CAA	0 issuewild "comodoca.com"

...

Note that CAA records return 3 values. I specifically require issue or issueWild in the results of dig(['www.crowai.com', 'CAA'])

BelfordZ avatar Mar 19 '18 22:03 BelfordZ

Yes, the result parser is really static right now as you can see here and has to be rewritten completely.

StephanGeorg avatar Mar 20 '18 12:03 StephanGeorg

Thanks for the reply. If I find the time, Ill get a PR in for this. Its not super critical at the moment. Thank you for this lib, big time saver :)

BelfordZ avatar Mar 20 '18 19:03 BelfordZ