From owner-freebsd-questions@FreeBSD.ORG Mon Jan 24 21:04:12 2011 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 02296106566B for ; Mon, 24 Jan 2011 21:04:12 +0000 (UTC) (envelope-from jarrod.sl@gmail.com) Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com [74.125.83.182]) by mx1.freebsd.org (Postfix) with ESMTP id 471CD8FC0C for ; Mon, 24 Jan 2011 21:04:11 +0000 (UTC) Received: by pvc22 with SMTP id 22so888643pvc.13 for ; Mon, 24 Jan 2011 13:04:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=hHlpTn2Fq2HxCMn6LFFV+Pj/ycEVj9aU1E8nNrl6AX4=; b=yC8TFgOe5udb5K6gtlx2YbnxneRud8UWGWqIOoshllNrtIzYLgzwgB/lPmIM6K+Tqo 4+wYvyC4c8zsfpaqQaiyEOvXXdo//l7dhaWKBD+vPCA++XkojL+j7IAcgxhlHWDrEu8P ZoRIyLFahRYGa2WLAGceiaWoMwgg8eZW0raKw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=cPWTt3WYgFgDXq7oBqt3ip78okZFjqM8oJodbQxzIMSsF+40uxNxx4REMmD2J7yXWq og2MBCilOHWsrmWqHuU8OXBvPMv1TQ2LSBiHI9rDueDWgxJ/Alm7L3YOc1adscbASkhI 0NZ1H7JNDbs70q3ygO77i5jrCUzNuQQCKGo3Y= Received: by 10.142.193.2 with SMTP id q2mr4298612wff.409.1295903050619; Mon, 24 Jan 2011 13:04:10 -0800 (PST) Received: from jarrod-slicks-macbook.local ([206.123.101.89]) by mx.google.com with ESMTPS id x35sm17905946wfd.1.2011.01.24.13.03.59 (version=SSLv3 cipher=RC4-MD5); Mon, 24 Jan 2011 13:04:01 -0800 (PST) Message-ID: <4D3DE938.9000503@gmail.com> Date: Mon, 24 Jan 2011 14:03:52 -0700 From: Jarrod Slick User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: Gary Kline References: <20110124193325.GA59781@thought.org> <4D3DD582.6040004@gmail.com> <20110124204804.GA60244@thought.org> In-Reply-To: <20110124204804.GA60244@thought.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: questions on bind9-3.6-P1 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: Mon, 24 Jan 2011 21:04:12 -0000 On 1/24/11 1:48 PM, Gary Kline wrote: > On Mon, Jan 24, 2011 at 12:39:46PM -0700, Jarrod Slick wrote: >> On 1/24/11 12:33 PM, Gary Kline wrote: >>> oKay, since my prev question caught no wixards, how about looking at >>> the errors from bind-9.3.6? [I rebuilt this from the src tarball; it >>> finally installed; I fixed some obvious errors, but several remain. >>> >>> Here is the log file where bind9 fails on "em0", my NIC in my server. >>> This is one failure that is simply over my head. >>> >>> +++ >>> >>> Jan 24 11:14:55 ethic named[59747]: starting BIND 9.3.6-P1 -c >>> /var/named/etc/namedb/named.conf >>> Jan 24 11:14:55 ethic named[59747]: could not listen on UDP socket: >>> address in use >>> Jan 24 11:14:55 ethic named[59747]: creating IPv4 interface em0 failed; >>> interface ignored >>> Jan 24 11:14:55 ethic named[59747]: could not listen on UDP socket: >>> address in use >>> Jan 24 11:14:55 ethic named[59747]: creating IPv4 interface lo0 failed; >>> interface ignored >>> Jan 24 11:14:55 ethic named[59747]: not listening on any interfaces >>> Jan 24 11:14:55 ethic named[59747]: couldn't add command channel >>> 127.0.0.1#953: address in use >>> Jan 24 11:14:55 ethic named[59747]: couldn't add command channel ::1#953: >>> address in use >>> Jan 24 11:14:55 ethic named[59747]: could not listen on UDP socket: >>> address in use >>> Jan 24 11:14:55 ethic named[59747]: creating IPv4 interface em0 failed; >>> interface ignored >>> Jan 24 11:14:55 ethic named[59747]: could not listen on UDP socket: >>> address in use >>> Jan 24 11:14:55 ethic named[59747]: creating IPv4 interface lo0 failed; >>> interface ignored >>> Jan 24 11:14:55 ethic named[59747]: running >>> +++ >>> >>> Can anybody explain why (eg) the lo0 failed or was ignored. And >>> why bind9--now offically at its EOLife--has trouble creating an >>> IPv4 interface with my NIC, em0? Do I have to do some very simple? >>> like rebooting? >>> >>> >>> >>> >>> >> I think the issue probably lies in the "address in use" part of your >> error output. Try a sockstat/netstat to see what's bound on port 953. >> If it's an old instance of bind, kill it and then try restarting. >> > > HMMM: Here's what the log shows: > > --sorry for the overage; i cannot cut/paste here on ethic]. Looks like same > thing. > > > Jan 24 12:14:56 ethic named[59747]: creating IPv4 interface lo0 failed; interface ignored > Jan 24 12:14:56 ethic named[59747]: not listening on any interfaces > Jan 24 12:15:09 ethic root: Unknown USB device: vendor 0x17f6 product 0x0709 bus uhub4 > Jan 24 12:15:09 ethic kernel: ukbd1: on uhub4 > Jan 24 12:15:09 ethic kernel: kbd3 at ukbd1 > Jan 24 12:15:39 ethic sm-mta[60106]: p0OKD6D2060106: SYSERR(root): collect: I/O error on connection from mx2.freebsd.org, from= > Jan 24 12:33:50 ethic ntpd[862]: kernel time sync status change 6001 > Jan 24 12:37:04 ethic named[60266]: starting BIND 9.3.6-P1 -c /var/named/etc/namedb/named.conf > Jan 24 12:37:04 ethic named[60266]: could not listen on UDP socket: address in use > Jan 24 12:37:04 ethic named[60266]: creating IPv4 interface em0 failed; interface ignored > Jan 24 12:37:04 ethic named[60266]: could not listen on UDP socket: address in use > Jan 24 12:37:04 ethic named[60266]: creating IPv4 interface lo0 failed; interface ignored > Jan 24 12:37:04 ethic named[60266]: not listening on any interfaces > Jan 24 12:37:04 ethic named[60266]: couldn't add command channel 127.0.0.1#953: address in use > Jan 24 12:37:04 ethic named[60266]: couldn't add command channel ::1#953: address in use > Jan 24 12:37:04 ethic named[60266]: could not listen on UDP socket: address in use > Jan 24 12:37:04 ethic named[60266]: creating IPv4 interface em0 failed; interface ignored > Jan 24 12:37:04 ethic named[60266]: could not listen on UDP socket: address in use > Jan 24 12:37:04 ethic named[60266]: creating IPv4 interface lo0 failed; interface ignored > Jan 24 12:37:04 ethic named[60266]: running > >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" Okay, but what exactly did you do? I guess my instruction to, "restart," was a bit ambiguous. I meant after killing whatever is running on port 953 you should restart __bind__, preferably by executing your desired binary manually, not the system itself. You may be executing two instances of bind at startup as another respondent suggested. To recap, see what's bound on port 953: netstat -ntpl | grep 953 kill whatever is bound on 953 (you should be able to get the pid from the netstat output) kill -9 start your desired named: /path/to/bind If that leaves you with a working named installation, remove the extraneous startup script and reboot to confirm that your issue is fixed.