From owner-freebsd-questions@FreeBSD.ORG Wed Jul 4 05:31:45 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4070F16A46E for ; Wed, 4 Jul 2007 05:31:45 +0000 (UTC) (envelope-from mikhailg@webanoide.org) Received: from smtp.vap.navalradio.cl (smtp.vap.navalradio.cl [201.236.67.147]) by mx1.freebsd.org (Postfix) with ESMTP id BD87E13C4AD for ; Wed, 4 Jul 2007 05:31:44 +0000 (UTC) (envelope-from mikhailg@webanoide.org) Received: from maxito.hba.navalradio.cl (maxito.hba.navalradio.cl [172.26.4.34]) (authenticated bits=0) by smtp.vap.navalradio.cl (8.13.8/8.13.8) with ESMTP id l645EZ7D003814 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 4 Jul 2007 05:14:53 GMT (envelope-from mikhailg@webanoide.org) Message-ID: <468B2CB4.80605@webanoide.org> Date: Wed, 04 Jul 2007 15:14:28 +1000 From: Mikhail Goriachev Organization: Webanoide User-Agent: Thunderbird 2.0.0.4 (Macintosh/20070604) MIME-Version: 1.0 To: =?ISO-8859-2?Q?Nejc_=A9koberne?= References: <468A2723.8020207@skoberne.net> In-Reply-To: <468A2723.8020207@skoberne.net> Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 8bit Cc: User Questions Subject: Re: BIND to listen on all interfaces? 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: Wed, 04 Jul 2007 05:31:45 -0000 Nejc Škoberne wrote: > Hello, > > I am running BIND (from base system) on my FreeBSD 5.3 machine. The box is > connected to outer world via ADSL connection (tun0 device). If the named is > started when the machine is connected to the internet, then everything is OK, > I get this by saying netstat -n -a: > > udp4 0 0 X.X.X.X.53 *.* > udp4 0 0 127.0.0.1.53 *.* > udp4 0 0 10.0.1.3.53 *.* > > but at boot time, the named starts before the PPP connection is started, so > the tun0 interface is not up yet. So that's why I get this: > > udp4 0 0 127.0.0.1.53 *.* > udp4 0 0 10.0.1.3.53 *.* > > In BIND manual, it says: > > "If no listen-on is specified, the server will listen on port 53 on all interfaces." > > I also tried to specify the ADSL IP address in named.conf (it is static), but it is > still a no go. I don't have such problems with other daemons! Any ideas? An idea: Assuming you're using ppp, let it restart named after it connects to the Internet. Have a /etc/ppp/ppp.linkup and put the following or similar into it: adsl: ! /etc/rc.d/named restart Read the ppp man pages for further details. Regards, Mikhail. -- Mikhail Goriachev Webanoide Telephone: +61 (0)3 62252501 Mobile Phone: +61 (0)4 38255158 E-Mail: mikhailg@webanoide.org Web: www.webanoide.org