From pete@twisted.org.uk  Fri Aug 10 20:40:07 2007
Return-Path: <pete@twisted.org.uk>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 2B14B16A417
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 10 Aug 2007 20:40:07 +0000 (UTC)
	(envelope-from pete@twisted.org.uk)
Received: from smtp-out2.blueyonder.co.uk (smtp-out2.blueyonder.co.uk [195.188.213.5])
	by mx1.freebsd.org (Postfix) with ESMTP id E1A2113C48E
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 10 Aug 2007 20:40:06 +0000 (UTC)
	(envelope-from pete@twisted.org.uk)
Received: from [172.23.170.146] (helo=anti-virus03-09)
	by smtp-out2.blueyonder.co.uk with smtp (Exim 4.52)
	id 1IJHak-0002q8-HR
	for FreeBSD-gnats-submit@freebsd.org; Fri, 10 Aug 2007 00:38:58 +0100
Received: from [82.35.233.111] (helo=skerry.twisted.org.uk)
	by asmtp-out2.blueyonder.co.uk with esmtp (Exim 4.52)
	id 1IJHak-00011J-2t
	for FreeBSD-gnats-submit@freebsd.org; Fri, 10 Aug 2007 00:38:58 +0100
Received: from pete by skerry.twisted.org.uk with local (Exim 4.63 (FreeBSD))
	(envelope-from <pete@twisted.org.uk>)
	id 1IJHaj-00072l-TD
	for FreeBSD-gnats-submit@freebsd.org; Fri, 10 Aug 2007 00:38:57 +0100
Message-Id: <E1IJHaj-00072l-TD@skerry.twisted.org.uk>
Date: Fri, 10 Aug 2007 00:38:57 +0100
From: Pete French <pete@twisted.org.uk>
Reply-To: Pete French <pete@twisted.org.uk>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: dhclient ignores named config when interface goes down and up
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         115402
>Category:       bin
>Synopsis:       dhclient(8) ignores named config when interface goes down and up
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    brooks
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 10 20:50:00 GMT 2007
>Closed-Date:    Mon Aug 20 16:10:22 GMT 2007
>Last-Modified:  Mon Aug 20 16:10:22 GMT 2007
>Originator:     Pete French
>Release:        FreeBSD 6.2-STABLE amd64
>Organization:
>Environment:
System: FreeBSD skerry.drayhouse 6.2-STABLE FreeBSD 6.2-STABLE #0: Sat Aug 4 17:08:13 BST 2007 pete@skerry.drayhouse:/usr/obj/usr/src/sys/SKERRY amd64


	twin opteron 242's, 2 gig of RAM,  3x bge, 1 x fxp

>Description:

	I run a local nameserver and my dhclient.conf therefore looks
	like this:

	"supersede domain-name-servers 127.0.0.1;"

	this works fine when the interface comes up, but if it goes down
	and up for any reason (cable unpligs, of taking down with ifconfig)
	then the line is ignored and the name servers from dhcp are placed
	into resolv.conf instead.

>How-To-Repeat:

	setup an dhcp client with a local nameserver as described above
	check in resolv.conf that 127.0.0.1 is being used as the nameserver
	ifconfig <interface> down
	ifconfig <interface> up
	check in resolv.conf and the nameserver will have been replaced

>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->brooks 
Responsible-Changed-By: brooks 
Responsible-Changed-When: Mon Aug 13 19:55:36 UTC 2007 
Responsible-Changed-Why:  
dhclient issues are my problem. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=115402 

From: "Andrey V. Elsukov" <bu7cher@yandex.ru>
To: Pete French <pete@twisted.org.uk>
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: misc/115402: dhclient ignores named config when interface goes
 down        and up
Date: Mon, 20 Aug 2007 10:48:33 +0400

 Pete French wrote:
 > 	setup an dhcp client with a local nameserver as described above
 > 	check in resolv.conf that 127.0.0.1 is being used as the nameserver
 > 	ifconfig <interface> down
 > 	ifconfig <interface> up
 > 	check in resolv.conf and the nameserver will have been replaced
 
 Seems that my 7.0-CURRENT don't have this problem.
 Can you try to remove /etc/resolv.conf and /etc/resolv.conf.save
 and repeat your commands?
 
 
 -- 
 WBR, Andrey V. Elsukov

From: Pete French <pete@twisted.org.uk>
To: bu7cher@yandex.ru
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: misc/115402: dhclient ignores named config when interface goes down        and up
Date: Mon, 20 Aug 2007 13:04:36 +0100

 > Seems that my 7.0-CURRENT don't have this problem.
 > Can you try to remove /etc/resolv.conf and /etc/resolv.conf.save
 > and repeat your commands?
 
 Aha - removing /etc/resolv.conf.save fixes the behaviour. But I had not
 even heard of that file until now, what creates it (and why does it
 get used in preference to the DHCP options when the interface comes back
 up, whcih seems to be what is happening here, yes?)
 
 -pete.
 

From: "Andrey V. Elsukov" <bu7cher@yandex.ru>
To: Pete French <pete@twisted.org.uk>
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: misc/115402: dhclient ignores named config when interface goes
 down        and up
Date: Mon, 20 Aug 2007 16:41:46 +0400

 Pete French wrote:
 >> Seems that my 7.0-CURRENT don't have this problem.
 >> Can you try to remove /etc/resolv.conf and /etc/resolv.conf.save
 >> and repeat your commands?
 > 
 > Aha - removing /etc/resolv.conf.save fixes the behaviour. But I had not
 > even heard of that file until now, what creates it (and why does it
 > get used in preference to the DHCP options when the interface comes back
 > up, whcih seems to be what is happening here, yes?)
 
 resolv.conf.save created by dhclient before rewrite resolv.conf.
 This is a backup of your older resolv.conf.
 When you run `ifconfig <ifname> down` your dhclient exits and
 restore your older resolv.conf from resolv.conf.save.
 
 -- 
 WBR, Andrey V. Elsukov

From: Pete French <pete@twisted.org.uk>
To: bu7cher@yandex.ru
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: misc/115402: dhclient ignores named config when interface goes down        and up
Date: Mon, 20 Aug 2007 13:45:04 +0100

 > resolv.conf.save created by dhclient before rewrite resolv.conf.
 > This is a backup of your older resolv.conf.
 
 AH, O.K., thankyou. So somehow I had a very old file with the
 ISP's DHCP servers in it. Sorry for reporting a bug which
 wasn't then!
State-Changed-From-To: open->closed 
State-Changed-By: brooks 
State-Changed-When: Mon Aug 20 16:08:39 UTC 2007 
State-Changed-Why:  
Submitter reports that this was weird behavior, but not actually a bug. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=115402 
>Unformatted:
