how do I?

make dig readable

by specifying +yaml, and +noquestion and getting clear, structured output.

Resulting in this:

> dig bbc.co.uk +yaml +noquestion

- type: MESSAGE
  message:
    type: RECURSIVE_RESPONSE
    query_time: !!timestamp 2025-09-22T18:46:50.234Z
    response_time: !!timestamp 2025-09-22T18:46:50.250Z
    message_size: 102b
    socket_family: INET
    socket_protocol: UDP
    response_address: "127.0.0.53"
    response_port: 53
    query_address: "0.0.0.0"
    query_port: 0
    response_message_data:
      opcode: QUERY
      status: NOERROR
      id: 62319
      flags: qr rd ra
      QUESTION: 1
      ANSWER: 4
      AUTHORITY: 0
      ADDITIONAL: 1
      OPT_PSEUDOSECTION:
        EDNS:
          version: 0
          flags:
          udp: 65494
      ANSWER_SECTION:
        - 'bbc.co.uk. 107 IN A 151.101.64.81'
        - 'bbc.co.uk. 107 IN A 151.101.192.81'
        - 'bbc.co.uk. 107 IN A 151.101.0.81'
        - 'bbc.co.uk. 107 IN A 151.101.128.81'

Not this:

> dig bbc.co.uk

; <<>> DiG 9.18.39-0ubuntu0.24.04.2-Ubuntu <<>> bbc.co.uk
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 35477
;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 65494
;; QUESTION SECTION:
;bbc.co.uk.                     IN      A

;; ANSWER SECTION:
bbc.co.uk.              0       IN      A       151.101.64.81
bbc.co.uk.              0       IN      A       151.101.192.81
bbc.co.uk.              0       IN      A       151.101.0.81
bbc.co.uk.              0       IN      A       151.101.128.81

;; Query time: 8 msec
;; SERVER: 127.0.0.53#53(127.0.0.53) (UDP)
;; WHEN: Mon Sep 22 18:50:09 GMT 2025
;; MSG SIZE  rcvd: 102