Yes this is fine. Your NIS domain doesn't have to be (and many people say it shouldn't be) the same as your Internet domain. A Googlke search on configuring NIS should give you plenty of resources. You may want to consider using LDAP instead if you're not on a totally trusted and firewalled network.
|