2011/2/4 Iñaki Baz Castillo <ibc at aliax.net>:
> if (dns_init(NULL, 0) < 0) {
> fprintf(stderr, "FATAL: unable to initialize dns library\n");
> return 1;
> }
> dns_context = dns_new(NULL);
> dns_open(dns_context);
Got the problem!
I need to add dns_init(dns_context, 0); after the above lines.
--
Iñaki Baz Castillo
<ibc at aliax.net>