Search code examples
dnswebservercnamedomain-namea-records

Multiple A-record hops


Have a website I manage on a server on behalf of a client. The domain name is parked by them via their own hosting arrangement for mail etc. They have an A record pointing to my server 'Y'. I need to transfer the site to a new server 'Z'. Can I simply update the A records in my 'Y' hosting DNS zone file to point to the IP address of the new 'Z' server?

E.g.
Domain hosting at X,
A record at X points to my server Y (113.20.6.65),
A record at Y points to my new server Z (175.107.174.31).

Is this possible?
Thank you.


Solution

  • Your example confused me a little!

    However an A record should point to the ultimate location that you want visitors to end up at.

    So if you have a server located at 12.34.56.78 that hosts www.example.com then you would create an A record for that.

    However if you then want example.org to point to the same thing you can create a CNAME record which would connect www.example.org to www.example.com. This way whenever someone looks up www.example.org they would be delivered to 12.34.56.78. In this example the server would need to know to serve pages to example.org as well as example.com, since the address bar would still be example.org.

    Hopefully that answers your question, if anything needs clarifying let me know in comment.