If you are creating a WordPress and want to work on it while the DNS is pointing to another domain. Follow this guide:https://codex.wordpress.org/Changing_The_Site_URL