$iaddress returns the ip address, if avaible, inside an on dns event.
on *:dns:echo -a $iaddress
Added: mIRC v4.7
Added on: 09 Dec 1996
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.