Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2005
    Location
    India
    Posts
    3

    function needed to convert hostname to ipaddress

    Hi ,
    I am writing a program for ping that should support both IPv4 and IPv6 .. i wrote the prog as such the dot ( . ) and colon ( is searched and variation is found out ...

    My question is " if a host name is given , how to convert it in to a ip address " .. Is there any function to convert it .. i am working on windows APIs and VC++ ...

    Thanks ,
    Chaitanya

  2. #2
    Join Date
    Apr 2005
    Location
    Cochin
    Posts
    2,446
    i am not a programmer , but if u use the telnet or the host command to convert the domain to an Ip address .. u can actually retreive the value frm a file if u write the results ...i am not too sure about this..but i am sure u ll get better ideas from this post

  3. #3
    Join Date
    Jun 2003
    Posts
    961

  4. #4
    Join Date
    Apr 2005
    Location
    Cochin
    Posts
    2,446
    cool thanks for the info ..

Posting Permissions

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