There are two functions that return identical data - one via registry and one via WMI. Both return the following NIC Elements:
0 : Adapter Description
1 : Manufacturer
2 : NIC GUID
3 : Speed/Duplex value
4 : Speed/Duplex text
5 : Driver Version
6 : DHCP boolean (1=Use DHCP)
7 : IP settings (address,mask,gateway) *, **
8 : Domain Info: Hostname;Connection;Primary;Search List **, ***
9 : DNS Server list **
10 : DHCP Server, Lease Aquired, Lease Expires (if DHCP is enabled)
11 : WINS Server list **
12 : Interface Name
13 : Fixed Name Servers
14 : Reserved for future use
15 : NIC Status (2=Ready,0=Disabled...)
16 : MAC Address - only if NIC is enabled/connected
17 : TEAM flag (Name of Team - HPTeam, Intel Team, etc.)
18 : # of adapters in team
19 : ID (GUIDs) of adapters in team

IP info is in element 7, and DNS name in element 8.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D