Skip site navigation (1)Skip section navigation (2)
Date:      22 Nov 1999 15:17:15 -0000
From:      barry@lustig.com
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/15046: /sbin/dhclient-script ignores resolv.conf hooks
Message-ID:  <19991122151715.11201.qmail@gate.lustig.com>

next in thread | raw e-mail | index | archive | help

>Number:         15046
>Category:       bin
>Synopsis:       /sbin/dhclient-script ignores resolv.conf hooks
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 22 07:20:00 PST 1999
>Closed-Date:
>Last-Modified:
>Originator:     Barry Lustig
>Release:        FreeBSD 3.3-STABLE i386
>Organization:
>Environment:

	FreeBSD 3.3-STABLE cvsupped as of Nov 20, 1999.

>Description:

	/sbin/dhclient-script ignores the make_resolv_conf hooks during
	processing.

Here is the first instance from /sbin/dhclient-script:

	echo search $new_domain_name >/etc/resolv.conf
	for nameserver in $new_domain_name_servers; do
	  echo nameserver $nameserver >>/etc/resolv.conf
	done

And here is the second:

        echo search $new_domain_name >/etc/resolv.conf.std
        for nameserver in $new_domain_name_servers; do
	  echo nameserver $nameserver >>/etc/resolv.conf.std
        done
        if [ -f /etc/resolv.conf ]; then
	  rm -f /etc/resolv.conf
        fi
        mv /etc/resolv.conf.std /etc/resolv.conf


>How-To-Repeat:

	Run dhclient and see /etc/resolv.conf get overwritten even
	though there is a make_resolv_conf hook defined

>Fix:
	
	


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991122151715.11201.qmail>