Mailing List Archive

Support open source code!


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

Re: [tlug] Hostname



[Tomita Alberto (Re: [tlug] Hostname) writes:]
>> At Fri, 15 Mar 2002 08:45:48 +1100 (EST),
>> Jim Breen wrote:
>> > >> Try setting HOSTNAME=... in /etc/sysconfig/network.
>> > Tried that. That field contained "localhost.localdomain".
>> > 
>> > Interesting outcome - (a) the hostname changed (b) dhcp still works
>> > (c) X did not start (d) when I started X by hand, Gnome whimpered that
>> > it could not find the new hostname by DNS.
>> 
>> that may be due to a different problem. to be able to resolve
>> the hostname by its IP address, either create an entry for it in
>> /etc/hosts or, if your ISP supports dynamic DNS, put DHCP_HOSTNAME=...
>> can't remember if it should be in ifcfg-eth0 or /etc/sysconfig/network

OK, it's working now. As Albert and Anthony pointed out, I needed to put
the host-name in /etc/hosts  as well as setting HOSTNAME=... in
/etc/sysconfig/network

Many thanks

Jim

-- 
Jim Breen  [j.breen@example.com  http://www.csse.monash.edu.au/~jwb/]
Computer Science & Software Engineering,                Tel: +61 3 9905 3298
P.O Box 26, Monash University,                          Fax: +61 3 9905 5146
Clayton VIC 3800, Australia      ジム・ブリーン@モナシュ大学

Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links