Do not assume that an address that starts with a number is an IP address and expand validation to cover all FQDNs and IP addresses. Fix #766