added dynamic finding domain name