turbot / steampipe-plugin-net

Use SQL to instantly query DNS records, certificates and other network information. Open source CLI. No DB required.
https://hub.steampipe.io/plugins/turbot/net
Apache License 2.0
23 stars 5 forks source link

Add backoff-retry and secondary DNS server for DNS requests #31

Closed cbruno10 closed 2 years ago

cbruno10 commented 2 years ago

Is your feature request related to a problem? Please describe. Sometimes DNS requests timeout, so I'd like to have more reliable query results

Describe the solution you'd like Adding backoff-retry (using Steampipe SDK's backoff retry functionality) and a secondary DNS server should allow for more resiliency when making requests.

Describe alternatives you've considered Running queries again can sometimes return results for failed queries.

Additional context Add any other context or screenshots about the feature request here.

bob-bot commented 2 years ago

Along with retries -- can we look to ignore/skip errors like the AWS Plugin supports? This would help manage the errors to complete the queries / reports.

https://hub.steampipe.io/plugins/turbot/aws#:~:text=%23%20List%20of%20additional,UnauthorizedOperation%22%2C%20%22UnrecognizedClientException%22%2C%20%22AuthorizationError%22%5D

cbruno10 commented 2 years ago

@bob-bot Are there particular errors you're encountering? Can you please share any logs/error messages you have? Thanks!

cbruno10 commented 2 years ago

@bob-bot We've chosen not to add the ability to ignore errors, as we believe errors are important to alert users on. We have improved the backoff/retry mechanism though in the latest version, which should hopefully eliminate all i/o timeout errors all together. If you're still seeing issues though, please let us know!