homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
Forum Library, Charter, Moderators: phranque

Website Technology Issues Forum

How do you access master IP for a few web files in a DNS Round Robin?

5+ Year Member

Msg#: 4649459 posted 6:54 pm on Feb 26, 2014 (gmt 0)

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 (master) and (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 =, 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?



5+ Year Member

Msg#: 4649459 posted 9:24 pm on Feb 26, 2014 (gmt 0)

Okay - I found a solution.

Setup DNS A RECORD for a non-existant subdomain pointed to master IP. Set master server to 301 ww2 to www.

This seems to make DNS point to the correct server, but no duplicate issues because it is rewritten on the server.

This does set up another issue that - cross-domain ajax calls aren't allowed. Oh well.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved