In one var you can save max. ~27 ips. You can write to a file the ip's.. write file.txt $remove($address($nick,2),*!*@) And to find if the ip exist in the file use $read(file.txt,s,$address($nick,2))
Then you need to check if that is ip or not.. If not dns it.. var %host = $remove($address($nick,2),*!*@) if ($right(%host,1) isletter) { dns %host } else { write file.tx %host }t write on 1:DNS:{ var %n = $dns(0) while (%n > 0) { write file.txt $dns(%n).ip dec %n } }