Two domains name on one network, one for the backend and one for the front end

I want to be able to map two domains to an entire network. One domain will be used for the backend for all sites on the network. The other domain will be used for the same network on the front end. What do I need to do to set that up?

Note, this network is installed on a subdomain of a top level domain and will use a subdirectory structure.