# host name for DHCP

**URL:** <https://community.allstarlink.org/t/host-name-for-dhcp/8102>\
**Category:** AllStarLink\
**Created:** [January 7, 2010, 3:03pm UTC](https://community.allstarlink.org/t/host-name-for-dhcp/8102 "2010-01-07T15:03:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![KE2N](https://community.allstarlink.org/letter_avatar_proxy/v4/letter/k/db5fbb/32.png) [@KE2N](https://community.allstarlink.org/u/KE2N)\
**Post date:** [January 7, 2010, 3:03pm UTC](https://community.allstarlink.org/t/host-name-for-dhcp/8102/1 "2010-01-07T15:03:34Z")

</div>

Does any linux guru out there know how to change the DHCP client name from TEST?

I followed the instruction to use system-config-network and suceeded in changing the shell prompt to the host name I want, but my router still says the node name is TEST.

Some internet searching came up with the "dhclient" command - which works - but after the next lease renewal it is back to TEST again. That name must be buried someplace in the linux configuration.

Ken

---

<div class="post-metadata">

**Author:** ![n8lbv](https://community.allstarlink.org/letter_avatar_proxy/v4/letter/n/a5b964/32.png) [@n8lbv](https://community.allstarlink.org/u/n8lbv)\
**Post date:** [January 7, 2010, 3:23pm UTC](https://community.allstarlink.org/t/host-name-for-dhcp/8102/2 "2010-01-07T15:23:42Z")

</div>

Is this a centos/ACID box?

TRY adding or editing the "HOSTNAME=" line in:  
/etc/sysconfig/network

Was almost able to do this from memory but had to google it  
by searching for "centos change hostname"  
Not everyone is going to know exactly what to search for.  
🙂 so I won't griping "google is your friend" anytime soon 🙂

Tested here and works 🙂

[root@N8LBV-R ~]#

-Steve

> Does any linux guru out there know how to change the DHCP client name  
> from TEST?
> 
> I followed the instruction to use system-config-network and suceeded in  
> changing the shell prompt to the host name I want, but my router still  
> says the node name is TEST.
> 
> Some internet searching came up with the "dhclient" command - which  
> works - but after the next lease renewal it is back to TEST again.  
> That name must be buried someplace in the linux configuration.
> 
> Ken
> 
> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> App\_rpt-users mailing list  
> App\_rpt-users@qrvc.com  
> [http://qrvc.com/mailman/listinfo/app\_rpt-users](http://qrvc.com/mailman/listinfo/app_rpt-users)
> 
> --  
> This message has been scanned for viruses and  
> dangerous content by MailScanner, and is  
> believed to be clean.

Michigan Broadband Systems Inc.  
"Always Connected"

(734)527-7150

Steve's cellphone: (734)904-1811

> **···**
>
> --  
> This message has been scanned for viruses and  
> dangerous content by MailScanner, and is  
> believed to be clean.

---

<div class="post-metadata">

**Author:** ![Sales1](https://community.allstarlink.org/letter_avatar_proxy/v4/letter/s/ed655f/32.png) [@Sales1](https://community.allstarlink.org/u/Sales1)\
**Post date:** [January 7, 2010, 3:33pm UTC](https://community.allstarlink.org/t/host-name-for-dhcp/8102/3 "2010-01-07T15:33:35Z")

</div>

Ken wrote:

> Does any linux guru out there know how to change the DHCP client name  
> from TEST?
> 
> I followed the instruction to use system-config-network and suceeded in  
> changing the shell prompt to the host name I want, but my router still  
> says the node name is TEST.
> 
> Some internet searching came up with the "dhclient" command - which  
> works - but after the next lease renewal it is back to TEST again.  
> That name must be buried someplace in the linux configuration.
> 
> Ken
> 
> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> App\_rpt-users mailing list  
> App\_rpt-users@qrvc.com  
> [http://qrvc.com/mailman/listinfo/app\_rpt-users](http://qrvc.com/mailman/listinfo/app_rpt-users)

It is usually very beneficial to search app-rpt.qrvc.com first:

[http://app-rpt.qrvc.com/node/163](http://app-rpt.qrvc.com/node/163)

Steve  
WA6ZFT

---

<div class="post-metadata">

**Author:** ![n8lbv](https://community.allstarlink.org/letter_avatar_proxy/v4/letter/n/a5b964/32.png) [@n8lbv](https://community.allstarlink.org/u/n8lbv)\
**Post date:** [January 7, 2010, 3:26pm UTC](https://community.allstarlink.org/t/host-name-for-dhcp/8102/4 "2010-01-07T15:26:09Z")

</div>

Thanks!  
Good suggestion.  
Better to do it this way 🙂

-Steve

> Ken wrote:
> 
> > Does any linux guru out there know how to change the DHCP client name  
> > from TEST?
> > 
> > I followed the instruction to use system-config-network and suceeded in  
> > changing the shell prompt to the host name I want, but my router still  
> > says the node name is TEST.
> > 
> > Some internet searching came up with the "dhclient" command - which  
> > works - but after the next lease renewal it is back to TEST again.  
> > That name must be buried someplace in the linux configuration.
> > 
> > Ken
> > 
> > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > App\_rpt-users mailing list  
> > App\_rpt-users@qrvc.com  
> > [http://qrvc.com/mailman/listinfo/app\_rpt-users](http://qrvc.com/mailman/listinfo/app_rpt-users)
> 
> It is usually very beneficial to search app-rpt.qrvc.com first:
> 
> [http://app-rpt.qrvc.com/node/163](http://app-rpt.qrvc.com/node/163)
> 
> Steve  
> WA6ZFT  
> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> App\_rpt-users mailing list  
> App\_rpt-users@qrvc.com  
> [http://qrvc.com/mailman/listinfo/app\_rpt-users](http://qrvc.com/mailman/listinfo/app_rpt-users)
> 
> --  
> This message has been scanned for viruses and  
> dangerous content by MailScanner, and is  
> believed to be clean.

Michigan Broadband Systems Inc.  
"Always Connected"

(734)527-7150

Steve's cellphone: (734)904-1811

> **···**
>
> --  
> This message has been scanned for viruses and  
> dangerous content by MailScanner, and is  
> believed to be clean.

---

<div class="post-metadata">

**Author:** ![F6hqz\_M](https://community.allstarlink.org/letter_avatar_proxy/v4/letter/f/7bcc69/32.png) [@F6hqz\_M](https://community.allstarlink.org/u/F6hqz_M)\
**Post date:** [January 7, 2010, 3:49pm UTC](https://community.allstarlink.org/t/host-name-for-dhcp/8102/5 "2010-01-07T15:49:41Z")

</div>

Hi Ken,

I don't know if this is ok for your distribution, but it's ok for me with CentOS.

Fix the station name in the file /etc/sysconfig/network :  
HOSTNAME=asterisk.yourdomain.net

Add the machine name (HOSTNAME) in /etc/hosts :  
127.0.0.1 asterisk.yourdomain.net localhost.localdomain localhost

This must be ok.  
Feedback, please.

73,  
F6HQZ  
Francois

Le 07/01/2010 16:03, Ken a �crit :

> **···**
>
> > Does any linux guru out there know how to change the DHCP client name  
> > from TEST?
> > 
> > I followed the instruction to use system-config-network and suceeded in  
> > changing the shell prompt to the host name I want, but my router still  
> > says the node name is TEST.
> > 
> > Some internet searching came up with the "dhclient" command - which  
> > works - but after the next lease renewal it is back to TEST again.  
> > That name must be buried someplace in the linux configuration.
> > 
> > Ken
> > 
> > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > App\_rpt-users mailing list  
> > App\_rpt-users@qrvc.com  
> > [http://qrvc.com/mailman/listinfo/app\_rpt-users](http://qrvc.com/mailman/listinfo/app_rpt-users)

---

<div class="post-metadata">

**Author:** ![KE2N](https://community.allstarlink.org/letter_avatar_proxy/v4/letter/k/db5fbb/32.png) [@KE2N](https://community.allstarlink.org/u/KE2N)\
**Post date:** [January 7, 2010, 4:40pm UTC](https://community.allstarlink.org/t/host-name-for-dhcp/8102/6 "2010-01-07T16:40:13Z")

</div>

yes I found that item in the QRVC site and as I mentioned , while it works to change the host name within the program; it does not change the hostname to the outside world (DHCP server).

I guess I am now one small step towards guru-hood.  
I found this:

etc/sysconfig/network-scripts/ifcfg-eth0  
mine looks like this (after I changed the last line from TEST to the name I wanted)

# Broadcom Corporation NetXtreme BCM5701 Gigabit Ethernet  
DEVICE=eth0  
BOOTPROTO=dhcp  
DHCPCLASS=  
HWADDR=00:06:5B:F7:28:DF  
ONBOOT=yes  
DHCP\_HOSTNAME=Asterisk1

and - after a reboot - it works. The router now shows the name

so there are two names

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;the host name used by the computer internally  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;the host name used externally on the network

Ken  
27021

> **···**
>
> -----Original Message-----  
> From: Steve Gladden \<steve@michiganbroadband.com\>  
> To: Ken \<ke2n@cs.com\>  
> Cc: app\_rpt-users@qrvc.com  
> Sent: Thu, Jan 7, 2010 10:23 am  
> Subject: Re: [App\_rpt-users] host name for DHCP
> 
> Is this a centos/ACID box?
> 
> TRY adding or editing the "HOSTNAME=" line in:  
> /etc/sysconfig/network
> 
> Was almost able to do this from memory but had to google it  
> by searching for "centos change hostname"  
> Not everyone is going to know exactly what to search for.  
> 🙂 so I won't griping "google is your friend" anytime soon 🙂
> 
> Tested here and works 🙂
> 
> [root@N8LBV-R ~]#
> 
> -Steve
> 
> > Does any linux guru out there know how to change the DHCP client name  
> > from TEST?
> > 
> > I followed the instruction to use system-config-network and suceeded
> 
> in
> 
> > changing the shell prompt to the host name I want, but my router still  
> > says the node name is TEST.
> > 
> > Some internet searching came up with the "dhclient" command - which  
> > works - but after the next lease renewal it is back to TEST again.  
> > That name must be buried someplace in the linux configuration.
> > 
> > Ken
> > 
> > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > App\_rpt-users mailing list  
> > App\_rpt-users@qrvc.com  
> > [http://qrvc.com/mailman/listinfo/app\_rpt-users](http://qrvc.com/mailman/listinfo/app_rpt-users)
> > 
> > --  
> > This message has been scanned for viruses and  
> > dangerous content by MailScanner, and is  
> > believed to be clean.
> 
> Michigan Broadband Systems Inc.  
> "Always Connected"
> 
> (734)527-7150
> 
> Steve's cellphone: (734)904-1811
> 
> --  
> This message has been scanned for viruses and  
> dangerous content by MailScanner, and is  
> believed to be clean.
