| 1 | <!-- The content of this document is licensed under the CC-BY-SA license --> |
1 | <!-- The content of this document is licensed under the CC-BY-SA license --> |
| 2 | <!-- See http://creativecommons.org/licenses/by-sa/1.0 --> |
2 | <!-- See http://creativecommons.org/licenses/by-sa/1.0 --> |
| 3 | |
3 | |
| 4 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-config.xml,v 1.13 2003/12/07 12:15:17 swift Exp $ --> |
4 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-config.xml,v 1.14 2003/12/20 20:32:02 swift Exp $ --> |
| 5 | |
5 | |
| 6 | <sections> |
6 | <sections> |
| 7 | <section> |
7 | <section> |
| 8 | <title>Timezone</title> |
8 | <title>Timezone</title> |
| 9 | <body> |
9 | <body> |
| … | |
… | |
| 327 | <p> |
327 | <p> |
| 328 | You now need to inform Linux about your network. This is defined in |
328 | You now need to inform Linux about your network. This is defined in |
| 329 | <path>/etc/hosts</path> and helps in resolving hostnames to IP addresses |
329 | <path>/etc/hosts</path> and helps in resolving hostnames to IP addresses |
| 330 | for hosts that aren't resolved by your nameserver. For instance, if your |
330 | for hosts that aren't resolved by your nameserver. For instance, if your |
| 331 | internal network consists of three PCs called <c>jenny</c> (192.168.0.5), |
331 | internal network consists of three PCs called <c>jenny</c> (192.168.0.5), |
| 332 | <c>benny</c> (192.168.0.6) and <c>tux</c> (this system) you would |
332 | <c>benny</c> (192.168.0.6) and <c>tux</c> (192.168.0.7 - this system) you would |
| 333 | open <path>/etc/hosts</path> and fill in the values: |
333 | open <path>/etc/hosts</path> and fill in the values: |
| 334 | </p> |
334 | </p> |
| 335 | |
335 | |
| 336 | <pre caption="Opening /etc/hosts"> |
336 | <pre caption="Opening /etc/hosts"> |
| 337 | # <i>nano -w /etc/hosts</i> |
337 | # <i>nano -w /etc/hosts</i> |
| 338 | </pre> |
338 | </pre> |
| 339 | |
339 | |
| 340 | <pre caption="Filling in the networking information"> |
340 | <pre caption="Filling in the networking information"> |
| 341 | 127.0.0.1 tux.homenetwork localhost |
341 | 127.0.0.1 localhost |
| 342 | 192.168.0.5 jenny |
342 | 192.168.0.5 jenny |
| 343 | 192.168.0.56 benny |
343 | 192.168.0.6 benny |
|
|
344 | 192.168.0.7 tux |
| 344 | </pre> |
345 | </pre> |
| 345 | |
346 | |
| 346 | <p> |
347 | <p> |
| 347 | If your system is the only system (or the nameservers handle all name |
348 | If your system is the only system (or the nameservers handle all name |
| 348 | resolution) a single line is sufficient: |
349 | resolution) a single line is sufficient: |