Skip to content

My rewrite

Tripple Moon requested to merge TriMoon/dnsdig:my-rewrite into main

My rewrite and enhancements.

  • Make some enhancements to improve future enhancements.
  • Initial need was due to dig using my ~/.digrc by default which the current code did not account for.
  • I took the liberty to add extra's while doing a total rewrite 😉

Oh for got to mention the notable changes, forgive me if i forget some "i'm old"...

  1. The total rewrite makes use of OOP 😉
  2. Allows adding more as 2 IP's per resolver.
  3. Uses all IP's per resolver to calculate avgTime's, as can be seen in the image i posted.
  4. Automatically adjust the displayed time and units used, adjusting as needed: µs->ms->sec->min
  5. Uses visual fractions to convert common numbers after the dot only when possible, as can be seen in the image i posted.
  6. Got rid of awk and grep use, replaced with sed and used bc for math as needed.

Current TODO's and FIXME's are marked in the sources, as well as blocks to aid in debugging while developing with DEBUG-DEV's...

  • Current TODO's out of my head at moment:
    • Make the script accept command line options.
Edited by Tripple Moon

Merge request reports