Advertisement
Guest User

Untitled

a guest
Mar 20th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <netdb.h>
  3.  
  4.  
  5. int main(int argc, char *argv[])
  6. {
  7. struct hostent *lh = gethostbyname("_http._tcp.nova.clouds.archive.ubuntu.com");
  8.  
  9. if (lh)
  10. puts(lh->h_name);
  11. else
  12. herror("gethostbyname");
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement