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

Re: DHCP and debian



Joel Keating wrote:
> 
> What is the settting that allows you to set the hostname on the client?  I
> run dhcpcd on my linux box on a Win network, and my dhcpc always sets my
> hostname to dhcpc1.  Where is this seting you are talking about i've been
> trying to find it for weeks.
> 

Hi Joel,

I also run a couple of Debian boxes on a Windows network, and I modified
/etc/init.d/dhcpc so that the line:

start-stop-daemon --start --quiet --exec $DAEMON -- $IFACE 

now reads:

start-stop-daemon --start --quiet --exec $DAEMON -- -h `cat
/etc/hostname` $IFACE

(all on one line).

This allowed the system to properly associate my chosen hostnames with
my new IP numbers.


Reply to: