Sunteți pe pagina 1din 2

25/05/12

BIND DLZ

BINDDLZ>Examples>PostgreSQL

This same database schema is used for the PostgreSQL, MySQL and ODBC examples. It is simple, but very capable. Below is a description of the "dns_records" table. This output was obtained by executing "\dt dns_records" from within the psql utility after it connected to the database.
Home DriverDocs FileSystem BerkeleyDB OriginalBDB BDBHPT BDBFuture SpecialBuild Instructions PostgreSQL MySQL ODBC LDAP Stub(sample) Bestpractices WorstPractices PerformanceTests FileSystem OriginalBDB BDBHPT PostgreSQL MySQL LDAP PerformanceTools Mailinglist FAQ's Examples Postgresql MySQL ODBC LDAP License Downloads Sourceforgesite

Tbe"ulcdsrcrs al pbi.n_eod" Clm oun | Tp ye |Mdfes oiir -----------------------+----+----zn oe |tx et | hs ot |tx et | tl t |itgr| nee tp ye |tx et | m_roiy|itgr| xpirt nee dt aa |tx et | rs_esn|tx eppro et | sra eil |itgr| nee rfeh ers |itgr| nee rty er |itgr| nee epr xie |itgr| nee mnmm iiu |itgr| nee Idxs hs_ne bre(ot, nee: otidx te hs) tp_ne bre(tp", yeidx te "ye) zn_ne bre(zn" oeidx te "oe)

Below is a description of the "xfr_table" table. This output was obtained by executing "\dt xfr_table" from within the psql utility. This table is only necessary if you will be supporting zone transfers from DLZ. See the Worst Practices section of the site for reasons you should not use zone transfers when using DLZ.
Tbe"ulcxrtbe al pbi.f_al" Clm |Tp |Mdfes oun ye oiir ----+---------------+----zn oe |tx | et cin |tx | let et Idxs zn_letidxuiu bre(zn" cin) nee: oecin_ne nqe te "oe, let

This configuration will provide the best performance because it uses the fewest queries to obtain the information it needs. BIND is built single threaded on most UN*X based systems so one database connection (as configured here) is generally sufficient. If your system builds BIND multi-threaded by default, then you should configure your server to use more database connections. The MySQL documentation has a list of which systems are built single threaded by default. When setting up your configuration, pay very close attention to spaces! If you include a space where you shouldn't, or don't include a space where you should, either your query will not work with the database, or BIND may not be able to properly parse the query results. If in doubt, copy the SQL queries directly from this page (copy / paste).
dz"otrszn"{ l psge oe dtbs "otrs1 aaae psge {otlclotpr=42dnm=n_aaue=o} hs=oahs ot53 baedsdt srrb {eetzn fo dsrcrsweezn ='zn%} slc oe rm n_eod hr oe %oe' {eettl tp,m_roiy cs we lwrtp)'x'te '" slc t, ye xpirt, ae hn oe(ye=tt hn \' | dt | '" we lwrtp)'o'te dt | ''| rs_esn| '' | aa | \' hn oe(ye=sa hn aa | | eppro | | sra | ''| rfeh| ''| rty| ''| epr | ''| mnmm | eil | | ers | | er | | xie | | iiu es dt edfo dsrcrsweezn ='zn% adhs ='rcr%}; le aa n rm n_eod hr oe %oe' n ot %eod'" } ;

Project sponsored by

binddlz.sourceforge.net/postgresql_example.html

1/2

25/05/12

BIND DLZ

If you must support zone transfers with DLZ, use the configuration below with this example schema. Notice the section of the configuration in GREEN. It is a pair of brackets with NO SPACES between it. It is important that the brackets have no spaces. We are telling the driver not to use an SQL query there. If there are any spaces between the brackets, the driver will think there is an SQL query to execute and then fail when it does try to run it. Project hosted on
dz"otrszn"{ l psge oe dtbs "otrs1 aaae psge {otlclotpr=42dnm=n_aaue=o} hs=oahs ot53 baedsdt srrb {eetzn fo dsrcrsweezn ='zn%} slc oe rm n_eod hr oe %oe' {eettl tp,m_roiy cs we lwrtp)'x'te '" slc t, ye xpirt, ae hn oe(ye=tt hn \' | dt | '" we lwrtp)'o'te dt | ''| rs_esn| '' | aa | \' hn oe(ye=sa hn aa | | eppro | | sra | ''| rfeh| ''| rty| ''| epr | ''| mnmm | eil | | ers | | er | | xie | | iiu es dt edfo dsrcrsweezn ='zn% adhs ='rcr%} le aa n rm n_eod hr oe %oe' n ot %eod' { } {eettl tp,hs,m_roiy cs we lwrtp)'x'te '" slc t, ye ot xpirt, ae hn oe(ye=tt hn \' | dt | '" es dt ed rs_esn sra,rfeh rty epr, | aa | \' le aa n, eppro, eil ers, er, xie mnmmfo dsrcrsweezn ='zn%} iiu rm n_eod hr oe %oe' {eetzn fo xrtbeweezn ='zn% adcin ='cin%}; slc oe rm f_al hr oe %oe' n let %let'" } ;

binddlz.sourceforge.net/postgresql_example.html

2/2

S-ar putea să vă placă și