From owner-freebsd-questions Sat Feb 1 2:12:49 2003 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 0A69537B401 for ; Sat, 1 Feb 2003 02:12:47 -0800 (PST) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7B05F43F79 for ; Sat, 1 Feb 2003 02:12:45 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1]) by smtp.infracaninophile.co.uk (8.12.6/8.12.6) with ESMTP id h11ACY0F085108 for ; Sat, 1 Feb 2003 10:12:34 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.6/8.12.6/Submit) id h11ACTqB085107 for freebsd-questions@FreeBSD.ORG; Sat, 1 Feb 2003 10:12:29 GMT Date: Sat, 1 Feb 2003 10:12:29 +0000 From: Matthew Seaman To: freebsd-questions@FreeBSD.ORG Subject: Re: BIND 9.2.2rc1 installation confirmation? Message-ID: <20030201101229.GA84798@happy-idiot-talk.infracaninophi> Mail-Followup-To: Matthew Seaman , freebsd-questions@FreeBSD.ORG References: <000201c2c81a$6551f4d0$ee97fea9@james> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000201c2c81a$6551f4d0$ee97fea9@james> User-Agent: Mutt/1.5.3i X-Spam-Status: No, hits=-2.7 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_03_05, USER_AGENT,USER_AGENT_MUTT version=2.43 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Jan 29, 2003 at 11:45:17PM -0500, Jamie wrote: > It required OpenSSL 0.9e or higher which I was able to get to install > with "make; make install". Then I continued with another attempt at > BIND. I finally finished with the installation but now I can't seem to > find a way to confirm that BIND is properly installed and running. When > I start it, it does not report the version as the docs seem to indicate > it should. Also, running Top doesn't show anything like BIND or named or > anything else that reasonably indicates that I've succeeded in starting > it. Maybe I'm not starting it correctly. Can someone please provide me > with the official syntax? The process you want to see is 'named'. It won't start up automatically when you install the Bind 9 port -- you'll have to start it yourself from the command line, and arrange for it to be restarted automatically on reboot. To start bind by hand (as root): # /usr/local/sbin/named -c /etc/named/named.conf -u bind To see if it's running, as well as checking in the process table: % ps -axwww | grep named 100 ?? Is 0:40.24 /usr/local/sbin/named -c /etc/namedb/named.conf -u bind you can check for processes listening on port 53: % sockstat | grep :53 bind named 100 4 udp4 81.2.69.218:53 *:* bind named 100 5 tcp4 81.2.69.218:53 *:* bind named 100 6 udp4 127.0.0.1:53 *:* bind named 100 7 tcp4 127.0.0.1:53 *:* or % netstat -an | grep '\.53' tcp4 0 0 127.0.0.1.53 *.* LISTEN tcp4 0 0 81.2.69.218.53 *.* LISTEN udp4 0 0 127.0.0.1.53 *.* udp4 0 0 81.2.69.218.53 *.* Bind 9 is fairly picky about the syntax of it's configuration and zone files. If it finds a problem it will generally log an explanation to /var/log/messages and then silently quit. You'll need to make sure that you have corrected any errors before it will start properly. A particularly problematic thing is the $TTL record that seems to be required in all zone files nowadays. Another gotcha that may catch you on FreeBSD is that Bind 9 doesn't understand the '-g' flag as used by default with the system supplied Bind 8. You'll need something like this in /etc/rc.conf in order to startup Bind 9 automatically on boot up: named_enable="YES" named_flags="-c /etc/namedb/named.conf -u bind" named_program="/usr/local/sbin/named" Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message