Global::config_nis_client - Setup a nisclient
Add Global::config_nisclient, NIS_SERVER variable and NIS_SERVERS_IP variable to your custom.conf NIS_DOMAINNAME can also be defined
It does not need a reboot but it is a good idea to give this module a low number so correct NIS-servers will be setup as early as possible. It writes the hostnames of the NIS-servers to the file /var/yp/binding/``domainname''/ypservers, and then it adds them to /etc/hosts.
In your custom.conf:
[ set NIS_DOMAINNAME yourdomain.com ] set NIS_SERVERS nis1.yourdomain.com:nis2.yourdomain.com hash NIS_SERVERS_IP { nis1.yourdomain.com 192.168.1.2 nis2.yourdomain.com 192.168.3.5 } 21 Global::config_nis_client
Support for different NIS-servers on different NIS-domains
Solaris
FreeBSD
Linux(RedHat)
Irix
Copyright (c) 2001 Ericsson Erisoft AB. All rights reserved. Copyright (c) 2002 Joacim Häggmark. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Joacim Häggmark <Joacim.Haggmark@epl.ericsson.se>