@PINGDNS
— Returns the address of a
DNS server.
Syntax:
%@PINGDNS[
n]
n | the index (1-N) of the server to return, or 0 for the number of known DNS servers |
Only IPv4 is supported. If n is omitted, it defaults to 1 (return the first DNS server). On any error, this function returns an empty string.
rem List known DNS servers:
do i = 1 to %@pingdns[0]
echo DNS #%i: %@pingdns[%i]
enddo
This function is equivalent to APING’s
#DNS
macro, but can be used in other commands.