Date: Tue, 16 Jan 2007 02:19:35 -0800 From: Garrett Cooper <youshi10@u.washington.edu> To: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: How about a Start-Up Script that execute every 30 minutes for resolv.conf??? Message-ID: <0B4D2024-D4F9-47B1-9D79-74A0EF317AD2@u.washington.edu> In-Reply-To: <45AC8EA4.4010806@gmx.de> References: <218971.7584.qm@web59210.mail.re1.yahoo.com> <45AC8EA4.4010806@gmx.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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: <http://www.freebsd.org/doc/ en_US.ISO8859-1/books/handbook/configtuning-configfiles.html>. 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0B4D2024-D4F9-47B1-9D79-74A0EF317AD2>