Ok, what you want is now perfectly clear and a nice suggestion indeed. An alternative way of identifying which /dns triggered which on DNS could be the filling of $1- with the parameters passed to /dns. For example if I did /dns mirc.com blah 1234 (which is currently accepted by /dns without errors), in the on DNS event the following would happen:
$1 would be filled with "mirc.com"
$2 with "blah"
$3 with "1234"
$1- with "mirc.com blah 1234"