diff options
Diffstat (limited to 'templates/traceroute')
-rw-r--r-- | templates/traceroute/node.tag/node.def | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/templates/traceroute/node.tag/node.def b/templates/traceroute/node.tag/node.def index 87d9c32..f183741 100644 --- a/templates/traceroute/node.tag/node.def +++ b/templates/traceroute/node.tag/node.def @@ -5,4 +5,9 @@ allowed: vyatta-allowed-hosts -run: /usr/sbin/traceroute $2 +run: if /usr/bin/host $2 &>/dev/null + then + /usr/bin/traceroute $2 + else + echo Cannot identify $2 + fi |