summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/traceroute/node.tag/node.def2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/traceroute/node.tag/node.def b/templates/traceroute/node.tag/node.def
index 83a3f31..cf60ec4 100644
--- a/templates/traceroute/node.tag/node.def
+++ b/templates/traceroute/node.tag/node.def
@@ -12,7 +12,7 @@ run:
/usr/bin/traceroute $2
echo
else
- if cat /etc/resolv.conf | grep -q nameserver
+ if cat /etc/resolv.conf 2> /dev/null | grep -q nameserver
then
if /usr/bin/host $2 &> /dev/null
then