Doporučuji:
Galerie fotek
Notebooky
Webdesign Praha
www.eprdel.cz
www.root.cz
Lumimont
A
rpm -i bind-9.3.1-4mdk.src.rpm
#%if %{sdb_mysql}
#pushd contrib/sdb/mysql
#gcc -I%{_includedir}/mysql -I../../../lib/dns/include -I../../../lib/dns/sec/dst/include \
# -I../../../lib/isc/include -I../../../lib/isc/unix/include -I../../../lib/isc/pthreads/include \
# -c zonetodb.c
#gcc -o zonetodb zonetodb.o \
# ../../../lib/dns/libdns.a -lcrypto -lpthread ../../../lib/isc/libisc.a \
# -lmysqlclient -lresolv
#popd
#%endif
#%if %{sdb_mysql}
#install -m0755 contrib/sdb/mysql/zonetodb %{buildroot}%{_bindir}/
#cp contrib/sdb/mysql/ChangeLog contrib/sdb/mysql/ChangeLog.mysql
#cp contrib/sdb/mysql/README contrib/sdb/mysql/README.mysql
#%endif
#%if %{sdb_mysql}
#%doc contrib/sdb/mysql/ChangeLog.mysql contrib/sdb/mysql/README.mysql
#%endif
rpm -ba bind.spec --without sdb_ldap --with sdb_mysql
rpm -Uvh /usr/src/RPM/RPMS/i586/bind-*
zone "mydomain.com" {
type master;
notify no;
database "mysqldb dbname tablename hostname user password";
};
CREATE TABLE mydomain (
name varchar(255) default NULL,
ttl int(11) default NULL,
rdtype varchar(255) default NULL,
rdata varchar(255) default NULL
) TYPE=MyISAM;
Example Database Data
INSERT INTO mydomain VALUES ('mydomain.com', 259200, 'SOA', 'mydomain.com. www.mydomain.com. 2006069201 10800 3600 604800 86400');
INSERT INTO mydomain VALUES ('mydomain.com', 259200, 'NS', 'ns0.mydomain.com.');
INSERT INTO mydomain VALUES ('mydomain.com', 259200, 'NS', 'ns1.mydomain.com.');
INSERT INTO mydomain VALUES ('mydomain.com', 259200, 'MX', '10 mail.mydomain.com.');
INSERT INTO mydomain VALUES ('w0.mydomain.com', 259200, 'A', '192.168.1.1');
INSERT INTO mydomain VALUES ('w1.mydomain.com', 259200, 'A', '192.168.1.2');
INSERT INTO mydomain VALUES ('mydomain.com', 259200, 'Cname', 'w0.mydomain.com.');
INSERT INTO mydomain VALUES ('mail.mydomain.com', 259200, 'Cname', 'w0.mydomain.com.');
INSERT INTO mydomain VALUES ('ns0.mydomain.com', 259200, 'Cname', 'w0.mydomain.com.');
INSERT INTO mydomain VALUES ('ns1.mydomain.com', 259200, 'Cname', 'w1.mydomain.com.');
INSERT INTO mydomain VALUES ('www.mydomain.com', 259200, 'Cname', 'w0.mydomain.com.');
INSERT INTO mydomain VALUES ('ftp.mydomain.com', 259200, 'Cname', 'w0.mydomain.com.');