From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,be91c7200f67ae01 X-Google-Attributes: gidfa528,public From: mooney@dogbert.cc.ndsu.NoDak.edu (Tim Mooney) Subject: Re: Hostname problem Date: 2000/05/16 Message-ID: <8frpe7$uvl$1@news.ndsu.nodak.edu>#1/1 X-Deja-AN: 624113841 Content-Transfer-Encoding: 7bit References: <39212E38.E03CBB08@SGMS.SEMA.BE> Content-Type: text/plain; charset=US-ASCII X-Complaints-To: abuse@nodak.edu X-Trace: news.ndsu.nodak.edu 958490887 31733 134.129.106.23 (16 May 2000 15:28:07 GMT) Organization: North Dakota Higher Education Computing Network (NDHECN) Mime-Version: 1.0 NNTP-Posting-Date: 16 May 2000 15:28:07 GMT Newsgroups: comp.unix.tru64 In article <39212E38.E03CBB08@SGMS.SEMA.BE>, Miguel Demaerel wrote: > Hoi > > How can I change the hostname? > The hostname is van1.van.org but I wont van1 (without van.org) > > I have done hostname van1 > In the /etc/hosts ipadres van1 Don't do that. Stick with ipaddress fully-qualified-real-name short-name alias1 alias2 ... aliasn > But when I reboot it is back van1.van.org You only need to edit /etc/rc.config and change the HOSTNAME to the short version. You can do this with an editor or with the rcmgr set HOSTNAME van1 command. Then just run hostname van1 as root, and it's done. Tim -- Tim Mooney mooney@dogbert.cc.ndsu.NoDak.edu Information Technology Services (701) 231-1076 (Voice) Room 242-J1, IACC Building (701) 231-8541 (Fax) North Dakota State University, Fargo, ND 58105-5164