Print

Print


"Maarten Litmaath, CERN" <[log in to unmask]> writes:

> The "host" command, however, will directly contact the DNS, while Globus will
> call gethostbyname()/gethostbyaddr(), which will first consult /etc/hosts and
> (if configured) YP/NIS.

A useful tool in these cases is "getent".

  getent hosts www.cern.ch

will resolve www.cern.ch using the system's resolver, i.e. by doing
gethostbyname().

--
Leif Nixon                       -            Systems expert
------------------------------------------------------------
National Supercomputer Centre    -      Linkoping University
------------------------------------------------------------