Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Nov 1999 06:20:06 -0800 (PST)
From:      =?ISO-8859-1?Q?Mikko_Ty=F6l=E4j=E4rvi?= <mikko@rsasecurity.com>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/15046: /sbin/dhclient-script ignores resolv.conf hooks
Message-ID:  <199911251420.GAA62272@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/15046; it has been noted by GNATS.

From: =?ISO-8859-1?Q?Mikko_Ty=F6l=E4j=E4rvi?= <mikko@rsasecurity.com>
To: freebsd-gnats-submit@freebsd.org
Cc:  
Subject: Re: bin/15046: /sbin/dhclient-script ignores resolv.conf hooks
Date: Thu, 25 Nov 1999 15:13:41 +0100 (MET)

 I ran into the same thing.  Fixed by:
 
 --- /sbin/dhclient-script       Mon Nov 22 14:52:11 1999
 +++ dhclient-script     Thu Nov 25 14:05:49 1999
 @@ -129,10 +129,7 @@
      ifconfig $interface inet alias $alias_ip_address $alias_subnet_arg
      route add $alias_ip_address 127.0.0.1
    fi
 -  echo search $new_domain_name >/etc/resolv.conf
 -  for nameserver in $new_domain_name_servers; do
 -    echo nameserver $nameserver >>/etc/resolv.conf
 -  done
 +  make_resolv_conf
    exit_with_hooks 0
  fi
  
 @@ -190,14 +187,7 @@
         route add $0 $1
         shift; shift
        done
 -      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
 +      make_resolv_conf
        exit_with_hooks 0
      fi
    fi
 
 
 
  Mikko Tyo"la"ja"rvi_____________________________________mikko@rsasecurity.com
  RSA Security
 
 


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?199911251420.GAA62272>