isValidAddress

Validates if the given string is a valid network address (IP or domain).