From dannyman@arh0300.urh.uiuc.edu  Sat Apr 25 11:36:21 1998
Received: from arh0300.urh.uiuc.edu (arh0300.urh.uiuc.edu [130.126.72.10])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA27276
          for <FreeBSD-gnats-submit@freebsd.org>; Sat, 25 Apr 1998 11:36:20 -0700 (PDT)
          (envelope-from dannyman@arh0300.urh.uiuc.edu)
Received: (from dannyman@localhost)
	by arh0300.urh.uiuc.edu (8.8.8/8.8.5) id NAA26273;
	Sat, 25 Apr 1998 13:36:21 -0500 (CDT)
Message-Id: <199804251836.NAA26273@arh0300.urh.uiuc.edu>
Date: Sat, 25 Apr 1998 13:36:21 -0500 (CDT)
From: dannyman <dannyman@arh0300.urh.uiuc.edu>
Reply-To: dannyman@arh0300.urh.uiuc.edu
To: FreeBSD-gnats-submit@freebsd.org
Subject: /etc/hosts search field gets wiped out periodically
X-Send-Pr-Version: 3.2

>Number:         6410
>Category:       conf
>Synopsis:       /etc/resolv.conf gets wiped out periodically by dhclient
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr 25 11:40:00 PDT 1998
>Closed-Date:    Sun May 3 16:14:53 PDT 1998
>Last-Modified:  Sun May  3 16:17:26 PDT 1998
>Originator:     
>Release:        FreeBSD 3.0-CURRENT i386
>Organization:
>Environment:
>Description:

Every time I edit /etc/resolv.conf and modify the search entry, after some
time what I entered gets wiped out;

search
nameserver 128.174.5.58
nameserver 128.174.36.254

Yesterday I was tooling along happily enough with a whole list of domains
in that field.  Now they are wiped out.  I had suspected that this was
happening before, but it seemed too strange ...

>How-To-Repeat:

Put something in the search field - go ahead, try it ...
>Fix:
>Release-Note:
>Audit-Trail:

From: Studded <Studded@san.rr.com>
To: dannyman@arh0300.urh.uiuc.edu
Cc: FreeBSD-gnats-submit@FREEBSD.ORG
Subject: Re: conf/6410: /etc/hosts search field gets wiped out periodically
Date: Sun, 26 Apr 1998 13:22:57 -0700

 dannyman wrote:
 > 
 > >Number:         6410
 
 > Every time I edit /etc/resolv.conf and modify the search entry, after some
 > time what I entered gets wiped out;
 
 	Are you by any chance running DHCP? My DHCP server sends me information
 that the client uses to update /etc/resolv.conf. 
 
 Doug
 
 PS, someone might want to change the summary for this PR to reflect
 resolv.conf instead of /etc/hosts.
 
 -- 
 ***         Chief Operations Officer, DALnet IRC network       ***
 *** Proud designer and maintainer of the world's largest Internet
 ***    Relay Chat server with 5,328 simultaneous connections.
 *** Try spider.dal.net on ports 6662-4    (Powered by FreeBSD)

From: dannyman <dannyman@dannyland.org>
To: Studded <Studded@san.rr.com>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: conf/6410: /etc/resolv.conf search field gets wiped out periodically
Date: Sun, 26 Apr 1998 16:04:20 -0500

 On Sun, Apr 26, 1998 at 01:22:57PM -0700, Studded wrote:
 > dannyman wrote:
 
 > 	Are you by any chance running DHCP? My DHCP server sends me information
 > that the client uses to update /etc/resolv.conf. 
 
 yes i am using dhclient.  i will look in to a workaround for this
 irritation.  thanks for the tip.
 
 > PS, someone might want to change the summary for this PR to reflect
 > resolv.conf instead of /etc/hosts.
 
 is that someone me?  (sorry, my bad ...)
 
 -dan
 
 -- 
   //       dannyman yori aiokomete       ||  Our Honored Symbol deserves
 \\/ http://www.dannyland.org/~dannyman/  ||  an Honorable Retirement (UIUC)

From: Studded <Studded@san.rr.com>
To: dannyman <dannyman@dannyland.org>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: conf/6410: /etc/resolv.conf search field gets wiped out periodically
Date: Sun, 26 Apr 1998 14:33:00 -0700

 dannyman wrote:
 > 
 > On Sun, Apr 26, 1998 at 01:22:57PM -0700, Studded wrote:
 > > dannyman wrote:
 > 
 > >       Are you by any chance running DHCP? My DHCP server sends me information
 > > that the client uses to update /etc/resolv.conf.
 > 
 > yes i am using dhclient.  i will look in to a workaround for this
 > irritation.  thanks for the tip.
 
 	No problem. If you are using the ISC DHCP client (and it looks like you
 are) you might find the information on my page useful.
 http://home.san.rr.com/freebsd/dhcp.html. In my dhclient.conf I have:
 
  request subnet-mask, broadcast-address, routers, domain-name-servers,
          domain-name, host-name;
 
 I know for sure that the domain-name-servers item is used by
 dhclient-script to rewrite /etc/resolv.conf. You can however include
 items in dhclient.conf to prepend and append things that should be
 written to resolv.conf, including search. I suggest you check out the
 man page for dhclient.conf. I don't use it so I can't give you examples
 that work but it doesn't look too tough. 
 
 > > PS, someone might want to change the summary for this PR to reflect
 > > resolv.conf instead of /etc/hosts.
 > 
 > is that someone me?  (sorry, my bad ...)
 
 	Unfortunately once it goes into the database a committer has to make
 the change, but it's not that big a deal so don't sweat it. :)
 
 Glad this helped,
 
 Doug
 -- 
 ***         Chief Operations Officer, DALnet IRC network       ***
 *** Proud designer and maintainer of the world's largest Internet
 ***    Relay Chat server with 5,328 simultaneous connections.
 *** Try spider.dal.net on ports 6662-4    (Powered by FreeBSD)
State-Changed-From-To: open->closed 
State-Changed-By: steve 
State-Changed-When: Sun May 3 16:14:53 PDT 1998 
State-Changed-Why:  
Doug Barton is right.  This is a feature of dhclient and not 
a bug in FreeBSD.  See his followup response for a possible 
solution. 
>Unformatted:
