차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판이전 판
다음 판
이전 판
tech:etc_hosts [2022/11/24 14:19] 172.70.233.27tech:etc_hosts [2022/11/24 14:38] (현재) 141.101.86.42
줄 4: 줄 4:
 리눅스에서 호스트명을 IP로 변환할 때 참조 하는 파일. [[tech:dns|DNS]]보다 윗 순위이다. 리눅스에서 호스트명을 IP로 변환할 때 참조 하는 파일. [[tech:dns|DNS]]보다 윗 순위이다.
  
 +오래전에
 +인터넷 없이 자체 DNS 없이 내부망에 여러 서버들을 사용할 때 IP 주소를 외우기 힘들기 때문에 서버들에 이름을 붙여서 자신의 hosts 파일에 등록 해두고 많이 사용을 했었다.
  
 <file> <file>
줄 14: 줄 16:
 # --- END PVE --- # --- END PVE ---
 </file> </file>
 +
 +
 +
 +=====윈도우=====
 +
 +윈도우 호스트 파일의 저장 위치
 +  c:\windows\system32\drivers\etc\hosts
 +
 +<file>
 +# 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, comments (such as these) may be inserted on individual
 +# lines or following the machine name denoted by a '#' symbol.
 +#
 +# For example:
 +#
 +#      102.54.94.97     rhino.acme.com          # source server
 +#       38.25.63.10     x.acme.com              # x client host
 +
 +# localhost name resolution is handled within DNS itself.
 +# 127.0.0.1       localhost
 +# ::1             localhost
 +</file>
 +