It sounds like something has gone wrong with your install if this isn’t being populated with the correct domain.
As has been mentioned, it may be easier for you to follow the standard install and restore a backup if you’ve still not managed to track down what’s gone wrong.