Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resolv.conf is not persisted between sessions #4383

Closed
nicoabie opened this issue Aug 7, 2019 · 3 comments
Closed

resolv.conf is not persisted between sessions #4383

nicoabie opened this issue Aug 7, 2019 · 3 comments

Comments

@nicoabie
Copy link

nicoabie commented Aug 7, 2019

  • Your Windows build number: Microsoft Windows [Version 10.0.18950.1000]

  • What you're doing and what's happening:
    I modified /etc/wsl.conf setting generateResolvConf = false.
    I added a nameserver to /etc/resolv.conf that works
    (the name server generated automatically doesn't work)

  • What's wrong / what should be happening instead:
    The resolv.conf gets deleted after I shutdown wsl.
    I believe that if I opted out of it being generated it should not be removed.

@Biswa96
Copy link

Biswa96 commented Aug 7, 2019

After effect of this #4210.

@benhillis
Copy link
Member

/etc/resolv.conf is typically a symlink to tmpfs. You will have to also replace the symlink wih a regular file.

@therealkenc
Copy link
Collaborator

Same as #3928

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants