Function

NM-1.0NMdns_server_validateSince 1.56

  • Validates a DNS name server string.

    Parameters

    • str: string

      the string containing the DNS server

    • family: number

      the IP address family (AF_INET for IPv4, AF_INET6 for IPv6, AF_UNSPEC to accept both IPv4 and IPv6)

    Returns boolean

    true if the name server is valid, false otherwise

    1.56