Skip to content

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.

HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss

Registry values


NatGatewayIpAddress

A registry value that determines the NAT gateway IP address used by WSL instances.

HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss\NatGatewayIpAddress

NatNetwork

A registry value that determines the NAT network used by WSL instances.

HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss\NatNetwork

DistributionListUrl

A registry value that allows to replace the default distribution list.

HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss\DistributionListUrl

DistributionListUrlAppend

A registry value that allows to append the default distribution list.

HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss\DistributionListUrlAppend

Summary table

LocationPathDescription
Windows RegistryHKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\LxssMain registry key used to configure WSL parameters
Windows RegistryHKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss\NatGatewayIpAddressRegistry value defines NAT gateway IP address
Windows RegistryHKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss\NatNetworkRegistry value defines NAT network
Windows RegistryHKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss\DistributionListUrlRegistry value replaces the default distribution list
Windows RegistryHKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss\DistributionListUrlAppendRegistry value appends the default distribution list

Info

For simplicity, the abbreviated name HKLM is used instead of the full name HKEY_LOCAL_MACHINE.