From owner-freebsd-questions@FreeBSD.ORG Tue Mar 1 00:43:31 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E87D416A4CE for ; Tue, 1 Mar 2005 00:43:31 +0000 (GMT) Received: from mx1.mail.ru (mx1.mail.ru [194.67.23.121]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E56B43D46 for ; Tue, 1 Mar 2005 00:43:31 +0000 (GMT) (envelope-from infofarmer@mail.ru) Received: from [83.237.195.238] (port=4149 helo=[172.17.0.69]) by mx1.mail.ru with esmtp id 1D5vU2-000O4a-00 for freebsd-questions@freebsd.org; Tue, 01 Mar 2005 03:43:30 +0300 Message-ID: <4223BAB2.6090804@mail.ru> Date: Tue, 01 Mar 2005 03:43:30 +0300 From: "Andrew P." User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: FreeBSD-Questions Questions Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit X-Spam: Not detected Subject: DHCP and PPP - dns/routes mess X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: infofarmer@mail.ru List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Mar 2005 00:43:32 -0000 Hello! I wrote about this months ago, and now I had some free time to look into the problem - only to find that it's too complicated for me to fix it on my own. The problem is my machine is configured via DHCP, but I need to use ppp from time to time. PPP adjusts resolv.conf and some routes for internet to work correctly. But dhclient-script messes it all up right on its next invocation (within seconds). This script should probably be fixed, but when I think about the right way of doing it (checking whether ppp is running and whether it has got any relevant dns addresses/routes and whether they should really be taken into account). I'd probably forget it and continue killing dhclient every time I need to use ppp, but it all works so nicely in Windows. Please, people, help me fix it :) Best wishes, Andrew P.