HowTo : Set the Hostname of 2nd NIC

Nimal ABHAYA (Metrolog) nimal at
Tue Jun 12 13:08:10 MET DST 2001

Hi all,
        I have two network cards on my linux machine. eth0 is configured throgh adhcp server. eth1 is for my little pc-network. By default the 'hostname' command returns the hostname given by the DHCP server( the fully qualified domain name for eth0). How can I make it return the hostname of the eth1 (which I set as 'pc_lnx' in /etc/hosts) ?
        Thanks for help.
nimal at

-------------- next part --------------
An HTML attachment was scrubbed...

More information about the linux.general mailing list