Programming/기초

[프로그래밍] hosts 파일이란?

MOONCO 2022. 6. 3. 17:26

hosts 파일에 도메인을 저장해 놓으면,

DNS가 없더라도, 페이지에 접속할 수 있다.

##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1	localhost
255.255.255.255	broadcasthost
::1             localhost
# Added by Docker Desktop
# To allow the same kube context to work on the host and the container:
127.0.0.1 kubernetes.docker.internal
# End of section
반응형