리눅스에서 /etc/hosts 파일 설정 방법 기본

[root@localhost ~]# vi /etc/hosts

# Set hostname

192.168.45.3    sapehp8db01 sapehp8db01.test.net

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4

::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

 

루프백 주소 (Loopback Address)

127.0.0.1 주소는 루프백 주소로, 자기 자신을 가리키기 위해 예약된 IP 주소

IPv6에서는 ::1 사용

 

#리눅스 #hosts #설정 #DNS #루프백 #주소 #Loopback #Address

+ Recent posts