summaryrefslogtreecommitdiffstats
path: root/usr/sbin/update_dns_cache.sh
diff options
context:
space:
mode:
Diffstat (limited to 'usr/sbin/update_dns_cache.sh')
-rwxr-xr-xusr/sbin/update_dns_cache.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/sbin/update_dns_cache.sh b/usr/sbin/update_dns_cache.sh
index 3079c59..ca95e2c 100755
--- a/usr/sbin/update_dns_cache.sh
+++ b/usr/sbin/update_dns_cache.sh
@@ -7,7 +7,7 @@ while [ /bin/true ]; do
needsfilterreload=0
for FILE in *; do
OLDIP=`cat $FILE`
- NEWIP=`host $FILE | awk '{ print $4 }'`
+ NEWIP=`host $FILE | grep -v NXDOMAIN | awk '{ print $4 }'`
if [ "$OLDIP" != "$NEWIP" ]; then
needsfilterreload=1
fi
OpenPOWER on IntegriCloud