How would I get the DNS Suffix Search List on a Windows 10 machine in C#?
For example, if I type ipconfig in cmd I see something like:
Windows IP Configuration
Host Name . . . . . . . . . . . . : BOB
Primary Dns Suffix . . . . . . . : fred.george.com
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : fred.com
george.com
I would like to get an array back of 'fred.com' and 'george.com'. I've tried a few different things[1] but they use the adapters properties (which are blank).