Antwort: DHCP_HOSTNAME in ifcfg-eth0

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



centos-bounces@xxxxxxxxxx schrieb am 29.11.2011 14:57:15:

> Timothy Madden <terminatorul@xxxxxxxxx> 
> Gesendet von: centos-bounces@xxxxxxxxxx
> 
> 29.11.2011 14:57
> 
> Bitte antworten an
> CentOS mailing list <centos@xxxxxxxxxx>
> 
> An
> 
> centos@xxxxxxxxxx
> 
> Kopie
> 
> Thema
> 
>  DHCP_HOSTNAME in ifcfg-eth0
> 
> Hello
> 
> Is there a way for the dhcp client to send the current host name of the 
> machine when requesting a lease ?
> 
> Currently I have to include a line like
>    DHCP_HOSTNAME=appserver2
> in my /etc/sysconfig/network-scripts/ifcfg-eth0, but I would like to 
> tell the dhcp client to just 'also send the hostname' and then the 
> client to get the current hostname itself, instead of having the name 
> hard-coded in the ifcfg-eth0 file.
> 
> I am trying to get my router to know the names of all my CentOS 
> machines, as currently I can access none of my CentOS machines by their 
> node name (I get 'unknown host' upon name lookup) and maybe it will help 

> if the router knows all the computer names.
> 
> Thank you,
> Timothy Madden
> 
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos

Hi Timothy,
I've in my config file:

DHCP_CLIENT_ID=st00ni0029
DHCP_HOSTNAME=st00ni0029
 
That works for me.

Gruß 
Andreas Reschke
________________________________________________________________

Unix/Linux-Administration
Andreas.Reschke@xxxxxxxxxxxxx
_______________________________________________
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