[bind10-dev] a problem about zone file

Shane Kerr shane at isc.org
Tue May 18 09:43:39 UTC 2010


On Tue, 2010-05-18 at 17:08 +0800, tingting shen wrote:

> a                     A       10.0.0.99
> 
> $INCLUDE include.txt
> 
>                       A       10.0.0.1   ;  who does own this RR? Is a
> or b?
> 
>  
> 
> Include.txt:
> 
> B                     A       10.2.3.11
> 
>  
> 
> The last record in out.txt is “    A 10.0.1”, which begins with a
> blank. I don`t know who owns this record. 
> In bind9 this record is owned by a, but it is owned by b in bind10
> current version. I wonder if we changed the $include design in bind10,
> or it is a bug.
>  IN FRC there is no specific design about this problem.
> So, how do I design this?

It could be A, it could be B... there is a 3rd option of course. We
could declare this user error and make the program exit on this case.

In the interest of eventual BIND 9 compatibility, I suppose we should
implement this the BIND 9 way. BUT, we should at *least* issue a warning
for this, because it implies confusion on the part of the user.

We probably also want a "-q" flag to run in quiet mode and not to issue
such a warning. But that can be put into a TODO list for now, until the
first user asks for it. ;)


I also thought of another possible user bug: circular includes. Normally
I would say "the user will figure it out and deal with it when their
machine starts using 100% CPU for a few minutes", but the problem is
that this could use 100% CPU *and* 100% of disk space if we're loading
to a database or other disk-based storage.

Maybe we should check for circular includes? It's an easy test, and to
solve it we only need a list of previous includes...

--
Shane




More information about the bind10-dev mailing list