Tip

Unix's critical networking files

 

Unix's critical networking files
Barrie Sosinsky

Unix has ten critical networking files that store the settings necessary for proper configuration and connection. If users are having trouble connecting to your network or if their browsers aren't functioning correctly, make sure to check the values in these files first to make sure that they are correct. Knowing the basic files to check, and the proper values that should be in those files, can save a lot of time when something isn't working correctly.


The files and their necessary settings are:

  • /etc/defaultrouter = hostname
  • /etc/hostname.hme0 = hostname
  • /etc/hosts = <ipaddress> + hostname + loghost
  • /etc/nsswitch.conf = must reflect "hosts: files dns"
  • /etc/netmasks = <your network number> + <netmask> (see example in file)
  • /etc/nodename = hostname
  • /etc/resolv.conf
  • search <your_domain.com>
  • namesrever <primary_nameserver>
  • nameserver <secondary_nameserver>
  • /etc/net/ticots/hosts = hostname
  • /etc/net/ticotsord/hosts = hostname

Fill in the various values with the names that you have assigned for your network.

And if users are having trouble connecting to your network or if their browsers aren't functioning correctly, make sure to check the values in these files first to make sure that they are correct. Knowing the basic files to check, and the proper values

    Requires Free Membership to View

that should be in those files, can save a lot of time when something isn't working correctly.

So it's a good idea to make yourself a small "cheat sheet" with the appropriate values on it, until you have them committed to memory. That can save your looking confused and doing some head scratching when there's a problem that has to be solved quickly.


Barrie Sosinsky (barries@killerapps.com)is president of consulting company Sosinsky and Associates (Medfield MA). He has written extensively on a variety of computer topics. His company specializes in custom software (database and Web related), training and technical documentation.


This was first published in April 2002

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.