Setting DNS for two domains and two servers
I am managing two servers. One Snow Leopard and one Mountain Lion.
The Snow Leopard server is our main server, the Mountain Lion one is a secondary server and was upgraded to Mountain Lion because it was needed to run a particular application.
Server 1 provides file, mail and DNS services for one of our domains. Server 2 does the same for the second domain.
The website for the first domain is hosted externally by a third party. I have used the address ww.xxx.yy.zz in the listings below.
I want server 1 to return the local address for the server to any query other than www. which I want it to point externally. I also need server 1 to be able to resolve the address of server 2.
When I try to change any DNS settings on server 1 I am told I cannot save the changes. This remains the case as long as server 2 (the second primary zone) exists. I can save the changes if I delete the second primary zone and the primary zone then reappears.
Server 1 when trying to resolve the IP of server 2 returns the external address which means we cannot send mail from server 1 to server 2.
Server 1 can resolve the www. address correctly but clients pointing at server 1 for DNS services cannot resolve the www. address.
This should I think be really simple to setup but I cannot manage to get anything to let me do what I think is needed which is:
Both servers and all local clients resolve as follows:
server1.com, mail.server1.com, server1.co.uk & server1.com all resolve to 10.21.0.253
www.server1.com resolves to ww.xxx.yy.zz
server2.co.uk resolves to 10.21.0.252
This is a summary of all the DNS settings on both servers. There reall are only a handful of entries. Any suggestions as to how to make this actually work would be appreciated.
Server 1 running 10.6.8
253.0.21.10.in-addr.arpa. reverse zone
10.21.0.253 reverse mapping server1.com
yy.xxx.ww.in-addr.arpa. reverse zone
ww.xxx.yy.zz reverse mapping www.server1.com
server1.com primary zone
mail.server1.com alias
server1.co.uk alias
server1.com machine 10.21.0.253
www.server1.com machine ww.xxx.yy.zz
serve2.co.uk primary zone
Server 2 running 10.8.2
Primary zone .co.uk
server2.co.uk machine 10.21.0.252
server2.co.uk nameserver
Reverse Zone: 0.21.10.in-addr.arp
10.21.0.252 reverse mapping
server2.co.uk nameserver
MacBook Pro, Mac OS X (10.7.4)