on *:DNS:{ haltdef var %n = $dns(0) echo -a $timestamp2 %in $+ DNS attempting to resolve %dns $+ ... $+ %out if (%n == 0) { echo -a $timestamp2 %in $+ DNS unable to resolve any addresses $+ %out } elseif (%n == 1) { echo -a $timestamp2 %in $+ DNS resolved %n address for %dns $+ %out echo -a $timestamp2 %in $+ $dns(%n).ip $+ %out dec %n } else { echo -a $timestamp2 %in $+ DNS resolved %n addresses for $dns(%n) $+ %out while (%n > 0) { echo -a $timestamp2 %in $+ $dns(%n).ip $+ %out dec %n } } echo -a $timestamp2 %in $+ End of /DNS $+ %out }