Validates a DNS name server string.
| str |
the string containing the DNS server |
| family |
the IP address family (af_inet for IPv4, af_inet6 for IPv6, af_unspec to accept both IPv4 and IPv6) |
|
true if the name server is valid, false otherwise |