Installing Wordpress on domain not on Dreamhost (yet)

Hi, apologies if this has been answered many times but I can’t find what is the answer to (I think) what is an easy problem!

I will be creating a new website that is currently hosted elsewhere, so created the domain www.example.com and installed WordPress here using 1click then created the mirror www.example.dreamhosters.com

When I click on www.example.dreamhosters.com it shows the Wordpress site (albeit with broken images). But when I try to login www.example.dreamhosters.com/wp-admin it redirects me to www.example.com/wp-admin

Is there something really obvious I’m doing wrong here? Thanks!

The mirrored DNS method of WordPress install hasn’t worked for years, because of WordPress efforts toward better security.

Use this method: https://help.dreamhost.com/hc/en-us/articles/215415667-How-to-view-your-DreamHost-site-using-your-hosts-file

Or, the method I prefer is to set your local computer or local network to temporarily use dreamhost nameservers. They don’t have a help article about that method anymore tho.

Thanks, will try this out.