Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Apr 2010 11:40 -0400
From:      Michael Powell <nightrecon@hotmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Disabling DNS
Message-ID:  <hqkhor$fn5$1@dough.gmane.org>
References:  <20100420122612.AF005106564A@hub.freebsd.org> <hqk7dv$45s$1@dough.gmane.org> <20100420135751.A236B106572D@hub.freebsd.org> <4BCDB4E1.5010202@eskk.nu>

next in thread | previous in thread | raw e-mail | index | archive | help
Leslie Jensen wrote:
 
> 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:
[snip]
> 
> 
> I would suggest that you remove both lines.
> 
> named is off by default in /etc/defaults/rc.conf
> 

To expand a little. The defaults mentioned here reside in /etc/defaults. The 
files under /etc/defaults should not be edited or changed as they can get 
overwritten during upgrades. The file /etc/rc.conf is designed to contain 
overrides to alter or change the default behaviors. It is the one to edit, 
not the ones under /etc/defaults.

So yes, pretty much all of the suggestions will turn DNS off. You can safely 
delete the lines in /etc/rc.conf. Should you need to put them back in at 
some time in the future you can look these lines up in 
/etc/defaults/rc.conf, then edit /etc/rc.conf accordingly.

-Mike






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?hqkhor$fn5$1>