Thread: get hostname

  1. #1
    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
    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, 08:35 PM
  5. Resolving Hostname :: MFC
    By kuphryn in forum Windows Programming
    Replies: 2
    Last Post: 04-08-2002, 08:26 AM