Open
Description
openedon Nov 7, 2024
Windows Version
Microsoft Windows [Version 10.0.22631.4317]
WSL Version
2.3.24.0
Are you using WSL 1 or WSL 2?
- WSL 2
- WSL 1
Kernel Version
5.15.153.1-2
Distro Version
Ubuntu 22.04
Other Software
No response
Repro Steps
curl google.com
# Connect to another wifi network
curl google.com
Expected Behavior
Getting the same response on both curl
requests:
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8"> <TITLE>301 Moved</TITLE></HEAD><BODY> <H1>301 Moved</H1> The document has moved <A HREF="http://www.google.com/">here</A>. </BODY></HTML>
Actual Behavior
On the second curl:
curl: (6) Could not resolve host: google.com
With the verbose flag:
* Could not resolve host: google.com
* shutting down connection #0
curl: (6) Could not resolve host: google.com
Diagnostic Logs
I also tested dig
:
dig google.com
;; communications error to 8.8.8.8#53: timed out
;; communications error to 8.8.8.8#53: timed out
;; communications error to 8.8.8.8#53: timed out
; <<>> DiG 9.18.28-0ubuntu0.22.04.1-Ubuntu <<>> google.com
;; global options: +cmd
;; no servers could be reached
Note that my /etc/resolve.conf
looks like this:
nameserver 8.8.8.8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Labels
No labels