How do I run a dos command like

NSLOOKUP

within a VB program and have the program retrieve the output

for example I want to get the IP address of my computer on win NT so I run the dos command

IPCONFIG