Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
configure named to run on selected interfaces
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
antonios
n00b
n00b


Joined: 25 Feb 2005
Posts: 2
Location: London

PostPosted: Sat Mar 12, 2005 6:43 pm    Post subject: configure named to run on selected interfaces Reply with quote

my router has four interfaces but I only want to run dns server on two of them, how can I configure named to do this?
actually when I run named from the command line it listens to all interfaces, when run from the /etc/init.d/named script only listens on lo.

thanks alot
antonios
_________________
Hi! I' m a cool signature.
Back to top
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Sat Mar 12, 2005 6:57 pm    Post subject: Reply with quote

Check out /etc/conf.d/named and /etc/bind/named.conf. If you want to restrict the service to listen on certain IPv4, then just add the correspondending section in your named.conf. For example:
Code:
options {
        listen-on-v6 { none; };
        listen-on port 53 {
                192.168.0.254;
                127.0.0.1;
        };
};

If you want to listen on all of the IPv4 addresses, then use something like this:
Code:
options {
        listen-on-v6 { none; };
        listen-on port 53;
};


You will find more info on that by reading the manual of bind.


cheers

SteveB
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum