Multiple nameservers for multiple domain names from two IPs?

Kevin Darcy kcd at daimlerchrysler.com
Wed Mar 22 21:35:51 UTC 2006


Stuart Murray-Smith wrote:

>Hi list
>
>I have two nameservers:
>
>ns1.domain_1.tld, IP = vvv.www.xxx.yyy
>ns2.domain_1.tld, IP = vvv.www.xxx.zzz,
>
>where xxx.yyy and xxx.zzz are two physically different servers ie ns1
>zone files are stored on server xxx.yyy and ns2 zone files are stored
>on server xxx.zzz
>
>How would I serve multiple nameservers:
>
>ns1.domain_1.tld, ns2.domain_1.tld
>ns1.domain_2.tld, ns2.domain_2.tld
>...
>ns1.domain_n.tld, ns2.domain_n.tld
>
>for multiple domain names from the above IPs?
>
>Domain lookups of the zone files below function, but an HTTP request
>of any of the virtual domains doesn't serve the correct page. It
>serves a website from one of the another domains. May I assume that
>Apache isn't resolving a website's CNAME name request in the
><VirtualHost> section correctly because of an error in the multiple
>nameserver config?
>  
>
No, you should not assume that. Webservers typically pick up the name of 
the virtual host from the Host: header in the HTTP request, not by 
looking up DNS. If your domain lookups are working fine, I'd concentrate 
more on looking for a problem with your webserver configuration.

                                                                         
                                 - Kevin




More information about the bind-users mailing list