RE: how to make bind listen only to 127.0.0.1

2003-01-06 Thread Derrick Ryalls


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED]] On Behalf Of 
 Wiroth Didier
 Sent: Monday, January 06, 2003 2:21 PM
 To: [EMAIL PROTECTED]
 Subject: how to make bind listen only to 127.0.0.1
 
 
 Hey,
 I would like to run bind as a caching only server (v 8.3.3
 from 4.7-release). I would also like that it only listens
 on port 127.0.0.1, but how? I tried this entry in
 named.conf, but it didn't work:
 query-source address 127.0.0.1 port 53;
 
 It still listens on the real ip address?
 sockstat -4 shows:
 root named  296   20 udp4   192.168.0.2:53
 
 root named  296   21 tcp4   192.168.0.2:53
root named  296   22 udp4   127.0.0.1:53
  
 
 What do I have to change so it named only listens to
 127.0.0.1?

add these two lines to /etc/hosts.allow

named : localhost 127.0.0.1 : allow
named : all : deny

 
 Thanks a lot
 Didier
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message
 



To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: how to make bind listen only to 127.0.0.1

2003-01-06 Thread Wes Santee
On Mon, Jan 06, 2003 at 11:20:53PM +0100, Wiroth Didier wrote:
 Hey,
 I would like to run bind as a caching only server (v 8.3.3
 from 4.7-release). I would also like that it only listens
 on port 127.0.0.1, but how? I tried this entry in
 named.conf, but it didn't work:
 query-source address 127.0.0.1 port 53;
 
 It still listens on the real ip address?
 sockstat -4 shows:
 root named  296   20 udp4   192.168.0.2:53
 
 root named  296   21 tcp4   192.168.0.2:53
root named  296   22 udp4   127.0.0.1:53
  
 
 What do I have to change so it named only listens to
 127.0.0.1?
 

'man named.conf', and look for the 'listen-on' directive.

options {
// Your options

listen-on {
  127.0.0.1;
};
};

// Other BIND directives

Cheers,
-Wes

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: how to make bind listen only to 127.0.0.1

2003-01-06 Thread nate
Wiroth Didier said:
 Hey,
 I would like to run bind as a caching only server (v 8.3.3
 from 4.7-release). I would also like that it only listens
 on port 127.0.0.1, but how? I tried this entry in
 named.conf, but it didn't work:
 query-source address 127.0.0.1 port 53;


in named.conf:

listen-on { 127.0.0.1; };

I've been using this configuration(I also have it bind to another IP) for
a couple years with success. I have another copy of BIND listening on yet
another IP as well..

nate




To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message