From owner-freebsd-questions@FreeBSD.ORG Wed Jul 4 07:40:56 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 D76D416A400 for ; Wed, 4 Jul 2007 07:40:56 +0000 (UTC) (envelope-from yuri@darklight.org.ru) Received: from darklight.org.ru (darklight.org.ru [194.186.18.14]) by mx1.freebsd.org (Postfix) with ESMTP id 7C0EE13C468 for ; Wed, 4 Jul 2007 07:40:55 +0000 (UTC) (envelope-from yuri@darklight.org.ru) Received: from darklight.org.ru (yuri@darklight.org.ru [127.0.0.1]) by darklight.org.ru (8.14.1/8.14.1) with ESMTP id l647enKw058715; Wed, 4 Jul 2007 11:40:50 +0400 (MSD) (envelope-from yuri@darklight.org.ru) Received: (from yuri@localhost) by darklight.org.ru (8.14.1/8.14.1/Submit) id l647ei5L058714; Wed, 4 Jul 2007 11:40:44 +0400 (MSD) (envelope-from yuri@darklight.org.ru) Date: Wed, 4 Jul 2007 11:40:43 +0400 From: Yuri Pankov To: Mikhail Goriachev Message-ID: <20070704074043.GA1141@darklight.org.ru> References: <468A2723.8020207@skoberne.net> <468B2CB4.80605@webanoide.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="KsGdsel6WgEHnImy" Content-Disposition: inline In-Reply-To: <468B2CB4.80605@webanoide.org> User-Agent: Mutt/1.5.16 (2007-06-09) X-Greylist: Sender is SPF-compliant, not delayed by milter-greylist-3.0 (darklight.org.ru [127.0.0.1]); Wed, 04 Jul 2007 11:40:51 +0400 (MSD) Cc: User Questions , Nejc =?utf-8?Q?=C5?= koberne 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 07:40:56 -0000 --KsGdsel6WgEHnImy Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 04, 2007 at 03:14:28PM +1000, Mikhail Goriachev wrote: > Nejc =C5=A0koberne wrote: > > Hello, > >=20 > > 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 name= d is > > started when the machine is connected to the internet, then everything = is OK, > > I get this by saying netstat -n -a: > >=20 > > udp4 0 0 X.X.X.X.53 *.* > > udp4 0 0 127.0.0.1.53 *.* > > udp4 0 0 10.0.1.3.53 *.* > >=20 > > 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: > >=20 > > udp4 0 0 127.0.0.1.53 *.* > > udp4 0 0 10.0.1.3.53 *.* > >=20 > > In BIND manual, it says: > >=20 > > "If no listen-on is specified, the server will listen on port 53 on all= interfaces." > >=20 > > 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? >=20 >=20 >=20 > 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: >=20 > adsl: > ! /etc/rc.d/named restart >=20 >=20 > Read the ppp man pages for further details. >=20 >=20 > Regards, > Mikhail. >=20 > --=20 > Mikhail Goriachev > Webanoide >=20 > Telephone: +61 (0)3 62252501 > Mobile Phone: +61 (0)4 38255158 > E-Mail: mikhailg@webanoide.org > Web: www.webanoide.org Another option can be the use of interface-interval: interface-interval The server will scan the network interface list every interface-interval minutes. The default is 60 minutes. The maximum value is 28 days (40320 minutes). If set to 0, interface scanning will only occur when the configuration file is loaded. After the scan, the server will begin listening for queries on any newly discovered interfaces (provided they are allowed by the listen-on configuration), and will stop listening on interfaces that have gone away.=20 (from BIND ARM). HTH, Yuri --KsGdsel6WgEHnImy Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQBGi077eoAklVFrLdgRAlJ+AKCGUwiknfl/w9I4Z8CAtkcXLDCDOwCfQrg0 Obc1MDCl56OPlvfWBKz8tng= =xcQW -----END PGP SIGNATURE----- --KsGdsel6WgEHnImy--