diff options
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/sbin/update_dns_cache.sh | 2 |
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 |