A hacker has been arrested after breaking into a site owner's account, transferring the domain name ownership to himself and selling it on.