All pastes #596775 Raw Edit

Someone

public text v1 · immutable
#596775 ·published 2007-06-30 05:18 UTC
rendered paste body
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
}