[Ext-dns] examples?

Vic May vitick en gmail.com
Mar Feb 19 15:52:00 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, 19 Feb 2013 03:03:43 -0800, 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
>


-- 
Using Opera's mail client: http://www.opera.com/mail/


Más información sobre la lista de distribución Ext-dns