Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <netdb.h>
- int main(int argc, char *argv[])
- {
- struct hostent *lh = gethostbyname("_http._tcp.nova.clouds.archive.ubuntu.com");
- if (lh)
- puts(lh->h_name);
- else
- herror("gethostbyname");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement