ANNOUNCEMENT: NSD 1.2.0 released
Colm MacCarthaigh
colm.maccarthaigh at heanet.ie
Wed Jul 9 15:53:56 UTC 2003
On Wed, Jul 09, 2003 at 05:47:51PM +0200, Erik Rozendaal wrote:
> The first byte contains the total length of the domain name in bytes
> (not including the length byte itself). This is how NSD stores names
> internally. You can try to use strdname from dname.[hc] and link this
> into your plugin. Note that strdname stores the result in a static
> buffer, so subsequent calls will overwrite this. But it is usually good
> enough for registering data:
>
> nsd->register_data(nsd, id, strdname("example.com", NULL), "data");
>
> Otherwise it should be something like this:
>
> \015\007example\003com (where 15 octal is 13 decimal, 1+7 for the
> "example" length+label, 1+3 for the "com" length+label, and 1+0 for the
> "."/root length+label.)
>
> Hope this helps and works :)
Excellent! Thank you, would have taken me a while to find that.
--
Colm MacCárthaigh / HEAnet, Teach Brooklawn, / Innealtóir Ghréasáin
+353 1 6609040 / Bóthar Shelbourne, BÁC, IE / http://www.hea.net/
More information about the nsd-users
mailing list