Registry¶
This section provides the main Windows Registry key and several values used to manage some WSL settings.
Registry key¶
A main registry key used to configure the WSL settings.
Registry values¶
NatGatewayIpAddress¶
A registry value that determines the NAT gateway IP address used by WSL instances.
NatNetwork¶
A registry value that determines the NAT network used by WSL instances.
DistributionListUrl¶
A registry value that allows to replace the default distribution list.
DistributionListUrlAppend¶
A registry value that allows to append the default distribution list.
Summary table¶
| Location | Path | Description |
|---|---|---|
| Windows Registry | HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss | Main registry key used to configure WSL parameters |
| Windows Registry | HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss\NatGatewayIpAddress | Registry value defines NAT gateway IP address |
| Windows Registry | HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss\NatNetwork | Registry value defines NAT network |
| Windows Registry | HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss\DistributionListUrl | Registry value replaces the default distribution list |
| Windows Registry | HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss\DistributionListUrlAppend | Registry value appends the default distribution list |
Info
For simplicity, the abbreviated name HKLM is used instead of the full name HKEY_LOCAL_MACHINE.