Skip to content

Instantly share code, notes, and snippets.

View gl's full-sized avatar

Guillaume Leclanche gl

  • Bordeaux, France
View GitHub Profile
@bortzmeyer
bortzmeyer / gist:1086392
Created July 16, 2011 14:16
Resolve names, using the standard library (so, going through NSS and things like that, unlike dig)
#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <errno.h>
#include <netinet/in.h>
#include <netinet/ip.h>
#include <netinet/ip6.h>