[CentOS] Configuring BIND to answer to two domain names (four IP addresses)
rswagoner at gmail.com
Sun Sep 26 12:35:41 EDT 2010
I think you should be able to do this using BIND views with
match-destinations. Have one view match destinations for 126.96.36.199 and
188.8.131.52 and the other for 184.108.40.206 and 220.127.116.11. Create a zone in one
view for exampleA.com and one in the other for exampleB.com
On Fri, Sep 24, 2010 at 1:08 PM, Dotan Cohen <dotancohen at gmail.com> wrote:
> On a CentOS 5 server, I am having a hard time configuring BIND to
> answer to 4 IP addresses for 2 domain names.
> Currently, I have four IP addresses, for sake of discussion they are:
> Additionally, I have two domain names. For sake of discussion:
> My goal is to have 18.104.22.168 & 22.214.171.124 as the nameservers for
> exampleA.com, and 126.96.36.199 & 188.8.131.52 as the nameservers for
> exampleB.com. Apache is running on this machine, and should of course
> serve pages for the sites.
> I think that I've got the apache configuration down, but the BIND
> configuration is eluding me. I've read the following fine manual, but
> I am still stuck:
> Additionally, I have googled for "how to configure bind for multiple
> domain names" and the like, but I see no mention of the IP addresses
> configuration. Can I simply configure any IP address that the server
> answers to as the nameservers? What am I missing?
> Thank you in advance!
> Dotan Cohen
> CentOS mailing list
> CentOS at centos.org
More information about the CentOS