1. You need to update your webserver (normally apache) default config to the moodle folder.
2. You need to update your moodle config.php file to reflect the domain name.
3. You need to run the replace tool to update the database with the new domain name.