Re: Problems in compiling bind
Todd Lyons <tlyons <at> ivenue.com>
2012-02-25 22:18:41 GMT
If I'm not mistaken, those came with the bind package as distributed
by RedHat. I just took the srpm with an older version, adjusted it to
use the newer version, adjusted the build process (removed some
patches), and built the newer version.
These are standard basic configs that should be present in your
nameservers so that your nameservers don't recurse all the way up to
the root nameservers for these local configurations. Refer to chapter
4 of RFC 1912 if you want more (than you want) detail.
...Todd
2012/2/25 Nitish Bangera <bangera.nitish <at> gmail.com>:
> 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 <tlyons <at> ivenue.com>
>>
>> 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 <bangera.nitish <at> gmail.com>:
>>
>> > 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
>> Bind-dlz-testers <at> lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/bind-dlz-testers
>>
>
>
>
> --
> Regards,
> Nitish S. Bangera
>
> ------------------------------------------------------------------------------
> 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
> Bind-dlz-testers <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bind-dlz-testers
>
--
--
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/