Re: NIS question!

From: Martin Paul (map_at_par.univie.ac.at)
Date: 07/09/04


Date: 09 Jul 2004 11:08:34 GMT

UNIX admin <tripivceta@hotmail.com> wrote:
> When I do `ypcat hosts` I get a list of all the hostnames... except that the
> entries are repeated several times in the output, like so:
>
> 1.1.1.1 hostname1.us.domain.net hostname1.us.domain.com
> 1.1.1.1 hostname1.us.domain.net hostname1.us.domain.com

The NIS hosts map is indexed with the hostname as key (run
`ypcat -k hosts` to get the key to show up in the list, too).
Therefore, you get one entry for every hostname/host alias
listed in the hosts file.

mp.

-- 
Systems Administrator | Institute for Software Science | Univ. of Vienna


Relevant Pages