Subject: Re: reloading /etc/resolv.conf
To: Jeremy C. Reed <reed@reedmedia.net>
From: Bill Squier <groo@old-ones.com>
List: netbsd-help
Date: 02/25/2003 21:19:52
On Tue, Feb 25, 2003 at 06:18:29PM -0800, Jeremy C. Reed wrote:
> On Tue, 25 Feb 2003, Bill Squier wrote:
> >
> > It's not clear to me what 'more' you want me to tell you.  That's how it works
> > now.  That's how ~any BIND 4/8 libc resolver works now.
> 
> I can change the /etc/resolv.conf repeatedly.
> 
> kids:/usr/src/usr.bin/login$ gethost foothillsnewimage.com
> Problem looking up "foothillsnewimage.com": Host name lookup failure
> 
> kids:/usr/src/usr.bin/login$ echo "nameserver 192.168.0.1" >
> /etc/resolv.conf
> kids:/usr/src/usr.bin/login$ gethost foothillsnewimage.com
> Hostname: foothillsnewimage.com
> Address: 209.166.74.74

I had a feeling you misunderstood what I meant.

There's no _global_ resolver state.  It's per process.  I assumed you knew
how libraries worked.

-- 
Bill Squier (groo@old-ones.com)                          http://www.netbsd.org

        I know I don't deserve another chance, but this _is_ America,
        and as an American, aren't I entitled to one?  --Sideshow Bob.