Validate Domain Name or Ip Address