Re: DHCP_HOSTNAME in ifcfg-eth0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Tue, Nov 29, 2011 at 05:52:06PM +0200, Timothy Madden wrote:
> > Currently I have to include a line like
> > 	DHCP_HOSTNAME=appserver2

> I want dhclient to read the hostname from `hostname` or from 
> /etc/sysconfig/network or any other way, and use that name to send the 
> hostname to DHCP server.

Can't you just do
  DHCP_HOSTNAME=`hostname`
?

Many of the config files are just parsed as shell scripts, so this
might work :-)

-- 

rgds
Stephen
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux