How to retrive previous Domain URL in Wp

If you have access to the wp-config.php on the server, you can add the following constants that will override the database. This does not save the settings but will at least get you viewing the site again.

define( 'WP_SITEURL', 'url_to_wordpress_core_files' );
define( 'WP_HOME', 'url_to_wordpress_front_end' );

There is also a RELOCATE constant that will make the changes to the database – see the instructions here on how to do that.

Hope this helps!