Added function to check syntax of URL for DNS lookup

For now, simply checks for '.' character, but that will be easy to
change in the future if necessary/desired.