get hostname

This is a discussion on get hostname within the C Programming forums, part of the General Programming Boards category; Hi all! I'm looking for some information/sample code to get IP/name of a domain. For more information what I'm looking ...

  1. #1
    ipe
    ipe is offline
    Registered User
    Join Date
    Jan 2003
    Posts
    52

    get hostname

    Hi all!
    I'm looking for some information/sample code to get IP/name of a domain.
    For more information what I'm looking for, please see this little (11k) Sysinternals utility called Hostname.
    http://www.sysinternals.com/files/hostname.zip
    http://www.sysinternals.com/ntw2k/so...shtml#Hostname
    It's simple and useful! This simple utility do exactly what I want to do.

  2. #2
    ipe
    ipe is offline
    Registered User
    Join Date
    Jan 2003
    Posts
    52
    Well, I'm newbie in C. I never called a windows api. Could you explain me better how to do that?
    Thank you!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How do I get the Hostname in Java?
    By cpjust in forum Tech Board
    Replies: 9
    Last Post: 02-07-2009, 12:13 PM
  2. how to get the DNS hostname?
    By nacho4d in forum C Programming
    Replies: 1
    Last Post: 01-28-2008, 01:52 PM
  3. obtain hostname or IP
    By afisher in forum Networking/Device Communication
    Replies: 3
    Last Post: 12-01-2004, 07:46 AM
  4. Resolving Hostname Using getaddrinfo(...) :: Winsock
    By kuphryn in forum Windows Programming
    Replies: 1
    Last Post: 05-03-2002, 09:35 PM
  5. Resolving Hostname :: MFC
    By kuphryn in forum Windows Programming
    Replies: 2
    Last Post: 04-08-2002, 09:26 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21