create new tag
, view all tags
See BLT.

/etc/hosts: Text file for mapping hostnames to IP addresses

/etc/hosts is a simple text file of the form:

IP address name other name localhost foo.starshine.org foo

No comments are allowed. You can read more about /etc/hosts using the UNIX/Linux man pages: man 5 hosts (section five of the man pages are for file formats) .

Most UNIX systems and configurations will read the /etc/hosts file before attempting to perform any other sort of lookup (DNS, NIS, LDAP, etc). However this can be subject to the settings in the /etc/nsswitch.conf file (and to the libraries against which system and other programs are linked).


  • () JimDennis - 22 Oct 2003
  • If you edit this page: add your name here; move this to the next line; and if you've used a comment marker (your initials in parenthesis), include it before your WikiName.

Revision Comment

  • %DATE% —

Page Ratings

Topic revision: r1 - 2003-10-22 - JimDennis
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by PerlCopyright 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding WikiLearn? WebBottomBar">Send feedback
See TWiki's New Look