Check out this other posting: Capture Primary Secondary DNS Server IPs
It uses the addresses of dns servers of adapters of network as string which might help you out.
Check out this other posting: Capture Primary Secondary DNS Server IPs
It uses the addresses of dns servers of adapters of network as string which might help you out.