Re: Problems in compiling bind
Nitish Bangera <[email protected]> Sat, 25 Feb 2012 18:28:16 +0530
| Newsgroups | gmane.network.dns.bind9.dlz |
|---|---|
| Message-ID | <CADJ-_6GKP=wQ-Pq=EekNWZHSuDnT16C-DAEpKeRF4rH6rP2xbg@mail.gmail.com> |
--===============2283082952339383941== Content-Type: multipart/alternative; boundary=bcaec51a85244a1e7f04b9c96eb5 --bcaec51a85244a1e7f04b9c96eb5 Content-Type: text/plain; charset=ISO-8859-1 Hello Todd, I am really thankfull to your advices as it has helped me a lot. But, i kind of new to Bind and do not understand what's written in the rfc files. If you can please explain it in detail then i would be really grateful. Hope i am causing too much of a hassle to you. Thanks, Nitish 2012/2/24 Todd Lyons <[email protected]> > My apologies for the formatting, but I wanted to keep the long lines from > wrapping. If you don't like rich text, feel free to delete this email. > > 2012/2/23 Nitish Bangera <[email protected]>: > > > Hey Todd, > > > > Thanks for the advice. Changing the path name from /usr/lib to > /usr/lib64 in > > configure worked like a gem. Now i am wondering where exactly the > configs to > > connect to the mysql database should be put in. > > In your named.conf. > > You can also mix regular zones with DLZ zones if you choose to. For > example: > /etc/named.conf: > logging { > channel default_debug { > file "/var/log/named.debug"; > severity info; > }; > }; > > zone "." IN { > type hint; > file "named.ca"; > }; > > include "/etc/named.rfc1912.zones"; > include "/etc/named.dlz"; > ============================ > > /etc/named.dlz: > dlz "Mysql zone" { > database "mysql > {host=db-master user=domains pass=******************** dbname=live_sites > ssl=false} > {SELECT name FROM domain WHERE name = '$zone$' AND active=1} > {SELECT '7200' AS ttl,domain_record_type.type, > case when lower(domain_record_type.type) = 'mx' then > domain_record.mx_priority end, > case when lower(domain_record_type.type) = 'txt' then concat('\"', > domain_record.value, '\"') else domain_record.value end AS data > FROM domain_record,domain,domain_record_type > WHERE domain_record_type.id=domain_record.type_id AND > domain_record.active=1 > AND domain.id=domain_record.domain_id > AND domain.name='$zone$' > AND domain_record.name='$record$'}"; > }; > > # I use the short form of database lookups since I don't do transfers and > such. > # That's a personal choice, it's up to you how you configure your system. > > ============================ > > /etc/named.rfc1912.zones: > zone "localhost.localdomain" IN { > type master; > file "named.localhost"; > allow-update { none; }; > }; > > zone "localhost" IN { > type master; > file "named.localhost"; > allow-update { none; }; > }; > > zone > "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" > IN { > type master; > file "named.loopback"; > allow-update { none; }; > }; > > zone "1.0.0.127.in-addr.arpa" IN { > type master; > file "named.loopback"; > allow-update { none; }; > }; > > zone "0.in-addr.arpa" IN { > type master; > file "named.empty"; > allow-update { none; }; > }; > > etc... > > Regards... Todd > > > -- > SOPA: Any attempt to [use legal means to] reverse technological advances > is doomed. --Leo Leporte > > > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Bind-dlz-testers mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/bind-dlz-testers > > -- Regards, Nitish S. Bangera --bcaec51a85244a1e7f04b9c96eb5 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello Todd,<br><br>I am really thankfull to your advices as it has helped m= e a lot. But, i kind of new to Bind and do not understand what's writte= n in the rfc files. If you can please explain it in detail then i would be = really grateful. Hope i am causing too much of a hassle to you.<br> <br>Thanks,<br>Nitish<br><br><div class=3D"gmail_quote">2012/2/24 Todd Lyon= s <span dir=3D"ltr"><<a href=3D"mailto:[email protected]">tlyons@ivenue.= com</a>></span><br><blockquote class=3D"gmail_quote" style=3D"margin:0 0= 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> My apologies for the formatting, but I wanted to keep the long lines from w= rapping.=A0 If you don't like rich text, feel free to delete this email= .<br><br>2012/2/23 Nitish Bangera <<a href=3D"mailto:bangera.nitish@gmai= l.com" target=3D"_blank">[email protected]</a>>:<div class=3D"im"= > <br> > Hey Todd,<br>><br>> Thanks for the advice. Changing the path nam= e from /usr/lib to /usr/lib64 in<br>> configure worked like a gem. Now i= am wondering where exactly the configs to<br>> connect to the mysql dat= abase should be put in.<br> <br></div>In your named.conf.<br><br>You can also mix regular zones with DL= Z zones if you choose to. =A0For example:<br>/etc/named.conf:<br>logging {<= br> =A0 =A0 =A0 =A0channel default_debug {<br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0file "/var/log/named.debug";<br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0severity info;<br> =A0 =A0 =A0 =A0};<br>};<= br><br>zone "." IN {<br> =A0 =A0 =A0 =A0type hint;<br> =A0 =A0 = =A0 =A0file "<a href=3D"http://named.ca" target=3D"_blank">named.ca</a= >";<br>};<br><br>include "/etc/named.rfc1912.zones";<br> include "/etc/named.dlz";<br>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<br><br>/etc/named.dlz:<br>= dlz "Mysql zone" {<br> =A0 database "mysql<br> =A0 {host=3Dd= b-master user=3Ddomains pass=3D******************** dbname=3Dlive_sites ssl= =3Dfalse}<br> =A0 {SELECT name FROM domain WHERE name =3D '$zone$' AND active=3D= 1}<br> =A0 {SELECT '7200' AS ttl,domain_record_type.type,<br> =A0 = =A0 =A0 =A0case when lower(domain_record_type.type) =3D 'mx' then d= omain_record.mx_priority end,<br> =A0 =A0 =A0 =A0case when lower(domain_record_type.type) =3D 'txt' = then concat('\"', domain_record.value, '\"') else= domain_record.value end AS data<br> =A0 =A0 =A0 =A0FROM domain_record,doma= in,domain_record_type<br> =A0 =A0 =A0 =A0WHERE <a href=3D"http://domain_record_type.id" target=3D"_b= lank">domain_record_type.id</a>=3Ddomain_record.type_id AND domain_record.a= ctive=3D1<br> =A0 =A0 =A0 =A0 =A0 =A0AND <a href=3D"http://domain.id" targe= t=3D"_blank">domain.id</a>=3Ddomain_record.domain_id<br> =A0 =A0 =A0 =A0 =A0 =A0AND <a href=3D"http://domain.name" target=3D"_blank= ">domain.name</a>=3D'$zone$'<br> =A0 =A0 =A0 =A0 =A0=A0 AND <a href=3D"http://domain_record.name" target=3D= "_blank">domain_record.name</a>=3D'$record$'}";<br>};<br><br>#= I use the short form of database lookups since I don't do transfers an= d such.<br># That's a personal choice, it's up to you how you confi= gure your system.<br> <br>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D<br><br>/etc/named.rfc1912.zones:<br>zone "localhost.lo= caldomain" IN {<br> =A0 =A0 =A0 =A0type master;<br> =A0 =A0 =A0 =A0fil= e "named.localhost";<br> =A0 =A0 =A0 =A0allow-update { none; };<b= r> };<br> <br>zone "localhost" IN {<br> =A0 =A0 =A0 =A0type master;<br> =A0= =A0 =A0 =A0file "named.localhost";<br> =A0 =A0 =A0 =A0allow-upda= te { none; };<br>};<br><br>zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0= .0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN {<br> =A0 =A0 =A0 =A0type master;<br> =A0 =A0 =A0 =A0file "named.loopback&q= uot;;<br> =A0 =A0 =A0 =A0allow-update { none; };<br>};<br><br>zone "1.= 0.0.127.in-addr.arpa" IN {<br> =A0 =A0 =A0 =A0type master;<br> =A0 =A0= =A0 =A0file "named.loopback";<br> =A0 =A0 =A0 =A0allow-update { none; };<br>};<br><br>zone "0.in-addr.a= rpa" IN {<br> =A0 =A0 =A0 =A0type master;<br> =A0 =A0 =A0 =A0file &quo= t;named.empty";<br> =A0 =A0 =A0 =A0allow-update { none; };<br>};<br><b= r>etc...<br><br>Regards... =A0 =A0Todd<div class=3D"HOEnZb"> <div class=3D"h5"><br> <br>-- <br>SOPA: Any attempt to [use legal means to] reverse technological = advances is doomed. =A0--Leo Leporte<br><br> </div></div><br>-----------------------------------------------------------= -------------------<br> Virtualization & Cloud Management Using Capacity Planning<br> Cloud computing makes use of virtualization - but cloud computing<br> also focuses on allowing computing to be delivered as a service.<br> <a href=3D"http://www.accelacomm.com/jaw/sfnl/114/51521223/" target=3D"_bla= nk">http://www.accelacomm.com/jaw/sfnl/114/51521223/</a><br>_______________= ________________________________<br> Bind-dlz-testers mailing list<br> <a href=3D"mailto:[email protected]">Bind-dlz-testers@= lists.sourceforge.net</a><br> <a href=3D"https://lists.sourceforge.net/lists/listinfo/bind-dlz-testers" t= arget=3D"_blank">https://lists.sourceforge.net/lists/listinfo/bind-dlz-test= ers</a><br> <br></blockquote></div><br><br clear=3D"all"><br>-- <br>Regards,<br>Nitish = S. Bangera<br> --bcaec51a85244a1e7f04b9c96eb5-- --===============2283082952339383941== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ --===============2283082952339383941== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bind-dlz-testers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bind-dlz-testers --===============2283082952339383941==--