From owner-freebsd-net@FreeBSD.ORG Mon Jan 26 18:46:39 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6B0E51065693; Mon, 26 Jan 2009 18:46:39 +0000 (UTC) (envelope-from owner-freebsd-stable@freebsd.org) Received: from mail.e-commercepark.com (mail2.e-commercepark.com [200.124.131.10]) by mx1.freebsd.org (Postfix) with ESMTP id 00F408FC12; Mon, 26 Jan 2009 18:46:38 +0000 (UTC) (envelope-from owner-freebsd-stable@freebsd.org) Received: from exchange01.ecp.noc ([200.124.129.7]) by mail.e-commercepark.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 26 Jan 2009 14:46:37 -0400 Received: from Pickup by exchange01.ecp.noc with Microsoft SMTP Server id 8.1.240.5; Mon, 26 Jan 2009 18:46:38 +0000 X-Sender: smithi@nimnet.asn.au X-Receiver: otmar@e-commercepark.com x-endofinjectedxheaders: 5340 X-Original-To: otmar@e-commercepark.com Delivered-To: otmar@ns1.e-commercepark.com Delivered-To: freebsd-stable@freebsd.org Date: Mon, 26 Jan 2009 02:30:12 +1100 From: Ian Smith To: Daniel O'Connor In-Reply-To: <200901251537.07249.doconnor@gsoft.com.au> X-OldMsgId: <20090126002703.J90458@sola.nimnet.asn.au> References: <200901250113.n0P1DmHe060610@drugs.dv.isc.org> <200901251537.07249.doconnor@gsoft.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Sender: Errors-To: owner-freebsd-stable@freebsd.org Status: X-GFI-P2E: EXCHANGE01 Message-ID: X-OriginalArrivalTime: 26 Jan 2009 18:46:37.0146 (UTC) FILETIME=[6B04EBA0:01C97FE6] Cc: freebsd-net@freebsd.org, Mark Andrews , lev@freebsd.org, freebsd-stable@freebsd.org Subject: Re: BIND 9.4.3-P1: internal_send: 199.7.83.42#53: Device not configured, where 199.7.83.42 is RANDOM IP address X-BeenThere: freebsd-net@freebsd.org List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jan 2009 18:46:40 -0000 On Sun, 25 Jan 2009, Daniel O'Connor wrote: > On Sunday 25 January 2009 11:43:48 Mark Andrews wrote: Doug Barton wrote: > > > I've never used mpd myself, but you might want to try adding the > > > following line to /usr/local/etc/rc.d/mpd and see if it helps: > > > > > > # BEFORE: named This doesn't help in the case where mpd may take seconds to negotiate with $provider for a link; always the case on ADSL here anyway, moreso for dialup. The rc.d script exits after launching mpd, so named will still start 'right away' while mpd - or ppp - is still negotiating. I 'solved' this chicken-and-egg by adding an ugly sleep 7 after starting (mpd &) before exiting the script. Haven't bothered refining what works once a month or two, but the sleep could be killed by pid from an mpd-up script as soon as there's a working link. (mpd 4.1 if it matters) > > mpd should also be fixed as the error code being returned is not > > approprate. network unreachable is what should be returned. It's not mpd's error, or message; named knows nothing about mpd, but does like its specified listen and *-source addresses to exist. This one looks more like a ill-worded 'no route to host' indication perhaps? Or trying to listen on the address of the (yet to exist) ng interface? > I'm not sure that is the whole problem - I found that it would return device > not configured 'permanently' when I was using it. The link would be up > (apparently) but nothing passes. Sometimes restarting it would fix it but > other times it just persistently said the same thing. > > It seemed like there was some kernel state that was incorrect and even > restarting mpd would not fix it. I've found named requires a proper /etc/rc.d/named stop / start cycle after all required interfaces are up and there's a default route, here, and that sleep 7 obviates that for me .. but it's hardly elegant. cheers, Ian _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"