mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-15 22:09:31 -04:00
3821. [contrib] Added a new "mysqldyn" DLZ module with dynamic update and transaction support. Thanks to Marty Lee for the contribution. [RT #35656] 3820. [func] The DLZ API doesn't pass the database version to the lookup() function; this can cause DLZ modules that allow dynamic updates to mishandle prerequisite checks. This has been corrected by adding a 'dbversion' field to the dns_clientinfo_t structure. [RT #35656]
18 lines
722 B
Text
18 lines
722 B
Text
use BindDB;
|
|
insert into `Zones`
|
|
( `id`, `domain`, `host`, `admin`, `serial`, `expire`,
|
|
`refresh`, `retry`, `minimum`, `ttl`, `writeable`) VALUES
|
|
(1, 'example.com', '@', 'info', 2014040100, 10800,
|
|
7200, 604800, 86400, 86400, 1);
|
|
|
|
insert into `ZoneData`
|
|
(`id`, `zone_id`, `name`, `type`, `data`) VALUES
|
|
('', 1, '@', 'NS', 'ns1.example.com.'),
|
|
('', 1, '@', 'NS', 'ns2.example.com.'),
|
|
('', 1, '@', 'MX', '10 mail.example.com.'),
|
|
('', 1, '@', 'A', '192.168.0.2'),
|
|
('', 1, '@', 'TXT', '"v=spf1 ip:192.168.0.3 ~all"'),
|
|
('', 1, 'www', 'CNAME', 'example.com.'),
|
|
('', 1, 'mail', 'A', '192.168.0.3'),
|
|
('', 1, 'ns1', 'A', '192.168.1.111'),
|
|
('', 1, 'ns2', 'A', '192.168.1.222');
|