[Ext-dns] examples?
Victor Mayevski
vitick en gmail.com
Sab Feb 23 03:37:49 CET 2013
Hello Fancis,
I apologize, I did not state my question correctly. I am writing an
ext-Dnsd child resolver, not client. I don't do C programming. I
attempted to look through the source code but could not really figure
out the format of child resolver replies. So, my question is about the
format of the child resolver replies, especially for SOA and MX
records and also the muli-line or multi-record replies.
Thank you very much.
Victor
On Tue, Feb 19, 2013 at 3:03 AM, Francis Brosnan Blazquez
<francis en aspl.es> wrote:
>> Hello,
>
> Hi Victor,
>
>> Just found your very promissing ext-dns server. I am trying to write a
>> client for it. Using the examples given, it easy to write those parts,
>> however I am confused about how to handle replies for SOA and MX
>> records, possibly others. Can you please add those to documention.
>
> Ok, I'll add documentation about these cases. In the mean time, you can
> use the regression test as a complete example repository [1]. It
> contains at least a single test for every feature added to the library.
>
> The same applies to server functions (see server regression test [2]
> too).
>
> [1] https://dolphin.aspl.es/svn/publico/ext-dns/test/ext-dns-regression-client.c
> [2] https://dolphin.aspl.es/svn/publico/ext-dns/test/ext-dns-regression-listener.c
>
>> If
>> you could give examples of a REPLY for every possible DNS query, that
>> would great.
>
> Ok, in the mean time, see [1] for all these cases.
>
>> Also, how do you handle multi-line replies, like multiple
>> A records or NS records?
>
> Ok, they are stored as extDnsResourceRecord type inside the message,
> through the pointer: msg->answers.
>
> See for example test_02 () function, inside [1], to see how a basic
> example with a single line is handled. A generalization for a
> multiple-line reply would be having message->header->answer_count > 1
> and then, access to each record like the function do but with an
> iterator (not just [0]), for example: msg->answers[iterator] (as long as
> iterator is 0 or less than msg->header->answer_count).
>
> I'll check all these issues to update the documentation, because, for
> example, extDnsMessage and extDnsResourceRecord are fundamental for the
> API and aren't properly documented. Upss...
>
> Again, in the meantime, use regression tests as for working and
> supported examples, and also check ext-dns-types.h for a definition of
> each object you have doubts about.
>
> Thanks for your words Victor, and let us to know you progress, Cheers!
>
>> Thank you very much,
>>
>> Victor
>> _______________________________________________
>> Ext-dns mailing list
>> Ext-dns en lists.aspl.es
>> http://lists.aspl.es/cgi-bin/mailman/listinfo/ext-dns
>
> --
> Francis Brosnan Blázquez <francis.brosnan en aspl.es>
> ASPL
> 91 134 14 22 - 91 134 14 45 - 91 116 07 57
>
> AVISO LEGAL
>
> Este mensaje se dirige exclusivamente a su destinatario. Los datos
> incluidos en el presente correo son confidenciales y sometidos a secreto
> profesional, se prohíbe divulgarlos, en virtud de las leyes vigentes. Si
> usted no lo es y lo ha recibido por error o tiene conocimiento del mismo
> por cualquier motivo, le rogamos que nos lo comunique por este medio y
> proceda a destruirlo o borrarlo.
>
> En virtud de lo dispuesto en la Ley Orgánica 15/1999, de 13 de
> diciembre, de Protección de Datos de Carácter Personal, le informamos de
> que sus datos de carácter personal, recogidos de fuentes accesibles al
> público o datos que usted nos ha facilitado previamente, proceden de
> bases de datos propiedad de Advanced Software Production Line, S.L.
> (ASPL). No obstante, usted puede ejercitar sus derechos de acceso,
> rectificación, cancelación y oposición dispuestos en la mencionada Ley
> Orgánica, notificándolo por escrito a:
> ASPL - Protección Datos, C/Antonio Suárez 10 A-102, 28802, Alcalá de
> Henares (Madrid).
>
Más información sobre la lista de distribución Ext-dns