On Wed, 2003-07-30 at 12:00, Simon Males wrote:
> i have setup my system with various versions of mandrake over time, and 
> i swear by fluke i sometimes stumble upon the 'part' of setting hostname.
> 
> currently my system is called localhost (not very helpful on a network). 
>   Which files should i tickle to set my hostname other than localhost

find can tell you the answer to this. The file you're looking for is
/etc/sysconfig/network. If you were to forget this though, you could
find it with

find /etc -type f -exec grep -ln `hostname` {} \; 2> /dev/null

though it might be easier to remember the filename :)

You can also get it to pull its hostname from a PTR lookup on the IP it
gets from DHCP, but I can't remember what magic makes that work. It uses
ipcalc to do it IIRC.

HTH

James.


-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to