Bug 7498
Summary: | pump and $DHCP_HOSTNAME | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | dbelliz |
Component: | pump | Assignee: | Erik Troan <ewt> |
Status: | CLOSED RAWHIDE | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.1 | CC: | alan.hancock, roy, tim |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2000-02-23 20:53:28 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
dbelliz
1999-12-01 22:44:58 UTC
I have come up with a cleaner way of getting pump to run with the -h param. if [ -n "$PUMP" ]; then PUMPARGS= if [ -f /etc/HOSTNAME ]; then DHCP_HOSTNAME=`awk -F'.' '{print $1}' /etc/HOSTNAME` } if [ -n "$DHCP_HOSTNAME" ]; then PUMPARGS="-h $DHCP_HOSTNAME" fi FYI Have tried the new pump. Pump now pushes the hostname upon renewal when the -h parameter is specified. However the hostname is the FQDN. So while other MS boxes showup in the DHCPADMIN tool as just hostname, RH 6.1 systems with the new pump code show up as hostname.domain.com. If DNS is updated via DHCP, DNS entries will look like hostname.domain.com.domain.com. The current workaround is to change the HOSTNAME entry in /etc/sysconfig/network to hostname from hostname.domain.com. Many thanks to Erik T. at RH for getting RH working in MS DHCP environments. I have Qbik wingate 3.0.5 running on NT4 and have modified ifup as below if [ -n "$PUMP" ]; then PUMPARGS= if [ -f /etc/HOSTNAME ]; then DHCP_HOSTNAME=`awk -F'.' '{print $1}' /etc/HOSTNAME` if [ -n "$DHCP_HOSTNAME" ]; then PUMPARGS="-h $DHCP_HOSTNAME" fi This passes the host name to wingate DHCP but the hostname logged always has "3|" appended to the name so zippy becomes zippy3| the"|" being a non printing character. if I run the awk on the command line the variable $DHCP_HOSTNAME contains the correct hostname zippy The hostname issues should be fixed in pump0.7.8, available from ftp://people.redhat.com/ewt/. It will also take the system's hostname (if set), and pass that to the dhcp server, removing the need for DHCP_HOSTNAME. |