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

dnsTunneling not supported according to EventLog #10853

Closed
1 of 2 tasks
jantari opened this issue Nov 30, 2023 · 3 comments
Closed
1 of 2 tasks

dnsTunneling not supported according to EventLog #10853

jantari opened this issue Nov 30, 2023 · 3 comments

Comments

@jantari
Copy link

jantari commented Nov 30, 2023

Windows Version

10.0.19045.3693

WSL Version

2.0.9.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.133.1-microsoft-standard-WSL2

Distro Version

Ubuntu 22.04

Other Software

No response

Repro Steps

  1. Use all the same versions as me (particularly Windows, WSL)
  2. Create a ~/.wslconfig on the Windows side with the following content:
    [experimental]
    networkingMode=NAT
    dnsTunneling=true
    
  3. Attempt to open an Ubuntu 22.04 WSL2 instance
  4. It takes a bit longer than it should and a notification pops "Error starting WSL, see details in EventLog"
  5. The Ubuntu 22.04 WSL2 instance does start, but dnsTunneling is not functioning

Expected Behavior

The Ubuntu instance should start in the usual (pre-enabling dnsTunneling) speed, no error notification should pop and dnsTunneling should work.

Actual Behavior

The Ubuntu instance takes a bit longer to start than before (no big deal), an error notification pops up and dnsTunneling does not work.

Diagnostic Logs

This is the XML view of the Event in EventLog. I am so terribly sorry for it being localized to german, but it was Microsofts' terrific idea to localize errors and event messages in this OS, not mine, so I am unfortunately unable to provide logs in english:

<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="WSL" /> 
    <EventID Qualifiers="40960">0</EventID> 
    <Version>0</Version> 
    <Level>3</Level> 
    <Task>0</Task> 
    <Opcode>0</Opcode> 
    <Keywords>0x80000000000000</Keywords> 
    <TimeCreated SystemTime="2023-11-30T08:22:17.0503417Z" /> 
    <EventRecordID>49501</EventRecordID> 
    <Correlation /> 
    <Execution ProcessID="0" ThreadID="0" /> 
    <Channel>Application</Channel> 
    <Computer>NB-SERIALNUMBER.domain.local</Computer> 
    <Security /> 
  </System>
  <EventData>
    <Data>DNS-Tunneln wird nicht unterstützt</Data> 
  </EventData>
</Event>
@jantari
Copy link
Author

jantari commented Nov 30, 2023

I am also aware that the dnsTunneling feature requres both Windows 22H2+ and WSL 2.0.0+ according to:

  1. This docs page https://learn.microsoft.com/en-us/windows/wsl/wsl-config#experimental-settings

    Entries with an ** after the value type require Windows version 22H2 or higher.

  2. These release notes: https://github.com/microsoft/WSL/releases/tag/2.0.0
    which show that dnsTunneling was introduced in WSL 2.0.0

but I am running both of these so all requirements are met.

@OneBlue
Copy link
Collaborator

OneBlue commented Nov 30, 2023

Indeed @jantari. DNS tunnelling is only supported on Windows 11 so this is why you're seeing this warning.

@OneBlue OneBlue closed this as completed Nov 30, 2023
@jantari
Copy link
Author

jantari commented Nov 30, 2023

That's unfortunate, could the docs be fixed then?

They explicitly differentiate between features that require Windows 11 and features that require Windows 22H2:

Entries with an * after the value type are only available on Windows 11.

Entries with an ** after the value type require Windows version 22H2 or higher.

And dnsTunneling has two **, as such one expects it to work on Windows 10 22H2 as is documented.

jantari added a commit to jantari/WSL that referenced this issue Jan 9, 2024
Previously the docs stated that Windows version 22H2 was required, but that is wrong: microsoft/WSL#10853

it is specifically Windows *11* version 22H2 that is required.
mattwojo pushed a commit to MicrosoftDocs/WSL that referenced this issue Feb 22, 2024
Previously the docs stated that Windows version 22H2 was required, but that is wrong: microsoft/WSL#10853

it is specifically Windows *11* version 22H2 that is required.
mattwojo added a commit to MicrosoftDocs/WSL that referenced this issue Feb 22, 2024
* Fixing small formatting and writing errors. (#1863)

* Fix broken code block and bookmark link (#1866)

* Fix broken code block

* Update broken wslconfig bookmark

* Update install-on-server.md (#1871)

Fix indent and numbering for better readability.

* Fix punctuation errors (#1876)

* small improvements in troubleshooting.md (#1877)

Some small formatting improvements.
Also added the command to restart the hns service.

* Fix a few typos (#1879)

Co-authored-by: Matt Wojciakowski <mattwoj@microsoft.com>

* Updated guide to fix an issue because of a wrong command (#1884)

* Update wsl-containers.md

Running Dev Containers: **Open Folder in Container...** when using this guide is not / no longer correct, as most readers will already have opened the folder while connected to WSL based on the steps provided above. We need to use **Dev Containers: Reopen in Container** or it will fail to create the .devcontainer folder and devcontainer.json and give a (unfortunately not very clear) error message.


See also: https://code.visualstudio.com/docs/devcontainers/containers#_open-a-wsl-2-folder-in-a-container-on-windows
   
- Use the Dev Containers: Reopen in Container command from a folder already opened using the WSL extension.
- Select Dev Containers: Open Folder in Container... from the Command Palette (F1) and choose a WSL folder using the local \\wsl$ share (from the Windows side).

* Update wsl-containers.md

---------

Co-authored-by: Matt Wojciakowski <mattwoj@microsoft.com>

* Update faq.yml -- tiny grammar change (#1885)

* Update faq.yml -- tiny grammar change 

'changes to locale to' -> 'changes the locale to'

* Update basic-commands.md

'If you running WSL' -> 'If you run WSL'

* Update basic-commands.md

* rephrase a long sentence
* swap order of two sentences to make example of command closer to the description of the command

example of command: `wsl --set-default-version 2`

* Update basic-commands.md

Replace 

wsl -u <Username>`, `wsl --user <Username>

with

wsl --user <Username>

`wsl -u <Username>` and `wsl --user <Username>` are equivalent. Both commands are correct for the section of the documentation, but the display of the commands in the documentation was incorrect due to the stray ticks and comma.

* Update gui-apps.md to simplify commits. (#1880)

* Update gui-apps.md

If we are already referencing apt, why not just use apt to install google chrome?

* Update gui-apps.md

forgot --fix-missing

* Add a note to explain the command flags and path

---------

Co-authored-by: Matt Wojciakowski <mattwoj@microsoft.com>

* Fix anchor warning

* Updated docs for usbipd-win updates (#1870)

* Updated docs for usbipd-win updates

* Update url to latest

Co-authored-by: Frans van Dorsselaer <17404029+dorssel@users.noreply.github.com>

* Fixes based on feedback

Thank you @dorssel !

* Remove admin requirement

Co-authored-by: Frans van Dorsselaer <17404029+dorssel@users.noreply.github.com>

* Remove x86 support

Co-authored-by: Frans van Dorsselaer <17404029+dorssel@users.noreply.github.com>

---------

Co-authored-by: Matt Wojciakowski <mattwoj@microsoft.com>
Co-authored-by: Frans van Dorsselaer <17404029+dorssel@users.noreply.github.com>

* Moving experimental settings to the experimental section (#1901)

* Moving experimental settings to the experimental section

Some networking config settings are still experimental. Moving those to the experimental section of the document so customers know how to use these settings.

* Added code ticks to new setting entries

* Update wsl-config.md

fixing settings which are no longer experimental, but the text still referred to them as experimental

* Update wsl-config.md

fixed the string referring to autoProxy. it's no longer experimental.

---------

Co-authored-by: Matt Wojciakowski <mattwoj@microsoft.com>

* Moving ms.prod and ms.technology to ms.service and ms.subservice

* Update to new feedback mechanism (#1917)

* Update to new feedback mechanism

* fix desc syntax

* Fix template link

* add svg support

* Update wsl-config.md to document the dnsProxy option (#1920)

dnsProxy is a wls2 configuration option which we need to document for customers that need to turn off the NAT DNS proxy.

* User/chdhan/networking doc update 2/21/24 (#1928)

* Signed-off-by: Chanpreet Dhanjal <chdhan@microsoft.com>

* updating troubleshooting page.

* Updating troubleshooting guide

* updating troubleshooting guide

* Editorial update, added explainer

* Update image alt text for accessibility

---------

Co-authored-by: Matt Wojciakowski <mattwoj@microsoft.com>

* Fix typo (#1924)

Github -> GitHub

* Fix typo (#1923)

Github -> GitHub

* Removed mention of deprecated content (#1915)

* FAQ: Split Hyper-V and Windows Home questions into two (#1914)

* FAQ: Split Hyper-V and Windows Home questions into two

Fixes #899

* FAQ: clarify WSL features need to be enabled

* Update wsl-plugins.md (#1913)

* Import export command clarification (#1910)

* Split the import and export commands into separate sections

- My original intent was to clarify that the export command exports a **snapshot** of the specified distribution. The way it is currently written doesn't say otherwise, but it could be interpreted to mean it exports a clean install without the user's modifications. 

    - In other words, it could be saying `wsl --export Ubuntu ubuntu.tar` is equivalent to downloading the official "ubuntu.tar" from the internet. 
- Splitting these two was not part of my original goal, merely a step along the way to achieve it.
- I decided to make this its own commit so that it can be `cherry-pick`ed if it provides value on its own but the upcoming commits do not.

* Specify that the export command exports a snapshot

* Fix orphan links to import/export command sections

* fix ambiguous wording for required win version (#1895)

Previously the docs stated that Windows version 22H2 was required, but that is wrong: microsoft/WSL#10853

it is specifically Windows *11* version 22H2 that is required.

---------

Co-authored-by: Stefan Nikolaj <51296436+snikolaj@users.noreply.github.com>
Co-authored-by: Anton Kesy <antonkesy@gmail.com>
Co-authored-by: Ishan Jain <github@ishan.jain.se>
Co-authored-by: Krishna Vivek Vitta <84629581+krishnacx@users.noreply.github.com>
Co-authored-by: icyerasor <andreas@feldschmid.com>
Co-authored-by: Blake-Madden <66873089+Blake-Madden@users.noreply.github.com>
Co-authored-by: vmsteiner <107506233+vmsteiner@users.noreply.github.com>
Co-authored-by: Andrew Zipperer <47086307+zipperer@users.noreply.github.com>
Co-authored-by: Wes Bryie <wes@wesbryie.tech>
Co-authored-by: Craig Loewen <crloewen@microsoft.com>
Co-authored-by: Frans van Dorsselaer <17404029+dorssel@users.noreply.github.com>
Co-authored-by: Keith Horton <khorton@microsoft.com>
Co-authored-by: Drew Batchelor (he/him) <drewbat@microsoft.com>
Co-authored-by: chanpreetdhanjal <68442928+chanpreetdhanjal@users.noreply.github.com>
Co-authored-by: Takashi Takebayashi <changeworld@users.noreply.github.com>
Co-authored-by: Patrick Brosset <patrickbrosset@gmail.com>
Co-authored-by: Daniel Kaplan <tieTYT@gmail.com>
Co-authored-by: Saisang Cai <Saisang@users.noreply.github.com>
Co-authored-by: jantari <jantari@outlook.de>
mattwojo added a commit to MicrosoftDocs/WSL that referenced this issue Mar 20, 2024
* Fixing small formatting and writing errors. (#1863)

* Fix broken code block and bookmark link (#1866)

* Fix broken code block

* Update broken wslconfig bookmark

* Update install-on-server.md (#1871)

Fix indent and numbering for better readability.

* Fix punctuation errors (#1876)

* small improvements in troubleshooting.md (#1877)

Some small formatting improvements.
Also added the command to restart the hns service.

* Fix a few typos (#1879)

Co-authored-by: Matt Wojciakowski <mattwoj@microsoft.com>

* Updated guide to fix an issue because of a wrong command (#1884)

* Update wsl-containers.md

Running Dev Containers: **Open Folder in Container...** when using this guide is not / no longer correct, as most readers will already have opened the folder while connected to WSL based on the steps provided above. We need to use **Dev Containers: Reopen in Container** or it will fail to create the .devcontainer folder and devcontainer.json and give a (unfortunately not very clear) error message.


See also: https://code.visualstudio.com/docs/devcontainers/containers#_open-a-wsl-2-folder-in-a-container-on-windows
   
- Use the Dev Containers: Reopen in Container command from a folder already opened using the WSL extension.
- Select Dev Containers: Open Folder in Container... from the Command Palette (F1) and choose a WSL folder using the local \\wsl$ share (from the Windows side).

* Update wsl-containers.md

---------

Co-authored-by: Matt Wojciakowski <mattwoj@microsoft.com>

* Update faq.yml -- tiny grammar change (#1885)

* Update faq.yml -- tiny grammar change 

'changes to locale to' -> 'changes the locale to'

* Update basic-commands.md

'If you running WSL' -> 'If you run WSL'

* Update basic-commands.md

* rephrase a long sentence
* swap order of two sentences to make example of command closer to the description of the command

example of command: `wsl --set-default-version 2`

* Update basic-commands.md

Replace 

wsl -u <Username>`, `wsl --user <Username>

with

wsl --user <Username>

`wsl -u <Username>` and `wsl --user <Username>` are equivalent. Both commands are correct for the section of the documentation, but the display of the commands in the documentation was incorrect due to the stray ticks and comma.

* Update gui-apps.md to simplify commits. (#1880)

* Update gui-apps.md

If we are already referencing apt, why not just use apt to install google chrome?

* Update gui-apps.md

forgot --fix-missing

* Add a note to explain the command flags and path

---------

Co-authored-by: Matt Wojciakowski <mattwoj@microsoft.com>

* Fix anchor warning

* Updated docs for usbipd-win updates (#1870)

* Updated docs for usbipd-win updates

* Update url to latest

Co-authored-by: Frans van Dorsselaer <17404029+dorssel@users.noreply.github.com>

* Fixes based on feedback

Thank you @dorssel !

* Remove admin requirement

Co-authored-by: Frans van Dorsselaer <17404029+dorssel@users.noreply.github.com>

* Remove x86 support

Co-authored-by: Frans van Dorsselaer <17404029+dorssel@users.noreply.github.com>

---------

Co-authored-by: Matt Wojciakowski <mattwoj@microsoft.com>
Co-authored-by: Frans van Dorsselaer <17404029+dorssel@users.noreply.github.com>

* Moving experimental settings to the experimental section (#1901)

* Moving experimental settings to the experimental section

Some networking config settings are still experimental. Moving those to the experimental section of the document so customers know how to use these settings.

* Added code ticks to new setting entries

* Update wsl-config.md

fixing settings which are no longer experimental, but the text still referred to them as experimental

* Update wsl-config.md

fixed the string referring to autoProxy. it's no longer experimental.

---------

Co-authored-by: Matt Wojciakowski <mattwoj@microsoft.com>

* Moving ms.prod and ms.technology to ms.service and ms.subservice

* Update to new feedback mechanism (#1917)

* Update to new feedback mechanism

* fix desc syntax

* Fix template link

* add svg support

* Update wsl-config.md to document the dnsProxy option (#1920)

dnsProxy is a wls2 configuration option which we need to document for customers that need to turn off the NAT DNS proxy.

* User/chdhan/networking doc update 2/21/24 (#1928)

* Signed-off-by: Chanpreet Dhanjal <chdhan@microsoft.com>

* updating troubleshooting page.

* Updating troubleshooting guide

* updating troubleshooting guide

* Editorial update, added explainer

* Update image alt text for accessibility

---------

Co-authored-by: Matt Wojciakowski <mattwoj@microsoft.com>

* Fix typo (#1924)

Github -> GitHub

* Fix typo (#1923)

Github -> GitHub

* Removed mention of deprecated content (#1915)

* FAQ: Split Hyper-V and Windows Home questions into two (#1914)

* FAQ: Split Hyper-V and Windows Home questions into two

Fixes #899

* FAQ: clarify WSL features need to be enabled

* Update wsl-plugins.md (#1913)

* Import export command clarification (#1910)

* Split the import and export commands into separate sections

- My original intent was to clarify that the export command exports a **snapshot** of the specified distribution. The way it is currently written doesn't say otherwise, but it could be interpreted to mean it exports a clean install without the user's modifications. 

    - In other words, it could be saying `wsl --export Ubuntu ubuntu.tar` is equivalent to downloading the official "ubuntu.tar" from the internet. 
- Splitting these two was not part of my original goal, merely a step along the way to achieve it.
- I decided to make this its own commit so that it can be `cherry-pick`ed if it provides value on its own but the upcoming commits do not.

* Specify that the export command exports a snapshot

* Fix orphan links to import/export command sections

* fix ambiguous wording for required win version (#1895)

Previously the docs stated that Windows version 22H2 was required, but that is wrong: microsoft/WSL#10853

it is specifically Windows *11* version 22H2 that is required.

* Updating troubleshooting page

* User/chdhan/wsl troubleshooting doc update 3 18 23 (#1936)

* Signed-off-by: Chanpreet Dhanjal <chdhan@microsoft.com> Upating pages to reflect support for IPV4 and IPV6

* Updated text

* Minor editorial update

We try to only use "note:" to indicate actual formatted notes.

* Minor editorial updates

---------

Co-authored-by: Matt Wojciakowski <mattwoj@microsoft.com>

---------

Co-authored-by: Stefan Nikolaj <51296436+snikolaj@users.noreply.github.com>
Co-authored-by: Anton Kesy <antonkesy@gmail.com>
Co-authored-by: Ishan Jain <github@ishan.jain.se>
Co-authored-by: Krishna Vivek Vitta <84629581+krishnacx@users.noreply.github.com>
Co-authored-by: icyerasor <andreas@feldschmid.com>
Co-authored-by: Blake-Madden <66873089+Blake-Madden@users.noreply.github.com>
Co-authored-by: vmsteiner <107506233+vmsteiner@users.noreply.github.com>
Co-authored-by: Andrew Zipperer <47086307+zipperer@users.noreply.github.com>
Co-authored-by: Wes Bryie <wes@wesbryie.tech>
Co-authored-by: Craig Loewen <crloewen@microsoft.com>
Co-authored-by: Frans van Dorsselaer <17404029+dorssel@users.noreply.github.com>
Co-authored-by: Keith Horton <khorton@microsoft.com>
Co-authored-by: Drew Batchelor (he/him) <drewbat@microsoft.com>
Co-authored-by: chanpreetdhanjal <68442928+chanpreetdhanjal@users.noreply.github.com>
Co-authored-by: Takashi Takebayashi <changeworld@users.noreply.github.com>
Co-authored-by: Patrick Brosset <patrickbrosset@gmail.com>
Co-authored-by: Daniel Kaplan <tieTYT@gmail.com>
Co-authored-by: Saisang Cai <Saisang@users.noreply.github.com>
Co-authored-by: jantari <jantari@outlook.de>
Co-authored-by: Chanpreet Dhanjal <chdhan@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants