bind.conf:
zone "osqdu.org.cn" {
type master;
notify no;
database "mysqldb dns osqdu localhost root password";
};
//This is for osqdu.org.cn
//For other domains, use similar configuration files.
Database:
You have to manually initial the database first:
CREATE TABLE IF NOT EXISTS `osqdu` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`ttl` int(11) DEFAULT NULL,
`rdtype` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`rdata` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=11 ;
INSERT INTO `osqdu` (`ID`, `name`, `ttl`, `rdtype`, `rdata`) VALUES
(1, 'osqdu.org.cn', 600, 'SOA', 'osqdu.org.cn. hostmaster.osqdu.org.cn. 200309182 28800 7200 86400 28800'),
(2, 'osqdu.org.cn', 600, 'NS', 'ns1.osqdu.org.cn'),
(3, 'ns1.osqdu.org.cn', 600, 'A', '10.0.101.99');
Then, enjoy the use!