3) /etc/hosts
(권장) 파일 소유자 root, 권한 644 이하
The `/etc/hosts`
file : is a simple text file that maps hostnames to IP addresses.
- It is used to resolve hostnames to IP addresses on a local system, without the need for external DNS (Domain Name System) lookups.
The `/etc/hosts`
file contains one line for each hostname-to-IP address mapping, with the fields being separated by white space.
The fields in the `/etc/hosts`
file are as follows:
필자가 학습 참고용으로 그냥 설치해둔 VM다.
(사실 이런 고도의 기술력으로 학생 수준이 아그냥 설치해봤얘얘~ 느낌으로 가볍게 설치하고 실습까지 해볼 수 있는 세상이 된게 경이롭고........ 감사할 뿐이다.......ㅜㅜ 옛날 분들은 대체...)
아직은 루프백 주소 설정만 있고 딱히 [ip주소] -> 어디 도메인으로 가라. 식으로 정해진건 없다.
* 루프백 주소: 자기 자신을 가리키는 주소. 127.0.0.1 C 클래스를 사용.
네트워크 테스트 용도로 보통 사용.
네트워크 테스트 용도로 보통 사용.
In this example, the IP address is “127.0.0.1” and the hostname is “localhost”.
This entry maps the hostname “localhost” to the IP address “127.0.0.1”,
which is the loopback address for the local system.
This entry maps the hostname “localhost” to the IP address “127.0.0.1”,
which is the loopback address for the local system.
출처: https://tecadmin.net/what-is-etc-hosts-file/
Comments
Post a Comment