using System;
using System.Net;
using System.Net.Sockets;
namespace Getipbydomain
{
/// ; Summary>
///Class1 's summary description.
</summary> class Class1
{
///<summary>
///The main entry point of the application.
</summary> [STAThread] static void Main (string[] args)
{
//
//TODO: Add code here to start the application Order
//
if (args. Length <= 0) {console.write ("\ngetipbydomain V1.0 By∮ tomorrow Go begging qq:305725744\n");
Console.Write ("usage:\n");
Console.Write ("GetIpByDomain.exe <domain>\n");
Console.Write ("example:\n");
Console.Write ("GetIpByDomain.exe Www.ToEmpire.Com");
}
Else
{
String strdomain = Args[0]. ToString ();
Iphostentry hostentry = Dns.resolve (strdomain);
Ipendpo
int ipendpo
int = new IPENDPO
Int (hostentry.addresslist[0],0);br>//This is what you want
string ipaddress = Ipendpo
Int. Address.tostring ();
Console.Write (IPAddress);
}
}
}
}
I am just a simple implementation, interested friends can change the bug.