Comments (6)
I finally got apt-get to work with the above steps. However i needed to change 'etc/resolv.conf` to
nameserver 8.8.8.8
nameserver 8.8.4.4
ping
still does not work :-(
root@localhost:~# ping www.google.com
ping: icmp open socket: Socket type not supported
Thanks for the help!
from wsl.
@mjansen1028
ping still does not work :-(
This is another issue, please open it separately. Thanks 😄
from wsl.
(I posted a longer version of this in issue #5. I hope the repetition isn't considered abusive, but I thought a summary here might be useful to someone.)
This problem is compounded by the fact that common DNS tools that you might use in diagnosing this, like host
or dig
, don't work even once you have got your DNS set up correctly.
In fact, all the BIND DNS tools that are installed by default don't currently seem to function here, but the equivalent Knot DNS tools do, and you can install them once you have working DNS, using apt-get install knot-dnsutils knot-host
.
from wsl.
Assuming you are behind a router that serves as a DNS proxy, you can also add the router's IPv4 IP address, usually 192.168.0.1 or 192.168.1.1. Do an nslookup example.org
in Windows CMD, and you'll see the server address it's using.
from wsl.
@DenzoNL, are you still getting this error on 14334? We did a lot of work in this build to make the resolv.conf more reliable.
from wsl.
@russalex Did a fresh install on 14334 using lxrun /uninstall /full
and lxrun /install
, and /etc/resolv.conf
is properly set by default now. Issue resolved!
from wsl.
Related Issues (20)
- HTTPS doesn't work under mirrored network mode. HOT 5
- Since update to windows 24H2 Error code: Wsl/Service/CreateInstance/0xd0000022 HOT 2
- apt dist-upgrade is stop - kali linux - WSL 2 HOT 14
- Add a neutral networkingMode in C:\Users\user\.wslconfig HOT 5
- Error Code: 0x80004005 HOT 4
- Error Code 0x80370114 - docker stopped working, ubuntu stuck on installing state ... HOT 2
- Surprising quoting behavior in wsl command from Windows HOT 2
- I Need help with audio HOT 1
- I Need help with audio, a way to get audio without pulseaudio HOT 6
- I Need help with audio in WSL, a way to get audio without using pulseaudio HOT 9
- systemd not running in my Debian distro even though enabled in /etc/wsl.conf and running in my Ubuntu distro HOT 2
- Unregistered class Error code: Wsl/CallMsi/REGDB_E_CLASSNOTREG HOT 3
- cannot get access to virtualbox VM with Host-Only adapter via WSL with 'mirrored' networkMode HOT 2
- Remove specific GPU from WSL2 HOT 3
- Root access restriction HOT 5
- WSL host name sync HOT 5
- upgrade support to wsl distros HOT 6
- WSL2 does not open anymore due to an accidental delete of one or more environment variables. HOT 4
- Please support Docker macvlan HOT 5
- Vulkan support in WSL2/WSLg HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wsl.