public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* dig and host don't work in IPv6
@ 2023-07-28 15:58 Andrew Schulman
  2023-07-28 16:52 ` [EXTERNAL] " Lavrentiev, Anton (NIH/NLM/NCBI) [C]
  0 siblings, 1 reply; 7+ messages in thread
From: Andrew Schulman @ 2023-07-28 15:58 UTC (permalink / raw)
  To: cygwin

Our agency has started using IPv6. My PC has IPv4 and IPv6 addresses. DNS
servers are all IPv6 addresses.

All of this works great, except that now the host and dig commands no longer
work, even with -6:

$ dig -6 cygwin.com

; <<>> DiG 9.11.9 <<>> -6 cygwin.com
;; global options: +cmd
;; connection timed out; no servers could be reached


It does work if I specify the DNS server in the command:

$  dig @2620:117:5010:1a1::f005 cygwin.com

; <<>> DiG 9.11.9 <<>> @2620:117:5010:1a1::f005 cygwin.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 56580
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1220
; COOKIE: d078f7e381ceee2117dbf35864c3e4d5b7b37dc8c646f48c (good)
;; QUESTION SECTION:
;cygwin.com.            IN  A

;; ANSWER SECTION:
cygwin.com.     3600    IN  A   8.43.85.97

;; Query time: 142 msec
;; SERVER: 2620:117:5010:1a1::f005#53(2620:117:5010:1a1::f005)
;; WHEN: Fri Jul 28 11:55:01 EDT 2023
;; MSG SIZE  rcvd: 83


It also works if I manually add a 'nameserver' line to /etc/resolv.conf. That's
not a sustainable solution though, since the nameservers change and I drop into
and out of the IPv6 VPN.

Should I be doing something differently? Or is it a bug?

Thanks,
Andrew


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-08-01  3:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-28 15:58 dig and host don't work in IPv6 Andrew Schulman
2023-07-28 16:52 ` [EXTERNAL] " Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2023-07-28 17:16   ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2023-07-28 23:03   ` Andrew Schulman
2023-07-29  2:35     ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2023-07-29 14:26       ` Andrew Schulman
2023-08-01  3:04         ` Lee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).