joined:July 11, 2006
I have a DNS round robin setup for my website (VPS). Slave IP is replicated nightly from the master IP. I have a few XML files on the master that are updated at random times on some days that need to be accessible via the website.
For example I need to get access to:
From www.mydomain.com which is round robin on 18.104.22.168 (master) and 22.214.171.124 (slave)
The issue is that if you happen to land on the slave, the file1.xml may not be accessible until after the nightly replication when it receives file1.xml from the master.
The IP is shared for several websites, so hard coding the IP is not possible (I don't think). I've thought of making an DNS A RECORD subdomain to point to only one IP (ie. ww2.mydomain.com = 126.96.36.199), but that would essentially create a duplicate of the entire site under the ww2 subdomain (which is bad for search indexing purposes).
I have access to DNS and httpd.conf (and the full root), and I know I am missing something. Can someone point me in the right direction?