dns_server_validate


Description:


[ Version ( since = "1.56" ) ]
public bool dns_server_validate (string str, int family) throws Error

Validates a DNS name server string.

Parameters:

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)

Returns:

true if the name server is valid, false otherwise


Namespace: NM
Package: libnm