typo fixes
Search: string fix. Also remove uneeded dns resolution when name is an IP or a short hostname