From a719e69f9cb0fdbaff2af70a51ad056df35ade18 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 25 Sep 2007 18:39:47 +0000 Subject: Do not return a value for NXDOMAIN --- usr/sbin/update_dns_cache.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr/sbin') 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 -- cgit v1.1