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

Re: bind+apache+2 nics



On Thu, Oct 27, 2005 at 09:26:28AM -0700, Enrique Morfin wrote:
> Hi!
> 
> Now i have a box running bind9 and apache with one
> nic.
> 
> i want to add a second nic, so bind runs only on eth0
> and apache only on eth1. (different addresses, same
> net eg: eth0: 192.168.1.1 eth1:192.168.1.2).
> 
> Is this possible? How?
> 
> How i configure bind for just eth0?
> How i configure apache for just eth1?
> 
> How route table should look? and how i do it?
> 
You shouldn't have to change the routing table unless you are actually
routing packets between the interfaces.  Since they are on the same
network, it is not necessary to route.

For bind, add this to your config:

        listen-on {
                127.0.0.1;
                192.168.2.2;
        };

For apache you need to look at the Listen directive.  All of this is
well documented and the information is easily accessible.

-Roberto

-- 
Roberto C. Sanchez
http://familiasanchez.net/~roberto

Attachment: pgp1_AxnC8ViJ.pgp
Description: PGP signature


Reply to: