setting up ubuntu dhcp hostname

gboyce gboyce at badbelly.com
Fri Aug 25 17:35:17 EDT 2006


For my Ubuntu system, I added "send host-name HOSTNAME;" into 
/etc/dhclient.conf

You should also be able to define a hostname variable in 
/etc/networking/interfaces, but I've never been able to get that to work.

On Fri, 25 Aug 2006, Tuomas Utrecht wrote:

> hi.
> i just installed ubuntu it was really easy. my friend wants to "ssh into" my
> old computer. he was at my house. he said i have to set my hostname when i
> dchp and get my address so that the network knows my computers name.
>
> i keep searching and i found that if i run /etc/init.d/networking restart
> then i can reconnect to my network. i also found that in /etc/hostname it
> just says "tuomas" which is my computers name. and my name.
>
> can i tell the restart to look at that file so it tells my nic card to be
> tuomas not 192.168.1.104? can i tell it to do this when it starts so i dont
> have to do it every morning?
>
> im sorry i have to ask such an easy question but my roommate is gone today
> and i want to start learning about linux. that is all he uses.
>
> thanks everybody! tuomas
>
> -- 
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
>

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




More information about the Discuss mailing list