On Fri, Sep 24, 2010 at 19:49, James A. Peltier <jpeltier@xxxxxx> wrote: > BIND has listen on directives as well, but if this is a single box configuration > it's not necessarily required as it will listen on all interfaces. > Yes, I actually do want it to listen on all addresses (only one NIC), I don't know why I thought that it had to be explicitly configured. > As far as configuring the domains, well that's pretty simple. In your DNS records for each > domain you would define NS records such as this > > $TTL 1d > @        IN   ÂSOA   ns1.exampleA.com. hostmaster.exampleA.com. ( >                Â2010092401   Â; PUT SEQUENCE NUMBER HERE (YYYY/MM/DAY/CHANGE #) >                Â3600      Â; Refresh every hour >                Â600       ; Retry  - every ten minutes >                Â604800     Â; Expire Â- after one week >                 1h ) ; Minimum 1H >        ÂIN   ÂNS   Âns1.exampleA.com. >        ÂIN   ÂNS   Âns2.exampleA.com. > > ;; Hosts Section > > ns1   IN   A   1.1.1.1 > ns2   IN   A   1.1.1.2 > www   IN   A   1.1.1.3 > > Keep in mind that you don't need A records for the NS records if you are pointing to a different name server so your exampleB your records might look like this > > > $TTL 1d > @        IN   ÂSOA   ns1.exampleB.com. hostmaster.exampleB.com. ( >                Â2010092401   Â; PUT SEQUENCE NUMBER HERE (YYYY/MM/DAY/CHANGE #) >                Â3600      Â; Refresh every hour >                Â600       ; Retry  - every ten minutes >                Â604800     Â; Expire Â- after one week >                 1h ) ; Minimum 1H >        ÂIN   ÂNS   Âns1.exampleA.com. >        ÂIN   ÂNS   Âns2.exampleA.com. > > ;; Hosts Section > > www       1.1.1.4 > > Notice that the NS records point to ns1 and ns2.exampleA.com. > That is quite the point: I need the nameservers for exampleA.com and exampleB.com to be different! > Notice the A records for www.example{A,B} which should match your > Apache instances if you are doing IP based hosting. ÂIf you are doing > name based hosting you *could* DNS round robin the requests. > If the nameservers are for specific addresses, and Apache serves based on FQDN as opposed to based on address, then I think that Apache can answer on all addresses. > Master and Secondary DNS configurations are defined in your > named.conf file. ÂThis doesn't matter in your necessarily for your > configuration, but thought I would point it out. > > > On the master > > zone "examplea.com" { >    Âtype master; >    Âfile "zone.examplea.com"; >    Âallow-transfer { ns2.examplea.com } > }; > > > On the secondary > > zone "examplea.com" { >    Âtype slave; >    Âmasters { ns1.examplea.com }; >    Âfile "zone.example.com"; > }; > > Thanks. I will do another for exampleB.com as well, to keep them separate. -- Dotan Cohen http://gibberish.co.il http://what-is-what.com _______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos