natesales / q

A tiny command line DNS client with support for UDP, TCP, DoT, DoH, DoQ and ODoH.
GNU General Public License v3.0
1.76k stars 62 forks source link

q does not work with IPv6 dns server #16

Closed Chaz6 closed 2 years ago

Chaz6 commented 2 years ago
$ q www.example.com
DEBU[0000] found server 2001:470:20::2 from /etc/resolv.conf
DEBU[0000] Server: plain://2001:470:20::2
DEBU[0000] Using UDP with TCP fallback
FATA[0000] dial udp: address 2001:470:20::2: too many colons in address
natesales commented 2 years ago

Fixed in v0.5.8

~ # q -V
https://github.com/natesales/q version 0.5.8 (e84c6bbbfaa762f904ffbbd402f83630fa67589e 2022-04-18T20:59:46Z)
~ # q www.example.com @2001:470:20::2
www.example.com. 2h16m22s A 93.184.216.34
www.example.com. 6h19m29s AAAA 2606:2800:220:1:248:1893:25c8:1946
www.example.com. 23h44m46s TXT "wgyf8z8cgvm2qmxpnbnldrcltvk4xqfn"
www.example.com. 23h44m46s TXT "v=spf1 -all"