Syntax
lookupcname(string)
Description
The lookupcname() function returns the canonical name for the given host.
A canonical name is the final name after following zero or more CNAME records. lookupcname() does not return an error if host does not contain DNS “CNAME” records, as long as host resolves to address records.
If no record is found, an empty string is returned
Example
println(lookupcname("google.co.uk")) println(lookupcname("google.co.yewkay")) google.co.uk. ""