Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Advice on configuring multi-site Apple Caching server

Apple used to provide a Caching server as a module in Server.app but this is now built-in to the standard macOS operating system and configured via System Preferences -> Sharing


(It will cache copies of Apple software updates and items downloaded from both the Mac and iOS app stores.)


See - Manage content caching on Mac - Apple Support


It is possible to define a list of subnets that it should provide caching for, and also a list of public TCP/IP addresses used by both the Mac acting as the caching server and the clients you want to cache for. If you need a list of multiple public IP addresses you need to add this as a TXT record to your internal DNS server.


Now I fully understand all the above for use on a single site even if as I do I have multiple public IP addresses and multiple subnets. I also understand again on this single site how I could use multiple caching servers to spread the load. My difficulty is how I would deal with multiple sites as I will now detail.


We already have a second site linked via VPN to the main site. The second site has its own Internet link and hence has its own public IP address, the second site will obviously have different subnets for the clients. I would like to run a local caching server for this second site. The difficulty I am having is that both sites use the same DNS server, actually more accurately the second site uses a replica of the main site DNS server. Both sites also currently use the same default domain as advertised via DHCP.


The default domain defines the DNS record used to 'find' the TXT record advertising the public IP addresses to be used. See - Enable content cache discovery across multiple public IP addresses on Mac - Apple Support


So as things stand I can only define a single TXT record which would have to include the public IP addresses of both sites.


How do I ensure caching requests go to the correct local caching server? I could and would obviously on each caching server only define them to accept their respective local subnets for client requests. Is this all I need to do? I also want the caching servers themselves to go direct to Apple and not to each other.


Note: I believe a way of testing for the relevant DNS TXT record would be as follows.


nslookup -query=TXT _tcp._aaplcache.<default.domain.com>

Posted on Oct 10, 2018 3:03 AM

Reply

Similar questions

3 replies

Oct 10, 2018 12:32 PM in response to John Lockwood

I'd probably configure the sites into separate third-level DNS subdomains for the hosts. Mail and other "global" services can use the second-level domain. You're likely eventually going to want to have some services local and not operating across the VPN, or not operating across the VPN by default, after all. Caching, for instance, probably wants to be local, unless that VPN has a whole lot more bandwidth than the external access from the second site.

Oct 12, 2018 8:19 AM in response to John Lockwood

Configure both content caches, and the shared DNS TXT record, with the same public IP addresses that cover both sites. Then configure each content cache to serve clients only on its local subnet. The content caches will share content with each other, but serve only local clients. (Be patient after making these configuration changes. Sometimes content caches take a while to react to changes to their peers' configurations, and clients take a while to react to any content cache reconfiguration.)

Advice on configuring multi-site Apple Caching server

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.