Subject: Re: HEADS UP: nsswitch about to go `live' in NetBSD-current
To: None <>
From: Pete Bentley <>
List: current-users
Date: 01/19/1999 16:24:05 wrote:
>         If DNS available, use DNS only, else use files
> I don't see how to configure a nsswitch.conf to give me this
> behaviour which is arguably the correct one.  (I haven't
> upgraded yet, but I assume that an NXDOMAIN response
> to a "dns, files" configuration would still result in
> a bogus value in /etc/hosts being returned ?)

In the Solaris world, you could get close to that with something like:-
        hosts: dns [NOTFOUND=return UNAVAIL=continue] files
which is close, but what you describe is actually something like
        hosts: dns [AVAIL=return] files
ie, if DNS is available then its answers are authorative.

I haven't had a chance to look at -current to see if these status codes
are implemented in NetBSD's nsswitch though...

> [valid argument for 'dns bind' over 'bind dns' omitted, but I agree with it]

(yeah, yeah, I know UNAVAIL=continue is the default, it was for
illustration! :)