implement the getDomainName() method