[bind10-dev] multi-class config (Re: Data source configuration)
JINMEI Tatuya / 神明達哉
jinmei at isc.org
Thu May 24 06:47:22 UTC 2012
Next, about the multi-class data source configuration (I'm separating
the message because these are mostly independent).
The concept shown in the wiki
(http://bind10.isc.org/wiki/datasrc_config) seems reasonable (except
that in my revised model we wouldn't have 'match-order'), but I'd make
it one step more generalized: define them as views.
While I understand excessive generalization is dangerous especially
when we don't have much time, views seemed to be highly desired at
least according to general user inputs. And, at least if we only
define a view as a specific set of data sources for a specific RR
class, the design/implementation cost wouldn't be much different from
the view-less model.
Specifically, if we define a multi-class config using views, it would
look like this:
'dns-view': [
{
'class': 'IN',
'datasource': [
{ 'type': 'sqlite3', 'file': 'zones.sqlite3',
'cache-zones': 'all'
}
]
},
{
'class': 'CH',
'datasource': [
{ 'type': 'static' }
]
}
]
If there's no specific view configuration and there's only a generic
'datasource' configuration, we'd assume its class is 'IN', and
internally build the above configuration.
If there's no specific view configuration and there's even no
'datasource' configuration, we'd internally build the following
configuration:
'dns-view': [
{
'class': 'CH',
'datasource': [
{ 'type': 'static' }
]
}
]
---
JINMEI, Tatuya
Internet Systems Consortium, Inc.
More information about the bind10-dev
mailing list