[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: bind: how to *not bind* to interfaces?



In message <[🔎] Pine.LNX.4.10.10001091938390.4115-100000@lemnos.nailed.org>
          hypnos <hypnos@m-net.arbornet.org> wrote:

> I have Bind running on my one of my machines here,
> and when it starts, it binds to port 53 of each
> interface (lo, eth0, ppp0).  How can I change this
> so that the interface it listens on is eth0?
> 
> lemnos:/var/named/pz# named -v
> named 8.2.2-P5-NOESW Fri Nov 19 12:28:17 CST 1999
>         bdale@master:/debian/home/bdale/slink/bind-8.2.2p5/src/bin/named
> 
> lemnos:/var/named/pz# netstat -nta
> Active Internet connections (including servers)
> Proto Recv-Q Send-Q Local Address           Foreign Address         State
> tcp        0      0 209.43.67.86:53         0.0.0.0:*               LISTEN
> tcp        0      0 192.168.1.1:53          0.0.0.0:*               LISTEN
> tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN

Use the listen-on directive in the options section of
/etc/bind/named.conf. eg:

        listen-on { 127.0.0.1; 192.168.1.1; };


(You can find that out by doing man named.conf and searching for
'interface', btw.)

bfn,

Joseph

-- 
Joseph Heenan, Coventry, UK              http://www.ping.demon.co.uk/


Reply to: