If you are using the DHCP server to automatically update your DNS, and you
do not apply this patch, your DNS entries will be incorrect.
Before the patch I was getting
tornado.moyville.ie.moyville.ie
After the patch I get the correct entry
tornado.moyville.ie
--
John Allen email: [EMAIL PROTECTED]
OpenSource Developer :
www: http://udk.sf.net
phone: intl+353-14937616
: intl+353-862315986
--- /etc/sysconfig/network-scripts/ifup.orig Wed Sep 19 18:51:45 2001
+++ /etc/sysconfig/network-scripts/ifup Wed Sep 19 18:52:51 2001
@@ -23,6 +23,11 @@
fi
fi
+if [ "$DHCP_HOSTNAME" ] && [ "$DOMAINNAME" ]
+then
+ DHCP_HOSTNAME=`echo $DHCP_HOSTNAME | sed -e "s/\.$DOMAINNAME//g"`
+fi
+
need_hostname
CONFIG=${1}