All pastes #596785 Raw Edit

Stuff

public text v1 · immutable
#596785 ·published 2007-06-30 05:35 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 = $dns(%n).addr  $+ %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 = $dns(%n).addr  $+ %out
      dec %n
  }  }
  echo -a $timestamp2 %in $+ End of /DNS $+ %out
}