master
md 16 lines 647 Bytes
Rendered Raw
1 # GNS
2
3 `gns` is a process created by `mini_init`. Its job is to configure networking within the WSL2 virtual machine.
4
5 ## Networking configuration
6
7 Networking settings are shared by all WSL2 distributions. While WSL2 is running, `gns` maintains an hvsocket channel to [wslservice.exe](wslservice.exe.md), which is used to send various networking related configurations such as:
8
9 - Interface IP configuration
10 - Routing table entries
11 - DNS configuration
12 - MTU size configuration
13
14 When DNS tunneling is enabled, `gns` is also responsible for replying to DNS requests.
15
16 See `src/linux/init/GnsEngine.cpp` and `src/windows/service/exe/GnsChannel.cpp`