[prev in list] [next in list] [prev in thread] [next in thread] 

List:       nsd-users
Subject:    Re: ANNOUNCEMENT: NSD 1.2.0 released
From:       Colm MacCarthaigh <colm.maccarthaigh () heanet ! ie>
Date:       2003-07-09 15:53:56
Message-ID: 20030709155356.GA9853 () byron ! heanet ! ie
[Download RAW message or body]

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/

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic