From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,7052669dc7abfe9e X-Google-Attributes: gid1164f8,public From: Kevin Oberman Subject: Re: Change hostname Date: 1997/07/29 Message-ID: #1/1 X-Deja-AN: 260257858 References: <870076575.6140@dejanews.com> <33DD017A.1FFE@EUnet.yu> <5rkvt8$ime$1@starburst.uk.insnet.net> Organization: ESnet--The Energy Sciences Network of the USDOE Newsgroups: comp.sys.dec "Steven Berry" writes: > Nikola Milutinovic wrote in article <33DD017A.1FFE@EUnet.yu>... > >stefan.osterman@upnet.se wrote: > >I'm not sure, but you cantry command hostname, perhaps it can change the > >host name. Frankly, I doubt it. Machine/Host name is something > >fundamental to that particular instance of Digital UNIX and I don't > >think you can change it easily. With the expertize I have I could try > >it, but I wouldn't guarantee success. > > > >The cleanest way is to re-install, I'm afraid. > > > > how about the netsetup command? All you'd need to do is restart network > services on the machine. Actually, it's not too hard. Have a second DNS A record added for the new name Change the reverse (PTR) record changed to the new name. /usr/sbin/netsetup and /usr/sbin/mailsetup If you are using NIS, you will probably also have to do a ypsetup. That should do most everything. Reboot the system and you should be there. Once everyone knows about the change (if anyone cares), have the old A record deleted from the DNS zone file. Viola! I last did this about 6 months ago, so I may have missed something, but I don't think so. -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest Orlando Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634