Well, I'm not sure if theres a better way to do it but..

Code:
on *:dns:{ msg [color:red]#channel[/color] $iif($dns(1).ip,Resolved $dns(1) to $dns(1).ip,Could not resolve) }
on *:text:!dns *:[color:red]#channel[/color]:{ dns $2 }
 


Check out http://kalsiddon.com for games, videos & more! Good for when your bored in work or school!