dothost is a DNS lookup utility, which produces output in Graphviz format.
$ dothost www.icann.org | graph-easy --as boxart
┌─────────────────────────┐
∨ │
┏━━━━━━━━━━━━━━━━━━━┓ ┌────────────┐
┌> ┃ www.icann.org ┃ ──> │ 192.0.32.7 │
│ ┗━━━━━━━━━━━━━━━━━━━┛ └────────────┘
│ │
│ │
│ ∨
│ ┌───────────────────┐
└─ │ 2620:0:2d0:200::7 │
└───────────────────┘- Python ≥ 3.7