Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 04 Jul 2007 15:14:28 +1000
From:      Mikhail Goriachev <mikhailg@webanoide.org>
To:        =?ISO-8859-2?Q?Nejc_=A9koberne?= <nejc@skoberne.net>
Cc:        User Questions <freebsd-questions@freebsd.org>
Subject:   Re: BIND to listen on all interfaces?
Message-ID:  <468B2CB4.80605@webanoide.org>
In-Reply-To: <468A2723.8020207@skoberne.net>
References:  <468A2723.8020207@skoberne.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?468B2CB4.80605>