ogham / dog

A command-line DNS client.

Home Page:https://dns.lookup.dog/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for IPv6 nameserver

k-akashi opened this issue · comments

I may use an ipv6 only nameserver in some environments, but a current dog does not seem to support ipv6.
Is there any plan to add support for ipv6 in the future?

This is a weird gap in the tool. It is supported by dig just fine.

ubuntu@ip-10-32-23-227:~/dog$ dig google.com @2606:4700:4700::1111

; <<>> DiG 9.18.12-0ubuntu0.22.04.2-Ubuntu <<>> google.com @2606:4700:4700::1111
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 780
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;google.com.                    IN      A

;; ANSWER SECTION:
google.com.             150     IN      A       172.217.0.174

;; Query time: 12 msec
;; SERVER: 2606:4700:4700::1111#53(2606:4700:4700::1111) (UDP)
;; WHEN: Tue Jun 27 18:35:58 UTC 2023
;; MSG SIZE  rcvd: 55

ubuntu@ip-10-32-23-227:~/dog$ dog google.com @2606:4700:4700::1111
Error [network]: failed to lookup address information: Name or service not known
ubuntu@ip-10-32-23-227:~/dog$ dog google.com @1.1.1.1
A google.com. 2m28s   142.250.191.142

In the above example dig-ipv6 works, dog-ipv4 works, but dog-ipv6 fails.