Home > Articles > Networking

Solaris Naming Services Architecture

Close Window

Tom BialaskiMichael Haines

Learn more…

Sorry, this author hasn't written any articles.

Sorry, this author doesn't have anything for sale.

Sorry, this author hasn't posted any blogs.

NIS and Files Coexistence

To solve the problem of providing a centrally administered naming service while maintaining some local control, Sun's first implementation of NIS searched the local files before the NIS naming service was consulted. A special character was inserted into the text files to tell the operating system when to start searching the NIS maps. Any line beginning with a "+" character was the signal to contact NIS. For example, the /etc/host file would look like this:

127.0.0.1 localhost
129.148.181.130 tiger
129.154.86.22 galaxy
+

In this example, the /etc/hosts file would be searched for the specified host. If the host specified is not tiger or galaxy, then the NIS host map is searched. If the host name does not appear in the NIS map either, an error is returned.

NOTE

The "+" character only has an effect when the Solaris 1 operating environment is running. It will have no effect if the Solaris 2 or later operating environment is running except when run in the Solaris 1 compatibility mode.

  • Share ThisShare This
  • Your Account

Discussions

Make a New Comment

You must log in in order to post a comment.

Related Resources

Jennifer  BortelWin FREE iPhone Developer Books and Videos- Introducing @InformIT Giveaways
By Jennifer Bortel on February 5, 2010 No Comments

Apples’s recent iPad announcement made our hearts flutter so we couldn’t resist making an announcement of our own!

Today marks the first ever @InformIT Giveaway!

We’ll regularly post a video like this one profiling spectacular prizes we’re giving away—from books and videos to T-shirts and other exciting stuff. Check out the video below to see the giveaways for today, and then scroll down for more prize details and instructions on how to win them!

So Far So Good
By John Traenkenschuh on February 2, 2010 No Comments

So far, Win 7 is making a thoroughbred of what has been a plough mule laptop

Dustin Sullivan"Every OSX developer should have this book on their desk."
By Dustin Sullivan on February 1, 2010 No Comments

That was the sentence Mike Riley ended his recent Dr Dobb's CodeTalk review of Cocoa Programming Developer's Handbook with.

See All Related Blogs

Informit Network