[net.news] host name conflicts

mouse@mcgill-vision.UUCP (der Mouse) (08/15/85)

     Help!  Are we  the only site who wants to do  this?  We are running
4.2bsd  on  a  VAX-11/750.    We  want  our  hostname  (as  returned  by
gethostname()) to be different from our uucp name (as printed by 'uuname
-l').   We had  things this way for  a  while.  This was  OK; everything
worked.  But then  we started getting  news.  Surprise!   Rnews  expects
gethostname()  to return the machine's news hostname!   So when our news
feed runs uucp to us rnews refuses to work right.

     Is there any fix for this?  Has such been posted (remember, we just
started getting news)?

     Thanks much,
-- 
					der Mouse
				System hacker and general troublemaker
				CVaRL, McGill University

Hacker: One responsible for destroying /
Wizard: One responsible for recovering it afterward

itkin@luke.UUCP (Steven List) (08/21/85)

In article <115@mcgill-vision.UUCP> mouse@mcgill-vision.UUCP (der Mouse) writes:
>But then  we started getting  news.  Surprise!   Rnews  expects
>gethostname()  to return the machine's news hostname!   So when our news
>feed runs uucp to us rnews refuses to work right.

When you configure your news software, it asks if it should use gethostname
or uuname.  Just set the proper define in defs.h (actually, you can just
leave out the defines for UNAME and GHNAME - then it will default to
uuname -l).
-- 
***
*  Steven List @ Benetics Corporation, Mt. View, CA
*  Just part of the stock at "Uncle Bene's Farm"
*  {cdp,greipa,idi,oliveb,sun,tolerant}!bene!luke!itkin
***

rees@apollo.uucp (Jim Rees) (09/04/85)

    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.