Re: DNS'ing an IP_Address
- Posted by "Thomas Parslow (PatRat)" <patrat at rat-software.com> Feb 14, 2001
- 518 views
Return-Path: <patrat at rat-software.com> 20:03:10 -0000 20:03:10 -0000 by inmta008.topica.com with SMTP; 14 Feb 2001 20:03:10 -0000 (helo=mail18.svr.pol.co.uk) by mail12.svr.pol.co.uk with esmtp (Exim 3.13 #0) id 14T88r-00072U-00 for EUforum at topica.com; Wed, 14 Feb 2001 20:03:09 +0000 ([62.137.132.222] helo=patrat) by mail18.svr.pol.co.uk with esmtp (Exim 3.13 #0) id 14T88q-0006mn-00 for EUforum at topica.com; Wed, 14 Feb 2001 20:03:08 +0000 In-reply-To: References: boundary="----------BE12BFDF133E5" ------------BE12BFDF133E5 > I'm working on a chat program.. > But I'm wondering how I can get the IP address given a Web address.. > > IE.. > > some.site.com = 123.4.5.6 > > if someone enters a web address, how do I convert it to the IP? Or do I > need to.. > > Specifically, this pertains to eulibnet.. > > > Chris Hi, Sorry this reply is a little late, I've not been reading this list for a couple of days and I'm just catching up :) I've attached dns.ew which contains the function dns_DNSToIP which will return the IP address (as a string) of the domain passed to it. Example: include dns.ew puts(1,dns_DNSToIP("irc.dal.net")) Hope it's usefull :) PS: If anyone reading this throught the web interface wants a copy let me know and I'll email it to you directly Thomas Parslow (PatRat) ICQ #:26359483 Rat Software http://www.rat-software.com/ Please leave quoted text in place when replying ------------BE12BFDF133E5 name="dns.ew"