Testing localhost or clone on mulitsite

Hi.

Thanks for the newsletter "Testing, testing... 1, 2, 3,"
https://premium.wpmudev.org/blog/testing-environment-wordpress/

Great tutorials on testing.

The newsletter says

"There are many ways you can set up a test environment, but the easiest by far are localhost environments or cloning your site on your existing web hosting account."

I think testing is a problem with mulitsite and with changing domain name for the mainsite. Can this be done with a local dns change in some way.

My question is: Are there any good ways to fake the domainname of the mainsite in my multisite clone install so that I dont have to change domain in datebase to test it, and still keep the same domainname on the original live site?

Kind regards Hubbe

Kind regards Hubbe