From owner-freebsd-net@FreeBSD.ORG Wed Aug 13 04:52:19 2008 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 27987106564A for ; Wed, 13 Aug 2008 04:52:19 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [220.233.188.227]) by mx1.freebsd.org (Postfix) with ESMTP id 421ED8FC17 for ; Wed, 13 Aug 2008 04:52:17 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (localhost.nimnet.asn.au [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id m7D4qA26073599; Wed, 13 Aug 2008 14:52:16 +1000 (EST) (envelope-from smithi@sola.nimnet.asn.au) Received: from localhost (smithi@localhost) by sola.nimnet.asn.au (8.14.2/8.14.2/Submit) with ESMTP id m7D4qArq073596; Wed, 13 Aug 2008 14:52:10 +1000 (EST) (envelope-from smithi@sola.nimnet.asn.au) Date: Wed, 13 Aug 2008 14:52:10 +1000 (EST) From: Ian Smith To: freebsd-net@freebsd.org In-Reply-To: Message-ID: <20080813031552.R37370@sola.nimnet.asn.au> References: <20080812001925.I24964@sola.nimnet.asn.au> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: Onur Aslan Subject: Re: Named Listen IP X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Aug 2008 04:52:19 -0000 On Mon, 11 Aug 2008, Paul Schmehl wrote: > --On Tuesday, August 12, 2008 01:08:46 +1000 Ian Smith > wrote: > > > On Mon, 11 Aug 2008, Onur Aslan wrote: > > > I am using named for a ns server. Named listening all ips for my > > > machine. But when i reboot machine, my ppp network connecting after > > > started named. named doesn't listening my ppp network's ip. Do you > > > have a solution? > > > > Assuming you have a fixed IP address when ppp comes up, specify that > > address in named's listen-on list. When ppp has connected, assigned its > > addresses and set the default route, have ppp run an up-script that runs > > '/etc/rc.d/named restart'. > > > > named will then see the ppp interface and listen on that address as well > > as any others specified, like localhost. ppp runs its up/down scripts > > as root; you don't need (or want) to have named running as root. > > > > Just wondering - couldn't this be fixed by adding the keyword "network" to > the REQUIRE portion of the /etc/rc.d/named script? (Right now it contains > SERVERS and cleanvar. I'm suggesting adding network.) rcorder (for 5.5 and 7.0 anyway) has ppp starting before named alright. However ppp is exec'd and begins connecting but is not waited for - as a rule fortunately, as even ADSL can take a while, and dialup takes a good long while - before proceeding with the boot, including named. I suppose /etc/rc.d/ppp maybe could be hacked to wait around, up to some timeout anyway, or /etc/rc.d/named could be taught to timed-wait on some indication for such specific cases, but some rcorder dependencies seem hardly resolvable in the 'general case' .. I had the same issue with mpd on ADSL recently after a rare reboot; still pondering a tidy solution. cheers, Ian (Paul, sorry but your reply-to clues in the headers only confused me)