Network Params
This program lists your computer's network parameters using GetNetworkParams
It also defines the relevant API Structs:
The interesting bits are the Host Name, Domain Name (dns search domain), and the list of DNS servers your computer uses for name resolution.
This an example of providing a buffer to an API that has a different error to check for insufficient buffer size vs netstat.
> networkparams.exe
Host Name: computer01
Domain Name:
DNS Servers:
192.168.1.1
Node Type: Hybrid
Routing: disabled
ARP Proxy: disabled
DNS: disabled