Mobile app version of vmapp.org
Login or Join
Bryan171

: Need to redirect to another server with no access to DNS A record I've a website which is on two servers - the one it's on now malfunctioned. I have the site hosted on a second server,

@Bryan171

Posted in: #Apache2 #Dns #WebHosting

I've a website which is on two servers - the one it's on now malfunctioned. I have the site hosted on a second server, but have no access to the DNS Records to point the A Record to the new server IP.

Can I redirect the URL to the new server without access to the DNS records?

10.04% popularity Vote Up Vote Down


Login to follow query

More posts by @Bryan171

4 Comments

Sorted by latest first Latest Oldest Best

 

@Megan663

No, you can't really do that. You're essentially asking if you can change the A record of the domain name, without changing the A record of the domain name.
@msanford 's solution could work temporarily, but you could redirect to your new IP instead of newdomain.com, assuming your site is the only one hosted on the new IP address.

10% popularity Vote Up Vote Down


 

@Courtney195

If both servers are on the same network (same hosting provider for instance) then you could remap your servers' external IP addresses. This way you could just leave the DNS records pointing to X.X.X.X and have that IP mapped to your new server.

10% popularity Vote Up Vote Down


 

@Angie530

To point a domain name to another server you need to change the A record. No way around that. So work towards getting access to the DNS records.

10% popularity Vote Up Vote Down


 

@Deb1703797

A slightly elegant stop-gap solution, using Apache rewrites:

RewriteEngine On
RewriteBase /
RewriteRule ^(.*)$ newdomain.com/ [L,R=302]


Stick that into an .htaccess file in the web root of the site in question. This will take all requests to your server and rewrite them to newdomain.com/{whatever page was specified}.

But if you want a permanent solution to ensure that your old domain points to your new server, you will have to gain access to the DNS because by redirecting your visitors, they are leaving your old domain name (which is probably something you don't want in the long term).

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme