차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 양쪽 이전 판이전 판다음 판 | 이전 판 | ||
| tech:etc_hosts [2022/11/24 14:20] – 172.70.233.51 | tech:etc_hosts [2022/11/24 14:38] (현재) – 141.101.86.42 | ||
|---|---|---|---|
| 줄 4: | 줄 4: | ||
| 리눅스에서 호스트명을 IP로 변환할 때 참조 하는 파일. [[tech: | 리눅스에서 호스트명을 IP로 변환할 때 참조 하는 파일. [[tech: | ||
| + | 오래전에 | ||
| + | 인터넷 없이 자체 DNS 없이 내부망에 여러 서버들을 사용할 때 IP 주소를 외우기 힘들기 때문에 서버들에 이름을 붙여서 자신의 hosts 파일에 등록 해두고 많이 사용을 했었다. | ||
| < | < | ||
| 줄 20: | 줄 22: | ||
| 윈도우 호스트 파일의 저장 위치 | 윈도우 호스트 파일의 저장 위치 | ||
| - | c\windows\system32\drivers\etc\hosts | + | c:\windows\system32\drivers\etc\hosts |
| + | |||
| + | < | ||
| + | # 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 | ||
| + | </ | ||
| + | |||