Monday, January 22, 2007

How to Set a Linux Host Name in Office

We have a Microsoft dynamic DNS server in the office, so you can dynamically register your host name when you get the dhcp IP address. Your Windows system can get it automatically, while your Linux system should do some configuration.

For Debian you need add some items in /etc/interfaces. For more info in Debian, see "man interfaces" and scroll down to "The dhcp Method".

For Fedora Core you will do something below:

/etc/sysconfig/network
HOSTNAME=YourLinuxHostName

/etc/sysconfig/networking/devices/ifcfg-eth0
DHCP_HOSTNAME=YourLinuxHostName


Then restart your network, it should be ok.

1 comment:

Anonymous said...

People should read this.