Frederic Lepied wrote:
Where is your patch I can't find it attached...
Jeez, how did I forget to attach the patch (:-}
[EMAIL PROTECTED] writes:
This small addition to the ifup script will fix a problem that occurs
if you are using
Dynamic DNS updates from your DHCP server. If that is the case you
must ensure that
any hostname passwd to the DHCP server does not contain the
domainname, otherwise
the entry in the DNS will contain the domainname twice.
Please include in next iniscript updates.
Thanks.
--
John Allen email: [EMAIL PROTECTED]
OpenSource Developer :
www: http://www.udk.org
phone: intl+353-14937616
: intl+353-862315986
*** /etc/sysconfig/network-scripts/ifup Fri Jul 6 22:46:13 2001
--- ifup Mon Jul 23 10:14:58 2001
***************
*** 23,28 ****
--- 23,39 ----
fi
fi
+ if [ "$DHCP_HOSTNAME" ]
+ then
+ # OK we have a DHCP hostname
+ # If we are using Dynamic DNS where the DHCP server
+ # updates the DNS server, then we need to ensure that
+ # the hostname passed to the DHCP server does not contain
+ # our domainame, otherwise the entry in the DNS
+ # will contain the domainname twice.
+ DHCP_HOSTNAME=`sed "s/.$DOMAINNAME//g"`
+ fi
+
need_hostname
CONFIG=${1}