SUMMARY: mount: ... RPC: unknown host

From: Michael Fuller (msf@daneel.rdt.monash.edu.au)
Date: Mon Feb 13 1995 - 21:58:31 CST


Original problem:
Mount failed to resolve a machine name that was present in /etc/hosts.
The system concerned had the resolv+ libraries installed, and was using
DNS for name resolution. It was also running as an NIS client.

Most responses noted that mount is statically linked and therefore
would only attempt to locate the machine in the NIS hosts maps.

The solution therefore is either to ensure that the machine is present
in the NIS hosts map, or to replace mount with a dynamically linked
version that would use the updated libc.so.

Useful responses regarding /etc/hosts and the NIS hosts map:
From: Lars Viklund <lvi@ida.liu.se>
> Yes, but /etc/hosts isn't used if NIS is running.
> Do you have the machine in the hosts NIS map?

From: jblows@csaadel.adl.csa.oz (Jeff Blows)
> I think this is the key. You are using NIS. make sure that the host is in
> the NIS maps. use "ypcat hosts" to do this. If you are on the NIS server make
> sure you have done a make in /var/yp.

Pointers to dynamically-linked versions of mount:
From: Robert Montjoy <Rob_Montjoy@ece.uc.edu>
> You will need to get a non-statically linked mount command.
> One is available from thor.ece.uc.edu in ~ft/pub/sun-faq/Source

From: brossard@siisun.epfl.ch (Alain Brossard EPFL-SIC/SII)
> mount (and rcp) are staticaly linked, hence your changes to libc.so are
> not taken into account. I've provided, for years, a version of those
> two programs which are dynamically linked from 4.1.2 sources. They work
> for 4.1.2, 4.1.3 and 4.1.3_U1, not tested for 4.1.4.
>
> sunline.epfl.ch:/pub/rcp-mount.dynamic.tar.Z

The following also contributed advice:
From: Richard Bainter (Pug) <pug@arlut.utexas.edu>
From: Alan Clegg <abc@Interpath.net>
From: Woobin Lee <woobin@fizzle.ee.washington.edu>

Thanks to all who responded; your help is much appreciated.

Michael Fuller
_______________________________________________________________________________
Systems Administrator, msf@rdt.monash.edu.au
Department of Robotics and Digital Technology,
Clayton Campus,
Monash University,
Clayton 3168, Ph: +61 3 905 3218
Victoria, Australia. Fax: +61 3 905 3574



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:10:16 CDT