Se poate face cu xp_cmdshell si nslookup insa nu chiar asa usor.
De ce nu ai folosi .NET in acest caz?