차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 다음 판 | 이전 판 | ||
| tech:etc_hosts [2022/11/24 14:18] – 만듦 172.70.233.26 | tech:etc_hosts [2022/11/24 14:38] (현재) – 141.101.86.42 | ||
|---|---|---|---|
| 줄 4: | 줄 4: | ||
| 리눅스에서 호스트명을 IP로 변환할 때 참조 하는 파일. [[tech: | 리눅스에서 호스트명을 IP로 변환할 때 참조 하는 파일. [[tech: | ||
| + | 오래전에 | ||
| + | 인터넷 없이 자체 DNS 없이 내부망에 여러 서버들을 사용할 때 IP 주소를 외우기 힘들기 때문에 서버들에 이름을 붙여서 자신의 hosts 파일에 등록 해두고 많이 사용을 했었다. | ||
| < | < | ||
| 줄 10: | 줄 12: | ||
| ff02:: | ff02:: | ||
| ff02:: | ff02:: | ||
| - | - --- BEGIN PVE --- | + | # --- BEGIN PVE --- |
| 192.168.0.10 master.hub master | 192.168.0.10 master.hub master | ||
| - | - --- END PVE --- | + | # --- END PVE --- |
| </ | </ | ||
| + | |||
| + | |||
| + | |||
| + | =====윈도우===== | ||
| + | |||
| + | 윈도우 호스트 파일의 저장 위치 | ||
| + | c: | ||
| + | |||
| + | < | ||
| + | # Copyright (c) 1993-2009 Microsoft Corp. | ||
| + | # | ||
| + | # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. | ||
| + | # | ||
| + | # This file contains the mappings of IP addresses to host names. Each | ||
| + | # entry should be kept on an individual line. The IP address should | ||
| + | # be placed in the first column followed by the corresponding host name. | ||
| + | # The IP address and the host name should be separated by at least one | ||
| + | # space. | ||
| + | # | ||
| + | # Additionally, | ||
| + | # lines or following the machine name denoted by a '#' | ||
| + | # | ||
| + | # For example: | ||
| + | # | ||
| + | # 102.54.94.97 | ||
| + | # | ||
| + | |||
| + | # localhost name resolution is handled within DNS itself. | ||
| + | # | ||
| + | # ::1 | ||
| + | </ | ||
| + | |||