14 lines
473 B
Diff
14 lines
473 B
Diff
--- dhcp-3.0.6/client/scripts/linux
|
|
+++ dhcp-3.0.6/client/scripts/linux 2008/05/23 13:41:28
|
|
@@ -326,7 +326,9 @@
|
|
hostname $new_host_name
|
|
else
|
|
if [ -x /usr/bin/host ] ; then
|
|
- hostname `host "$new_ip_address" | sed 's:^.* ::; s:\..*::'`
|
|
+ if out=`host -W 2 "$new_ip_address" 2>/dev/null` ; then
|
|
+ hostname `echo "$out" | sed 's:^.* ::; s:\..*::'`
|
|
+ fi
|
|
fi
|
|
fi
|
|
|