[bind10-dev] warn for RESOLVER_NO_ROOT_ADDRESS?

JINMEI Tatuya / 神明達哉 jinmei at isc.org
Wed Aug 24 18:49:50 UTC 2011


At Mon, 22 Aug 2011 09:58:07 -0500 (CDT),
"Jeremy C. Reed" <jreed at isc.org> wrote:

> 2011-08-05 08:49:48.144 WARN  [b10-resolver.resolver] 
> RESOLVER_NO_ROOT_ADDRESS no root addresses available?
> 
> Why "WARN"? This makes me think there is a problem.
> 
> (This is a resolver that has a built-in IPv4 and IPv6 root address.)

I guess it's more about whether we accept the configuration of an
empty root hint.  And, I can imagine a use case of such a
configuration.  If and when we support an equivalent of "forward"
(and/or "(static) stub") zones of BIND 9, a resolver may be reasonably
configured with an empty root hint with some specific sets of
forwarders and is only responsible for resolving names under the
specific domains.  On the other hand, if we don't think we should
allow such configuration, we should explicitly reject such invalid
configuration, regardless of the log level of the event.

As stated above, I personally think there will be a valid scenario
with an empty root hint, and since despite that it's merely a
configuration error in many cases, I personally think WARN is a
reasonable choice.

On a related note, I'd generally suggest checking what other
implementations do when we encounter design/implementation choices,
and following the convention unless we have a reason to believe that's
a bad practice (which may not be so uncommon, of course).

---
JINMEI, Tatuya



More information about the bind10-dev mailing list