Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 Apollo 5/13/85; site apollo.uucp Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!decvax!wanginst!apollo!rees From: rees@apollo.uucp (Jim Rees) Newsgroups: net.news Subject: Re: host name conflicts (help!) Message-ID: <28bd2760.1de6@apollo.uucp> Date: Wed, 4-Sep-85 13:52:46 EDT Article-I.D.: apollo.28bd2760.1de6 Posted: Wed Sep 4 13:52:46 1985 Date-Received: Fri, 6-Sep-85 03:16:18 EDT References: <115@mcgill-vision.UUCP> Organization: Apollo Computer, Chelmsford, Mass. Lines: 11 We want our hostname (as returned by gethostname()) to be different from our uucp name (as printed by 'uuname -l'). We have the same problem here, where each of our 1000 local nodes has its own gethostname() name, but the outside world knows us as just plain "apollo". I fixed it by using sys5 uname() instead of gethostname(). On our system, uname() returns the "outside" name. The #defines in defs.h make this easy to do.