[bind10-dev] DNS packet API: the name object

Michael Graff mgraff at isc.org
Wed Aug 12 20:22:03 UTC 2009


Just think of how names are to be used. If the client has to do  
something special to (say) compare two names then we made an API  
blunder. Probably.

If all names are always absolute then there is rarely a reason to have  
to worry about stuff like that.

--Michael


On Aug 11, 2009, at 18:27, Evan Hunt <each at isc.org> wrote:

>> Maybe we can begin with absolute names only and see if we really need
>> to support non-absolute ones as part of the API.
>
> As far as I can see, you can just flag whether a name is absolute or
> relative by adding a boolean to the data structure, without altering
> the internal data representation in any other way; I wouldn't expect  
> it
> to burden the API design too much.
>
> Writing code to parse a zone master file, where every name that  
> doesn't
> end in a dot is supposed to be relative to $ORIGIN, seems like it  
> would be
> simpler if the name class understood the idea of "relative names".
>
>                                                eh
>
> _______________________________________________
> bind10-dev mailing list
> bind10-dev at lists.isc.org
> https://lists.isc.org/mailman/listinfo/bind10-dev



More information about the bind10-dev mailing list