Subject: Re: acountry.c sample

Re: acountry.c sample

From: Daniel Stenberg <>
Date: Mon, 10 Dec 2007 22:50:48 +0100 (CET)

On Mon, 10 Dec 2007, Gisle Vanem wrote:

> Before adding it to cvs, I would be happy if someone could try it on Unix
> and a big-endian machine. I've only tested it on Win32. Attached.

Worked nicely on my linux box after this patch:

--- 2007-12-10 22:43:17.000000000 +0100
+++ acountry.c 2007-12-10 22:43:59.000000000 +0100
@@ -35,6 +35,7 @@
    #include <arpa/inet.h>
    #include <netdb.h>
+#define stricmp(x,z) strcasecmp(x,z)

  #include "ares.h"

(I don't have access to any big-endian unix atm.)

Oh, and a little request about the actual utility! Since c-ares can resolve
host names, acountry would be even nicer if it was made to also accept host
names! ;-)

   c-ares -- my preferred DNS asynch resolver library
Received on 2007-12-10