• tal@kbin.social
    link
    fedilink
    arrow-up
    7
    ·
    1 year ago

    make dig’s output a little more friendly. If I were better at C programming, I might try to write a dig pull request that adds a +human flag to dig that formats the long form output in a more structured and readable way, maybe something like this:

    Okay, fair enough.

    One quick note on dig: newer versions of dig do have a +yaml output format which feels a little clearer to me, though it’s too verbose for my taste (a pretty simple DNS response doesn’t fit on my screen)

    Man, that is like the opposite approach to what you want. If YAML output is easier to read, that’s incidental; that’s intended to be machine-readable, a stable output format.

    • Outcide@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      just use host or dog.

      ❯ host www.google.com
      www.google.com has address 142.250.204.4
      www.google.com has IPv6 address 2404:6800:4006:814::2004
      
      ❯ dog reddit.com TXT
      TXT reddit.com. 1h00m00s   "614ac4be-8664-4cea-8e29-f84d08ad875c"
      TXT reddit.com. 1h00m00s   "MS=ms71041902"
      ...