생활코딩 - 네트워크 개념 잡기 (도메인, 네임서버, HTTPS)
    • 01
      도메인
    • 도메인이란?
      도메인의 검색과 구입
      호스트 설정
      포워딩 설정
    • 02
      네임서버
    • 네임서버란?
      hosts 파일
      집에서 웹서버 운영하기 (1/3)
      집에서 웹서버 운영하기 (2/3)
      집에서 웹서버 운영하기 (3/3)
    • 03
      HTTPS와 SSL 인증서
    • HTTPS와 SSL 인증서
      대칭키
      공개키
      SSL 인증서
      인증서 동작 방법
      SSL 통신 과정
      StarSSL 사용법 (1/2)
      StarSSL 사용법 (2/2)
      Apache2 SSL 적용
    hosts 파일
    undefined undefined
    hosts 파일

    브라우저가 도메인에 해당하는 IP를 찾는 순서

    1. local cache를 검색한다. 
    2. hosts 파일을 검색한다. 
    3. 도메인 네임서버을 검색한다.

    hosts 파일의 위치

    Operating SystemVersion(s)Location
    UnixUnix-likePOSIX /etc/hosts[2]
    Microsoft Windows3.1%Windir%\HOSTS
    9598/98SEMe%WinDir%\hosts[3]
    NT2000XP (x86 & x64),[4] 2003Vista7%SystemRoot%\system32\drivers\etc\hosts[5]
    Windows Mobile Registry key under \HKEY_LOCAL_MACHINE\Comm\Tcpip\Hosts
    Apple Macintosh9 and earlierSystem Folder: Preferences or System folder
    Mac OS X 10.0 – 10.1.5 [6](Added through NetInfo or niload)
    Mac OS X 10.2 and newer/private/etc/hosts [6] (or /etc/hosts, since /etc is a symbolic link to /private/etc)
    Novell NetWare SYS:etc\hosts
    OS/2 & eComStation "bootdrive":\mptn\etc\
    SymbianSymbian OS 6.1–9.0C:\system\data\hosts
    Symbian OS 9.1+C:\private\10000882\hosts
    MorphOSNetStackENVARC:sys/net/hosts
    AmigaOS4DEVS:Internet/hosts
    Android /system/etc/hosts (or /etc/hosts, since /etc is a symbolic link to /system/etc)
    iOSiOS 2.0 and newer/private/etc/hosts (or /etc/hosts, since /etc is a symbolic link to /private/etc)
    TOPS-20 <SYSTEM>HOSTS.TXT
    Plan 9 /lib/ndb/hosts

    참고 

    질문하기