BIND 9.4.2集成的BIND-DLZ如何配置?
BIND 9.4 已经集成了BIND-DLZ (http://www.nlnet.nl/project/bind-dlz/20060509-bind.html)查看BIND的管理手册,有如下说明:
database
Specify the type of database to be used for storing the zone data. The string following the database keyword is interpreted as a list of whitespace-delimited words. The first word identifies the database type, and any subsequent words are passed as arguments to the database to be interpreted in a way specific to the database type.
The default is "rbt", BIND 9's native in-memory red-black-tree database. This database does not take arguments.
Other values are possible if additional database drivers have been linked into the server. Some sample drivers are included with the distribution but none are linked in by default.
但具体如何配置,却语焉不详。
请问在Windows 2003下如何配置named.conf使用ODBC连接数据库?谢谢! 尝试过按BIND-DLZ官方的说明来配置:http://bind-dlz.sourceforge.net/odbc_driver.html
dlz "odbc zone" {
database "odbc 2
{dsn=postgres user=postgres pass=postgres}
{select zone from dns_records where zone = '%zone%'}
{select ttl, type, mx_priority, case when lower(type)='txt' then '\"' || data || '\"'
else data end from dns_records where zone = '%zone%' and host = '%record%'
and not (type = 'SOA' or type = 'NS')}
{select ttl, type, mx_priority, data, resp_person, serial, refresh, retry, expire, minimum
from dns_records where zone = '%zone%' and (type = 'SOA' or type='NS')}
{select ttl, type, host, mx_priority, data, resp_person, serial, refresh, retry, expire, minimum
from dns_records where zone = '%zone%' and not (type = 'SOA' or type = 'NS')}
{select zone from xfr_table where zone = '%zone%' and client = '%client%'}";
};
未通过。或许BIND集成的BIND-DLZ已经修改了语法? 我用的是MYSQL数据库,可以用,
不过在加入view的时候出错!
回复 #3 badb0y 的帖子
一个view里用一个表吗? 原帖由 badb0y 于 2008-4-3 08:20 发表 http://bbs.chinaunix.net/images/common/back.gif我用的是MYSQL数据库,可以用,
不过在加入view的时候出错!
用的是BIND的Windows版本集成的bind-dlz吗?
配置文件可以贴上来看看吗?谢谢 ! 不是,是LINUX下的, http://bind-dlz.sourceforge.net/mysql_driver.html
回复 #9 guofs 的帖子
DLZ可以调用mysql,
页:
[1]
2