well, what I mean is:

when the dns resolved $dns is filled with all info needed, $1- might be $true
when it failes $dns == $null and $1- is the dns you wanted to resolve ( /dns (nick/ip/address) ) so you don't have to create an alias /dns { dns $1- | set %dns $1- } which you can read when dns failes: if (!$dns(0)) { echo -a can't resolve: %dns }

get it ?

you could just do: if (!$dns(0)) { echo -a can't resolve: $1- }


If it ain't broken, don't fix it!