From owner-freebsd-questions@FreeBSD.ORG Fri May 30 15:13:38 2003 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 EC72237B401 for ; Fri, 30 May 2003 15:13:38 -0700 (PDT) Received: from asarian-host.net (mail.asarian-host.net [194.109.160.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D73943F75 for ; Fri, 30 May 2003 15:13:37 -0700 (PDT) (envelope-from admin@asarian-host.net) Comments: To protect the identity of the sender, certain header fields are either not shown, or masked. Anonymous email accounts can be requested by filling in the appropriate form at: https://asarian-host.net/cgi-bin/signup.cgi Received: (from root@localhost) by mail.asarian-host.net (8.12.9/8.12.9) id h4UMDZdZ075485 for questions@freebsd.org; Sat, 31 May 2003 00:13:35 +0200 (CEST) (envelope-from admin@asarian-host.net) From: Mark Message-Id: <200305302213.H4UMDYRM075476@asarian-host.net> Date: Fri, 30 May 2003 22:13:35 GMT X-Authenticated-Sender: admin@asarian-host.net X-Trace: PXSXXS/OVKA1wgPqW9t1tdd6orIdLyImGd30wQyxpTJOs+2fEeqnQaXzHhK1FXXuH27RGRXiebDd7caAhKShZA== X-Complaints-To: abuse@asarian-host.net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we are unable to process your complaint Organization: Asarian-host To: "Laszlo Vagner" , References: <3ED79E49.30803@vagner.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Auth: Asarian-host PGP signature iQEVAwUAPtfXjzFqW1BleBN9AQHMiwgAkFKyP9c6uYZMzPEVTmGHFOdw21KEnaMl EAVqLadh8KtAbE7NY37Q3B2RD/UphuMpnlShjGzT4ERlAZZT5T6/TKlUD23es58X Lo4c/oR3ypOqYs2YpIr6Q4imnaiY6DZl7ZvxkKGPRTrMifNhS/Mk3viq9Tju+dEj uKR408xKURwi3tjMe3NVb73Shz1I6SMxO6by455TN2Cu9IXfKmHnmCihq2QsOfeN UwtamArMDRfbw3cBGZkfarrGoj1Op1rubB+fl52hCN+xreFpUT6BWpK11OssEh9i qJD2WsTZdqQyDFerFTfuCS6PWJ8k8EpDfU+yljsRY5uCABCP1SwZVQ== =DhxR Subject: Re: how to stop resolv.conf from being updated X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 May 2003 22:13:39 -0000 ----- Original Message ----- From: "Laszlo Vagner" To: Sent: Friday, May 30, 2003 8:09 PM Subject: how to stop resolv.conf from being updated > I am using DHCP on a cable modem and my > providers nameserver really sucks > but changing my resolv.conf repairs > the lookups for a little while then it gets > set back to them upon bootup. > > how do i make it stay the way i set it. Using brute force to prevent /etc/resolv.conf from being changed (with a suggested chmod or chflags) is, imho, not the way. Play by the book, and put something like this in /etc/resolv.conf: prepend domain-name "my.nameserver.net "; prepend domain-name-servers 194.0.0.1; supersede domain-name "my.nameserver.net " The trailing spaces ARE intentional. That worked like a charm for me, and will "survive" a reboot. Substitute your own ISP, of course. - Mark