View previous topic :: View next topic |
Author |
Message |
antonios n00b
Joined: 25 Feb 2005 Posts: 2 Location: London
|
Posted: Sat Mar 12, 2005 6:43 pm Post subject: configure named to run on selected interfaces |
|
|
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 |
|
|
steveb Advocate
Joined: 18 Sep 2002 Posts: 4564
|
Posted: Sat Mar 12, 2005 6:57 pm Post subject: |
|
|
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 |
|
|
|