Unix and Linux Discussions Tagged with hosts |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
2 |
9,889 |
UNIX for Beginners Questions & Answers |
|
|
|
8 |
11,396 |
Shell Programming and Scripting |
|
|
|
0 |
12,563 |
Shell Programming and Scripting |
|
|
|
2 |
2,292 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
2,775 |
Shell Programming and Scripting |
|
|
|
2 |
7,020 |
IP Networking |
|
|
|
2 |
6,037 |
Linux |
|
|
|
0 |
4,071 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
4,027 |
Red Hat |
|
|
|
2 |
2,596 |
Ubuntu |
|
|
|
4 |
4,374 |
UNIX for Advanced & Expert Users |
|
|
|
4 |
17,268 |
AIX |
|
|
|
9 |
13,832 |
IP Networking |
|
|
|
3 |
5,884 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
1,090 |
Software Releases - RSS News |
|
|
|
4 |
10,876 |
AIX |
|
|
|
0 |
1,419 |
Complex Event Processing RSS News |
|
|
|
2 |
2,214 |
Solaris |
|
|
|
5 |
4,335 |
Shell Programming and Scripting |
|
|
|
5 |
6,665 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
17,078 |
Shell Programming and Scripting |
|
|
|
4 |
7,574 |
Solaris |
|
|
|
3 |
5,995 |
UNIX for Dummies Questions & Answers |
|
|
|
15 |
43,089 |
IP Networking |
|
|
|
1 |
8,324 |
Solaris |
|
|
|
0 |
3,335 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
6,747 |
Solaris |
|
|
|
2 |
5,091 |
Linux |
|
|
|
1 |
5,545 |
Shell Programming and Scripting |
|
|
|
6 |
4,658 |
UNIX for Dummies Questions & Answers |
|
|
|
7 |
5,965 |
IP Networking |
|
|
|
3 |
3,189 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
2,880 |
UNIX for Dummies Questions & Answers |
|
|
|
13 |
24,080 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
20,441 |
IP Networking |
|
|
|
3 |
6,571 |
IP Networking |
|
|
|
2 |
2,898 |
UNIX for Dummies Questions & Answers |
|
|
|
8 |
5,924 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,741 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
3,898 |
UNIX for Dummies Questions & Answers |
HOSTS(5) File Formats Manual HOSTS(5)
NAME
hosts - hostname to IP address database
SYNOPSIS
/etc/hosts
DESCRIPTION
The hosts database lists the IP addresses and the hostnames that translate to these IP addresses. It is used by nonamed(8) in a network
without name servers. A simple /etc/hosts may look like this:
127.0.0.1 localhost
192.9.200.1 darask
192.9.200.2 burask
The localhost entry lists a special address that refers to the local host itself (a kind of /dev/tty for hosts.) You should only list it
if nonamed needs it! The other entries are actual machines. The file may contain comments marked with '#'.
You can have aliases (more hostnames on the same line), but it is not recommended, because nonamed can't present them to the system as
CNAME records. An often seen form like
192.9.200.1 darask.home.cs.vu.nl darask
is harmless though, and has the small advantage that you can use the short name in /etc/ethers so rarpd can match it at boot time.
FILES
/etc/hosts Hosts database.
SEE ALSO
ethers(5), nonamed(8), rarpd(8), boot(8).
AUTHOR
Kees J. Bot (kjb@cs.vu.nl)
HOSTS(5)