Changing Domain Name is necessary when you want to rebrand or take place the new products in your Store. It is also known as change the URL and the procedure to replace it in Magento 2 is similar to Magento 1.
Firstly, to change domain name, you should be sure that the new domain has proper configuration and show it on the servers of your installation. The new domain will be configured in the Magento 2 easily.
Magento 1 and Magento 2 have same stores root URL available and the record paths. However, Magento 2 has the third path in root URL, which makes the process to change the domain name of Magento 1 is not enough to Magento 2.
Webon navigation menu
Save Configto finish
It comes to the end of tutorial: Magento 2 Change Domain Name.