Mwnci lookupns() Function

Syntax

lookupns(string)

Description

The lookupns() function returns an array of the name servers for the given host.

If no record is found, an empty string is returned

Example

println(lookupns("google.co.uk"))
println(lookupns("google.co.yewkay"))


["ns2.google.com.", "ns4.google.com.", "ns1.google.com.", "ns3.google.com."]
[]