Dotan Cohen
2010-Sep-24 17:08 UTC
[CentOS] Configuring BIND to answer to two domain names (four IP addresses)
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: 1.1.1.1 1.1.1.2 1.1.1.3 1.1.1.4 Additionally, I have two domain names. For sake of discussion: exampleA.com exampleB.com My goal is to have 1.1.1.1 & 1.1.1.2 as the nameservers for exampleA.com, and 1.1.1.3 & 1.1.1.4 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: http://www.centos.org/docs/5/html/Deployment_Guide-en-US/ch-bind.html 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 http://gibberish.co.il http://what-is-what.com
James A. Peltier
2010-Sep-24 17:14 UTC
[CentOS] Configuring BIND to answer to two domain names (four IP addresses)
----- Original Message ----- | 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: | 1.1.1.1 | 1.1.1.2 | 1.1.1.3 | 1.1.1.4 | | Additionally, I have two domain names. For sake of discussion: | exampleA.com | exampleB.com | | My goal is to have 1.1.1.1 & 1.1.1.2 as the nameservers for | exampleA.com, and 1.1.1.3 & 1.1.1.4 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: | http://www.centos.org/docs/5/html/Deployment_Guide-en-US/ch-bind.html | | 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 | | http://gibberish.co.il | http://what-is-what.com | _______________________________________________ | CentOS mailing list | CentOS at centos.org | http://lists.centos.org/mailman/listinfo/centos Have a read for the listen on directive for BIND which tells BIND what interfaces/IP Addresses to bind to. Alternatively, you could just configure BIND identically on both machines and ensure that they are setup in a master/slave configuration so that each name server could answer requests for both domains and publish both name server records in each domain. -- James A. Peltier Systems Analyst (FASNet), VIVARIUM Technical Director Simon Fraser University - Burnaby Campus Phone : 778-782-6573 Fax : 778-782-3045 E-Mail : jpeltier at sfu.ca Website : http://www.fas.sfu.ca | http://vivarium.cs.sfu.ca MSN : subatomic_spam at hotmail.com Does your OS has a man 8 lart? http://www.xinu.nl/unix/humour/asr-manpages/lart.html
Ryan Wagoner
2010-Sep-26 16:35 UTC
[CentOS] Configuring BIND to answer to two domain names (four IP addresses)
I think you should be able to do this using BIND views with match-destinations. Have one view match destinations for 1.1.1.1 and 1.1.1.2 and the other for 1.1.1.3 and 1.1.1.4. Create a zone in one view for exampleA.com and one in the other for exampleB.com Ryan 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: > 1.1.1.1 > 1.1.1.2 > 1.1.1.3 > 1.1.1.4 > > Additionally, I have two domain names. For sake of discussion: > exampleA.com > exampleB.com > > My goal is to have 1.1.1.1 & 1.1.1.2 as the nameservers for > exampleA.com, and 1.1.1.3 & 1.1.1.4 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: > http://www.centos.org/docs/5/html/Deployment_Guide-en-US/ch-bind.html > > 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 > > http://gibberish.co.il > http://what-is-what.com > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >
Dotan Cohen
2010-Sep-27 14:33 UTC
[CentOS] Configuring BIND to answer to two domain names (four IP addresses)
On Mon, Sep 27, 2010 at 13:27, Brent L. Bates <blbates at vigyan.com> wrote:> ? ? Just noticed something. ?Have your serial number reflect the date you > last updated the file. ?That way you will know when you last changed it. ?For > example, today is September 27, 2010, if you were making your first update > today, make the serial number 2010092701. ?I add on 2 digits at the end in > case I need to make more than one change in one day. ?Changing it 10 times in > one day isn't likely, but just in case that isn't enough, I know *I* will not > be making more than 100 changes in one day. ?Serial numbers ALWAYS have to > increase with each change. ?That is the way other name servers know they need > to update their information. ?If the serial number is bigger than what they > have stored, then they know they need to download the new information. ?If you > plan on updating the DNS information more than 100 times a day, you will need > to give yourself some extra digits. ?I hope this is of some help. >I think that the fine manual mentioned something about if one hundreds edits were done in a single day, then it is time to go home and get some sleep! -- Dotan Cohen http://gibberish.co.il http://what-is-what.com