Description of Problem:
ypmatch does not work properly for checking services. Even though the /var/yp/nicknames is setup to to lookup byname and not bynumber.
asdfjkl$ ypmatch nntp hosts
Can't match key nntp in map hosts.byname. Reason: No such key in map
asdfjkl$ grep services /etc/nsswitch.conf /var/yp/nicknames
/etc/nsswitch.conf:services: nis files
Steps to Reproduce:
1. bind to a yp server
2. make sure you /etc/nsswitch.conf and /var/yp/nicknames looks like mine.
3. ypmatch <servicename> services
Fix ypmatch code to do correct lookups for byname, not just bynumber.
Fixed in ypserv 2.2-5.