1 class HostPlugin < Plugin
2 def help(plugin, topic="")
3 "host <domain> => query nameserver about domain names and zones for <domain>"
6 unless(m.params =~ /^(\w|-|\.)+$/)
7 m.reply "incorrect usage: " + help(m.plugin)
10 m.reply Utils.safe_exec("host", m.params)
13 plugin = HostPlugin.new
14 plugin.register("host")