[comp.sys.apollo] Name translation problems

murray@motto.UUCP (Murray S. Kucherawy) (03/19/91)

We're running an Apollo workstation connected to an Ethernet, upon which
also resides a number of other machines, including Macs and a MicroVAX,
namely this machine.

I declared the Apollo in the uVAX /etc/hosts and the uVAX in the Apollo
/etc/hosts, and rebuilt the hosts database on the Apollo.  It now recognizes
the name "motto" for telnet, rlogin, ftp, etc., but for some reason
always translates the corresponding IP address to "0.0.0.0" which
obviously does not produce the correct result.  Therefore,
"telnet 129.0.199.199" works, but "telnet motto" does not.  The same goes
for rlogin, rsh, ftp, and sendmail jobs.

Requests to the Apollo from the uVAX work fine.  Also, rlogins to the
Apollo from the uVAX show up as coming from 129.0.199.199 instead of from
"motto".

Can anyone help?

=============================== Murray S. Kucherawy ==========================
Motorola Canada, Ltd.     Communications Division, Toronto      [on work term]
University of Waterloo, Ontario, Canada               2B Math/Computer Science
Internet: murray@motto.UUCP (work)       mskucherawy@watmath.UWaterloo.ca (UW) 
UUCP:     uunet!utai!lsuc!motto!murray   uunet!watmath!mskucherawy

thompson@PAN.SSEC.HONEYWELL.COM (John Thompson) (03/20/91)

> I declared the Apollo in the uVAX /etc/hosts and the uVAX in the Apollo
> /etc/hosts, and rebuilt the hosts database on the Apollo.  It now recognizes
> the name "motto" for telnet, rlogin, ftp, etc., but for some reason
> always translates the corresponding IP address to "0.0.0.0" which
> obviously does not produce the correct result.  Therefore,
> "telnet 129.0.199.199" works, but "telnet motto" does not.  The same goes
> for rlogin, rsh, ftp, and sendmail jobs.
When you say you rebuilt the host tables -- did you use a utility to
translate from the NIC format to the hosttable format;  did you hand-build
them;  did you use nshost?  Basically, you should start by checking the
/etc/hosts file to make sure your build (however done) worked.  There
should be a line "129.0.199.199   motto  aliases-for-motto" present.  If
there isn't, then it didn't build right.

Another problem might be the presense of /etc/hosts.dir and /etc/hosts.pag.
These files are hash-files for quick lookup.  If they're present, you can
just remove them, and it'll use the /etc/hosts file only.  You can
rebuild the hashed databases with /etc/mkhosts.

If that isn't it, try doing "/etc/nmconfig -l" to list the naming
resolution protocols.  The "hosts type" is the entry to be concerned
with.  If it's hostent_ascii, then you're using the host tables at /etc/hosts
(or /etc/hosts.dir / .pag).  If it is "hostent_bind, you're using the 
name server (/etc/named process and /etc/resolv.conf for who to use).
I wouldn't expect it to translate to 0.0.0.0, but who knows?

-- jt --
John Thompson
Honeywell, SSEC
Plymouth, MN  55441
thompson@pan.ssec.honeywell.com

Me?  Represent Honeywell?  You've GOT to be kidding!!!