Added check to ensure  is an ip address
allowed  to be domain name as well