We relaunched the TWiki.org project with an expanded TWiki charter, and we invite you to participate! The TWiki.org Code of Conduct agreement took effect on 27 Oct 2008. We ask existing twiki.org users to opt-in. You need to opt-in to participate in the Blog, Codev, Plugins and TWiki webs. -- PeterThoeny - 27 Oct 2008
Tags:
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
127.0.0.1 localhost
216.240.40.165 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).

Contributors

  • () 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

WebForm
PageStatus Believed Factual?
Topic revision: r1 - 22 Oct 2003 - 06:38:16 - JimDennis
 
TWIKI.NET
Copyright © 1999-2008 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
See TWiki's New Look