/ex2 /google

1. q

https://github.com/natesales/q

A tiny and feature-rich command line DNS client with support for UDP, TCP, DoT, DoH, DoQ, and ODoH.

/snap/bin/go version go version go1.21.4 linux/amd64

git clone + go install -> .local/bin

Server Selection

q will use a server from the following sources, in order:

    @server argument (e.g. @9.9.9.9 or @https://dns.google/dns-query)
    Q_DEFAULT_SERVER environment variable
    /etc/resolv.conf

2. history

q -h

Usage:
  q [OPTIONS] [@server] [type...] [name]

2023/11/16 21:32:32 failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 416 kiB). See https://github.com/quic-go/quic-go/wiki/UDP-Buffer-Sizes for details.

https://github.com/quic-go/quic-go/wiki/UDP-Buffer-Sizes

3. sample query

$ q qmail.jp @tls://1.1.1.1
qmail.jp. 24h MX 0 .
qmail.jp. 10m TXT "Powered by djbdns - http://cr.yp.to/djbdns.html"
qmail.jp. 24h TXT "v=spf1 mx/28 -all"
qmail.jp. 72h NS a.ns.qmail.jp.
qmail.jp. 72h NS b.ns.qmail.jp.
qmail.jp. 72h NS d.ns.qmail.jp.

$ q -v qmail.jp @tls://1.1.1.1
DEBU[0000] Name: qmail.jp                               
DEBU[0000] RR types: [MX TXT CNAME A AAAA NS]           
DEBU[0000] Server(s): [tls://1.1.1.1]                   
DEBU[0000] Using server 1.1.1.1:853 with transport tls  
DEBU[0000] Using TLS transport: 1.1.1.1:853             
qmail.jp. 10m TXT "Powered by djbdns - http://cr.yp.to/djbdns.html"
qmail.jp. 24h TXT "v=spf1 mx/28 -all"
qmail.jp. 72h NS a.ns.qmail.jp.
qmail.jp. 72h NS b.ns.qmail.jp.
qmail.jp. 72h NS d.ns.qmail.jp.
qmail.jp. 24h MX 0 .

quic は返事なし。

3.1. AdGuard

$ q qmail.jp @quic://dns.adguard-dns.com
WARN[0000] No ALPN tokens specified, using default: "doq" 
2023/11/17 07:45:29 failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 416 kiB). See https://github.com/quic-go/quic-go/wiki/UDP-Buffer-Sizes for details.
qmail.jp. 13h45m56s NS a.ns.qmail.jp.
qmail.jp. 13h45m56s NS b.ns.qmail.jp.
qmail.jp. 13h45m56s NS d.ns.qmail.jp.
qmail.jp. 13h45m56s MX 0 .
qmail.jp. 9m32s TXT "Powered by djbdns - http://cr.yp.to/djbdns.html"
qmail.jp. 23h59m32s TXT "v=spf1 mx/28 -all"

$ q n-1.space @udp://decker.ns.cloudflare.com
FATA[0000] unsupported transport udp. expected: [plain tcp tls http quic dnscrypt] 


CategoryDns CategoryWatch CategoryTemplate

MoinQ: DNS-over-QUIC/client/q (last edited 2023-11-17 11:59:49 by ToshinoriMaeno)