2 #include "../include/firedns.h"
4 int main(int argc
, char **argv
) {
5 struct in6_addr
*result
;
6 firedns_state dns
, *d
= &dns
;
10 fprintf(stderr
,"usage: %s <hostname>\n",argv
[0]);
15 firedns_add_servers_from_resolv_conf(d
);
17 result
= firedns_resolveip6(d
, argv
[1]);
19 printf("%s\n",firedns_ntoa6(result
, ntoabuf
));