Thanks alot,  I see it returns an array of IP Addresses.  How can 
you have more than one?  If you have two, as Google does, how does 
the DNS determine which one to go to?


--- In [email protected], "Jason Handby" 
<[EMAIL PROTECTED]> wrote:
> 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.30011
76/D=gr
> 
oups/S=1705006764:HM/EXP=1108468374/A=2532114/R=2/SIG=12k9bqv5s/*http
://clk.
> 
atdmt.com/NFX/go/yhxxxnfx0020000014nfx/direct/01/&time=11083819741063
85> 
>  
> <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]
subject=Unsubscrib
> 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/
 



Reply via email to