StephanGeorg / node-dig-dns

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

Validations when DIG response is not expected #5

Closed jalamprea closed 5 years ago

jalamprea commented 5 years ago

When DIG response is something different like a timeout error or something else, the response should validated before try to access to the array data in fixed positions. I have added this validations and reject the response in case of this kind of errors. Also added the respective test!

StephanGeorg commented 5 years ago

Thanks @jalamprea

Merged, reviewed and published to npm to node-dig-dns@0.2.10