[bind10-dev] Datasource API

zhanglikun zlkzhy at gmail.com
Mon Jan 11 09:06:53 UTC 2010


> On thinking about it more, I now more inclined to the idea of making
> the lowest level interface as much independent from DNS as possible.
> 
> Ideally, the low level API considers a data source a very simple
> database where keys are a pair of "name + (extended) type (+ perhaps
> class)" and values are some opaque data.  name/type/class could be
> represented as some trivial type of data, such as a (C-style) string
> or integers.  Then we'll only need to provide some basic manipulation
> methods:
> 
> value = datasrc.find(key);
> value = datasrc.add(key, value); // this 'add' is a 'replace'
> value = datasrc.delete(key);> 

Yes,I think it's a good design, but the only problem is: the relationship
between records are lost, every client query will make the low API are
called for several times. Maybe it's a nightmare for some database backend.

 Dns.com   NS  a.dns.com.
 a.dns.com  A  1.1.1.1

eg, 
+dig dns.com ns,  First query dns.com. ns, then query a.dns.com for type A.
 

BTW, what's extended type mean?  You mean Type + cover type?

Zhanglikun







More information about the bind10-dev mailing list