From owner-freebsd-questions@FreeBSD.ORG Tue Apr 20 14:06:36 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EC5601065672 for ; Tue, 20 Apr 2010 14:06:36 +0000 (UTC) (envelope-from leslie@eskk.nu) Received: from mail.gelita.se (212-162-182-244.skbbip.com [212.162.182.244]) by mx1.freebsd.org (Postfix) with ESMTP id A90C78FC1A for ; Tue, 20 Apr 2010 14:06:36 +0000 (UTC) Received: from mail.gelita.se (localhost.gelita.se [127.0.0.1]) by mail.gelita.se (Postfix) with ESMTP id B210910E77C; Tue, 20 Apr 2010 16:09:07 +0200 (CEST) X-Virus-Scanned: amavisd-new at troback.com Received: from mail.gelita.se ([127.0.0.1]) by mail.gelita.se (mail.gelita.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DXJgHkzceg+Y; Tue, 20 Apr 2010 16:08:59 +0200 (CEST) Received: from bljbsd01.no-ip.org (c-195-216-040-164.static.bjare.net [195.216.40.164]) by mail.gelita.se (Postfix) with ESMTP id F1FE010E50A; Tue, 20 Apr 2010 16:08:58 +0200 (CEST) Message-ID: <4BCDB4E1.5010202@eskk.nu> Date: Tue, 20 Apr 2010 16:06:25 +0200 From: Leslie Jensen User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; sv-SE; rv:1.9.1.8) Gecko/20100302 Thunderbird/3.0.3 MIME-Version: 1.0 To: peter@vfemail.net References: <20100420122612.AF005106564A@hub.freebsd.org> <20100420135751.A236B106572D@hub.freebsd.org> In-Reply-To: <20100420135751.A236B106572D@hub.freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Disabling DNS 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, 20 Apr 2010 14:06:37 -0000 On 2010-04-20 15:41, peter@vfemail.net wrote: > > I can change named_enable="YES" to named_enable="NO" in the /etc/rc.conf file. Should I delete the following line from the /etc/rc.conf file that says: > > named_flags="-u bind -g bind" > > or is it fine to leave it? > > ------- > > At 08:43 AM 4/20/2010, Michael Powell wrote: >> peter@vfemail.net wrote: >> >>> >>> I have a FreeBSD server that, among other things, used to provide DNS for >>> a handful of domain names and a small network. All DNS is now provided by >>> new machines. On the old machine, DNS starts when the machine boots, and >>> bind continues to run lots of useless named and named-xfer processes >>> throughout the day. How do I turn off the DNS processes on the old >>> machine and stop it from starting every time the machine boots? >>> >> >> Look for named_enable="YES" in /etc/rc.conf and change the "YES" to "NO". >> This is for the standard built-in Bind. If some other way to start has been >> scripted manually, in say /etc/rc.local you'll need to look there. The third >> possibility is if some add on version from ports has been installed the >> start up script location should be in /usr/local/etc/rc.d - if this is the >> case and it utilizes the standard rc.subr startup system the first thing >> mentioned above should have taken care of it. If there is some other kind of >> manually created hard-coded script in /etc/local/etc/rc.d it will either >> need to be deleted or chmod to not execute. >> >> -Mike I would suggest that you remove both lines. named is off by default in /etc/defaults/rc.conf /Leslie