<nsinfo $name [$which]>
nsinfo function obtains information about the most
nslookup (here). It can
be called after a single
nslookup or within an
$name argument is one of the following:
addrsReturns the list of IP addresses given in the reply.
nameReturns the canonical host name.
aliasesReturns any aliases known for the host.
errnumReturns the error code (not a protocol code) from the last lookup. 0 indicates a successful reply. See below for other numbers.
errmsgReturns the error message from the last lookup. The possible
errnumcodes and their corresponding
Cannot open hosts file
Cannot connect to nameserver
Nameserver connection refused
Nameserver query timeout
Host not found
Bad IP address
Out of memory
replyheaderReturns text information about the reply header, including id, flags, opcode, and response code. Added in version 3.01.989630000 20010511.
replyrecordsReturns text information about the reply's records. An optional second argument can be one of
allto return records from just a particular section (or all sections). Each value returned is a space-separated list of name, TTL, class, type, and data (answer). Added in version 3.01.989630000 20010511.
rawreplyReturns the raw packet data from the last reply, as a
varbytefield. Largely superseded by
nsinfo returns the requested information from the last
IP address: $ret
Aliases: <LOOP $ret> $ret </LOOP>
nsinfo function was added in version 3.0.951800000 20000228.
<urlcp dnsmode sys> is set, less information may be
available from the reply.