Use the GetHostByName() method of the Dns class to retrieve an IPHostEntry object that contains, among other things, a list of IP addresses for that host. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/ frlrfsystemnetdnsclassgethostbynametopic.asp HTH Jason
_____ From: scaevola637 [mailto:[EMAIL PROTECTED] Sent: 14 February 2005 11:53 To: [email protected] Subject: [AspNetAnyQuestionIsOk] Dns Class in System.net I want a method that takes the domain name, ie, "www.google.com" and gives me the IP address, ie 58.13.38.137 I can find the reverse using System.net Dns class IPHostEntry objIPHostEntry; objIPHostEntry = Dns.GetHostByAddress( txtIP.Text ); lblHostName.Text = objIPHostEntry.HostName; Yahoo! Groups Sponsor ADVERTISEMENT <http://us.ard.yahoo.com/SIG=129irurj8/M=298184.6018725.7038619.3001176/D=gr oups/S=1705006764:HM/EXP=1108468374/A=2532114/R=2/SIG=12k9bqv5s/*http://clk. atdmt.com/NFX/go/yhxxxnfx0020000014nfx/direct/01/&time=1108381974106385> <http://us.adserver.yahoo.com/l?M=298184.6018725.7038619.3001176/D=groups/S= :HM/A=2532114/rand=474979011> _____ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED] e> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service <http://docs.yahoo.com/info/terms/> . [Non-text portions of this message have been removed] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
