How to repoint a DNS to a different IP address


#1

I started working for a company which had several sites hosted by several different companies. Now we’re consolidating them in one location to use the same codebase, so I need to repoint my site, www.xyz.com, which is fully hosted by the Dreamhost at this point to a new ip address. How can I do this?

thank you!
Luka


#2

[list=1]
[] Start at Panel -> Domains -> Manage Domains.
[
] Remove the existing web hosting service on the domain in question to get rid of the Dreamhost IP address. (This doesn’t delete any files, it just makes us stop serving up the site.)
[*] Click “DNS” under the domain and add an A record with your new IP address.
[/list]


#3

That worked great, thank you. However, I have one more question - if I’m trying to setup 2 instances www.xyz.com and test.xyz.com - how can I point test.xyz.com to a new IP?

Thanks again!
Luka

EDIT: I tried the following: went to the DNS and added another A record but with a test in the Name field. Is this correct?


#4

Same as above, except put “test” into the name field when adding an A record rather than leaving it blank.


#5

Hi, Andrew. Thank you for your help. I have one last question. I have discovered that the way i set it up right now - by not putting www in front of the name of my site in the DNS, I can see my site when I put xyz.com in the url, but not www.xyz.com. I made a change and modified my initial record to have www in the name field, but it still only shows me the site if I
type in xyz.com. I have set it up about 40 minutes ago. Am I doing something incorrectly?

Thanks again!
Luka


#6

You need to make a record the same as the test one, but put www in the name field.

(Think of www.xyz.com as a subdomain of xyz.com)