add feature to calcluate domain name