add a Post function to add a domain.
Override toString method for debbuging purpose.
Return domain.toString output in the response to add a new domain