Is there a way to use .net core code to change networking configuration (IP address, mask, default gateway, DNS, DHCP) On a Linux operating system? (I am using Ubuntu 18.4.2 LTS )
I can use for some extent the following libraries:
System.Net
System.Net.NetworkInformation
https://learn.microsoft.com/en-us/dotnet/api/system.net?view=netcore-2.2
using them I can get the networking information (the IP and the gateway are retrieved properly, the DNS information is always "127.0.0.53", and the DHCP information not supported on Linux), but I can't find in the .net documentation how to set/change the networking configuration like IP address, gateway, etc.