Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Dec 2004
    Posts
    37
    Thanks
    0
    Thanked 0 Times in 0 Posts

    IP address + domain lookup script

    Where can I get a script that looks up IP addresses and domain name just like http://cqcounter.com/whois/

    I've seached everywhere without sucess.

    Thanks in advance.

  • #2
    New Coder
    Join Date
    Apr 2006
    Location
    At a place
    Posts
    91
    Thanks
    0
    Thanked 0 Times in 0 Posts
    This code gets the IP address. You can use it anyway you want such as in an alert box or in plain text.

    Code:
    <head>
    <script type="text/javascript">
    var ip = '<!--#echo var="REMOTE_ADDR"-->'
    </script>
    </head>
    As for domain lookup. I'm not sure but I know in MS-DOS you can use the "ping" command to find an IP.
    Here's an example:

    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.

    DIRECTORY>ping codingforums.com
    Pinging codingforums.com [207.150.176.83] with 32 bytes of data:

    Reply from 207.150.176.83: bytes=32 time=94ms TTL=42
    Reply from 207.150.176.83: bytes=32 time=93ms TTL=42
    Reply from 207.150.176.83: bytes=32 time=93ms TTL=42
    Reply from 207.150.176.83: bytes=32 time=94ms TTL=42
    Ping statistics for 207.150.176.83:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
    Minimum = 93ms, Maximum = 94ms, Average = 93ms
    Last edited by v777tony; 06-03-2006 at 11:26 PM.
    Uhh... Yeah Sure.

  • #3
    Registered User
    Join Date
    Dec 2004
    Posts
    37
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You don't understand. I own an IP address related site and I want to offer a service just like: http://cqcounter.com/whois/

    I has the ability to look up IP and domain whois.

  • #4
    New Coder
    Join Date
    Apr 2006
    Location
    At a place
    Posts
    91
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Internet Explorer

    Quote Originally Posted by ebay258
    You don't understand. I own an IP address related site and I want to offer a service just like: http://cqcounter.com/whois/

    I has the ability to look up IP and domain whois.
    You could always use the iframe tag.

    Code:
    <iframe src="http://cqcounter.com/whois" width="460" height="300"></iframe>
    Uhh... Yeah Sure.

  • #5
    Senior Coder
    Join Date
    Jul 2005
    Location
    New York, NY
    Posts
    1,084
    Thanks
    4
    Thanked 19 Times in 19 Posts
    They aren't using javascript to do that. You can't.

    With AJAX the most you can do is open an HTTP connection. If you can find a service that uses the HTTP protocol to make these requests and returns the results in plain text, awesome.

    But the site you're referencing is using server-side code to do what they're doing.

  • #6
    New to the CF scene
    Join Date
    Mar 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by ebay258 View Post
    Where can I get a script that looks up IP addresses and domain name just like http://cqcounter.com/whois/

    I've seached everywhere without sucess.

    Thanks in advance.
    Successful results would be retrieved from the website whoisxy. com for domain,ip adress lookup.Here you can also get the DNS result and ping test results also.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •