Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Setting hostname through DHCP

I know it is possible to set a preferred hostname through DHCP and have the DHCP server automatically setup the forward and reverse DNS for that hostname. On a static IP box without NetworkManager it is possible to add DHCP_Hostname="DesiredHostname" to the /etc/sysconfig/network-scripts/ifcfg-eth0 script and it will pull down an IP and setup the DNS according to the hostname that you asked. Now the question is does anyone know how to do it with NetworkManager? If have tried adding DHCP_Hostname="DesiredHostname" to /etc/sysconfig/network-scripts/ifcfg_Auto-SSID as well as to /etc/sysconfig/network without success. Also this is on a laptop with Fedora 16.

Setting hostname through DHCP

I know it is possible to set a preferred hostname through DHCP and have the DHCP server automatically setup the forward and reverse DNS for that hostname. On a static IP box without NetworkManager it is possible to add DHCP_Hostname="DesiredHostname" to the /etc/sysconfig/network-scripts/ifcfg-eth0 script and it will pull down an IP and setup the DNS according to the hostname that you asked. Now the question is does anyone know how to do it with NetworkManager? If have tried adding DHCP_Hostname="DesiredHostname" to /etc/sysconfig/network-scripts/ifcfg_Auto-SSID as well as to /etc/sysconfig/network without success. Also this is on a laptop with Fedora 16.