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

[Sheflug] IP address via DHCP



This should be a simple one to answer.  I've looked at the man pages for 
dhcp etc.  I've looked in /var/state/dhcp and /etc etc. but I haven't 
found a good way to get my current IP address.  On my old system, the 
hostname was automatically changed to my ipaddress [which wasn't very 
convenient as I use hostname as part of my prompt string...] and I found 
a way of specifying this using the SuSE configuration tools, only it 
didn't quite work: the hostname should have been set to something like

pc-62-31-17-212-sh.blueyonder.co.uk

but instead it was set to just pc-62-31-17-212-sh which isn't much use 
as an IP address though it did give me the information I wanted.  On the 
same theme, how do I change the hostname to something other than "linux"?

thanks in advance for any help,

Matt.

-- 
 ------------------------------------------------
| Matt Fairtlough                                |     
| 22 Harley Road                                 |
| Sheffield S11 9SE UK  tel. 0114 236 2067       |
 ------------------------------------------------

---------------------------------------------------------------------
Sheffield Linux User's Group - http://www.sheflug.co.uk
To unsubscribe from this list send mail to
- <sheflug-request [at] vuw.ac.nz> - with the word 
 "unsubscribe" in the body of the message. 

  GNU the choice of a complete generation.