StephanGeorg / node-dig-dns

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

Answer when querying CAA records doesnt include 2 of the results #2

Open BelfordZ opened 6 years ago

BelfordZ commented 6 years ago

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'])

StephanGeorg commented 6 years ago

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

BelfordZ commented 6 years ago

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 :)