From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: Emacs and Bind9 Date: Thu, 28 Jan 2010 21:41:37 -0700 Message-ID: References: <4B61ACD2.1040506@maxpointinteractive.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1264740153 20656 80.91.229.12 (29 Jan 2010 04:42:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Jan 2010 04:42:33 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 29 05:42:30 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Naigf-0007Wu-Gh for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Jan 2010 05:42:30 +0100 Original-Received: from localhost ([127.0.0.1]:58516 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Naige-0007ML-PM for geh-help-gnu-emacs@m.gmane.org; Thu, 28 Jan 2010 23:42:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NaigH-0007IJ-QQ for help-gnu-emacs@gnu.org; Thu, 28 Jan 2010 23:42:05 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NaigD-00078F-3q for help-gnu-emacs@gnu.org; Thu, 28 Jan 2010 23:42:05 -0500 Original-Received: from [199.232.76.173] (port=52836 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NaigD-000783-0A for help-gnu-emacs@gnu.org; Thu, 28 Jan 2010 23:42:01 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:53609) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NaigC-0001I3-Gn for help-gnu-emacs@gnu.org; Thu, 28 Jan 2010 23:42:00 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Naig4-0007Mb-Fi for help-gnu-emacs@gnu.org; Fri, 29 Jan 2010 05:41:52 +0100 Original-Received: from c-71-237-24-138.hsd1.co.comcast.net ([71.237.24.138]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 29 Jan 2010 05:41:52 +0100 Original-Received: from kevin.d.rodgers by c-71-237-24-138.hsd1.co.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 29 Jan 2010 05:41:52 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 41 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-71-237-24-138.hsd1.co.comcast.net User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) In-Reply-To: <4B61ACD2.1040506@maxpointinteractive.com> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:71554 Archived-At: Drew Shaughnessy wrote: > Hello there. > I am in the process of configuring a Bind9 server on Ubuntu 9.10, but > for some reason my emacs will not let me save my zone files because with > the error "Cannot locate SOA record". This is slightly understandable > since I am trying to use the SOA record from another file with this line: > > $INCLUDE "/var/cache/bind/internal/includes/mydomain-soa" > > And here is my mydomain-soa file: > > $TTL 86400 > @ IN SOA ns1.mydomain.com. admin.mydomain.com. ( > 2010012712 ; Serial > 21600 ; Refresh > 3600 ; Retry > 604800 ; Expires > 86400 ) ; Minimum > > IN NS ns1. > IN NS ns2. > IN MX 10 mail. > > > Currently Bind restarts just fine and will preform lookups without any > issue. Is there some config I can put into .emacs or some mode I can use > that will keep emacs from checking for a SOA record? The DNS mode that comes with Emacs does not actually process the $INCLUDE control entity, and by default requires the SOA to be present in the file. But since your SOA record is in another file, you probably want to set dns-mode-soa-auto-increment-serial to nil (or 'ask), and to do so as a file local variable: ; -*- mode: dns-mode; dns-mode-soa-auto-increment-serial: nil; -*- -- Kevin Rodgers Denver, Colorado, USA