Subject: Re: getting configuration info

Re: getting configuration info

From: Bram Matthys (Syzop) <syzop_at_vulnscan.org>
Date: Fri, 27 Mar 2009 09:39:26 +0100

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Nathan Brink wrote:
> Daniel Stenberg wrote:
>> On Wed, 25 Mar 2009, Nathan Brink wrote:
>>
>>> Would it make sense for c-ares to be able to give its users
>>> information about which DNS servers it talks to?
>>
>> Isn't this almost what ares_save_options() already does?
>>
> Yes. I didn't look hard enough at c-ares's API before posting to this
> list. And it seems UnrealIRCD devs didn't either - unless if an older
> version of c-ares didn't have the ares_save_options() function?

We're using c-ares since 1.3.0 or so, at that time there didn't seem to be
any function who gave us any details about nameservers, timeouts, etc, which
was - in our eyes - potentially useful information.
We therefore added a simple patch, and patched every release.
I never submitted it, because it wasn't exactly a clean patch, and never got
around creating a proper one ;).

Feel free to submit a patch to UnrealIRCd to use this 'new' method. Provided
that this method is the way to go, and is here to stay, and is not
noticeably slower than the original patch.

Regards,

        Bram.

- --
Bram Matthys
Software developer/IT consultant syzop_at_vulnscan.org
PGP key: www.vulnscan.org/pubkey.asc
PGP fp: 8DD4 437E 9BA8 09AA 0A8D 1811 E1C3 D65F E6ED 2AA2
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)

iD8DBQFJzJC+46ioc5305a8RAv6iAKDNlLNjAuu8UH6iWyxWKDvVCPyp4ACeP04w
SKRu27vMfTPO8ZnN/9A25eg=
=x0vm
-----END PGP SIGNATURE-----
Received on 2009-03-27