private/internal db file question...

Giorgos Keramidas keramida at ceid.upatras.gr
Thu Jun 23 09:36:22 GMT 2005


On 2005-06-22 19:36, Gary Kline <kline at tao.thought.org> wrote:
> 	In named.conf I have two files; one is the .rev table:
>
> zone "db.private" {
>       type master;
>       file "/etc/namedb/s/db.private";
>       allow-query {
>                127.0.0.1/32; 10.0.0.0/8;
>                };
> };
>
> zone "db/private.rev" {
>       type master;
>       file "/etc/namedb/s/db.private.rev";
>       allow-query {
>                127.0.0.1/32; 10.0.0.0/8;
>                };
> };

Something is very wrong above.  You're not supposed to use "db.private"
(i.e. the name of the _FILE_ that stores the zone records) as the first
argument of the "zone" configuration directive.

>>> ;name    ttl    class    type    data
>>> 1        IN    PTR    localhost
>>> 1       IN    PTR    sage
>>> 220     IN    PTR    ethic
>>> 247     IN    PTR    tao
>>> 249     IN    PTR    zen
>>
>> These look mostly ok, but you may want to fix the following:
>>
>>   - "localhost" is usually assigned to 127.0.0.1, not 10.0.0.1
>>   - the "IN" column is *NOT* the TTL (time to live) of a record
>
>
> 	What would you replace these row tags with?  ((I got these from
> 	another database file, obv'ly.)
>
> 	;name    ttl    class    type    data
>
> 	Would:
>
> 	;record  class pointer name

More like:

    ;name           class           type            data
    1               IN              PTR             sage



More information about the freebsd-questions mailing list