From owner-freebsd-questions@FreeBSD.ORG Tue Jan 16 10:19:38 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7C18F16A4AB for ; Tue, 16 Jan 2007 10:19:38 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout5.cac.washington.edu (mxout5.cac.washington.edu [140.142.32.135]) by mx1.freebsd.org (Postfix) with ESMTP id 5819013C44B for ; Tue, 16 Jan 2007 10:19:38 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.139]) by mxout5.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id l0GAJb3k009518 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 16 Jan 2007 02:19:37 -0800 X-Auth-Received: from [192.168.0.102] (dsl254-013-145.sea1.dsl.speakeasy.net [216.254.13.145]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ESMTP id l0GAJage026462 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT) for ; Tue, 16 Jan 2007 02:19:37 -0800 Mime-Version: 1.0 (Apple Message framework v752.2) In-Reply-To: <45AC8EA4.4010806@gmx.de> References: <218971.7584.qm@web59210.mail.re1.yahoo.com> <45AC8EA4.4010806@gmx.de> X-Gpgmail-State: !signed Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <0B4D2024-D4F9-47B1-9D79-74A0EF317AD2@u.washington.edu> Content-Transfer-Encoding: 7bit From: Garrett Cooper Date: Tue, 16 Jan 2007 02:19:35 -0800 To: FreeBSD Questions X-Mailer: Apple Mail (2.752.2) X-PMX-Version: 5.2.2.285561, Antispam-Engine: 2.5.0.283055, Antispam-Data: 2007.1.16.20433 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CP_URI_IN_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0' Subject: Re: How about a Start-Up Script that execute every 30 minutes for resolv.conf??? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jan 2007 10:19:38 -0000 On Jan 16, 2007, at 12:36 AM, [LoN]Kamikaze wrote: > linux quest wrote: >> Since, I desperately needed to connect to the Internet at this >> point of >> time, I create a file called resolv.conf in /root ... I am >> thinking how >> can I create a script so that it can copy resolv.conf from /root to >> /etc/resolv.conf every 30 minutes at start up - This is because I >> don't >> wanna manually type in "cp /root/resolv.conf /etc/resolv.conf" >> every 30 >> minutes. > > http://www.freebsd.org/cgi/query-pr.cgi?pr=106902 > > The suggested script allows you to set your nameservers in rc.conf. > I seriously doubt you need to do that every 30 minutes. It should > be enought to write it on startup, so give it a try. Better idea would be a PR to the docs folks about highlighting the resolv.conf file section in the handbook: . I had to get the single file HTML and search it a bit before I found the reference shown above (even though I basically knew about it already). So if you skip over that section of the handbook you won't see the relevant note to read the manpage for dhclient(8) unless you ask someone or find another referring manpage. -Garrett