CoStar has closed the deal to buy residential real estate marketplace Homes.com from Dominion Enterprises for $156 million.