[getdns-api] "name" as passed to getdns() et al
Dick Hardt
dick.hardt
Mon Jan 21 18:06:46 CET 2013
On Jan 21, 2013, at 8:49 AM, Ray Bellis <Ray.Bellis at nominet.org.uk> wrote:
> Hi Paul,
>
> One thing I see in the API is that "name" is in human readable format.
I think that is a HUGE feature!
>
> This would make it impossible to look up any name where a label contains an embedded "."
>
> It's also technically possible to have an embedded NUL in a label, which isn't friendly to C-style "char *" strings.
>
> I don't know what the right "fix" would be, just pointing out a potential design flaw.
A UTF-8 encoding of some kind?
>
> Other APIs I've seen require labels like these to be encoded as if they were in "master file format". Similarly, the RDATA output from some libraries (e.g. dnsjava) also appear in that format.
That sounds complicated to me as an app developer.
-- Dick
More information about the spec
mailing list