(해석 또는 이해가 잘못된 부분이 있다면 댓글로 편하게 알려주세요.)
Browsers resolve request URIs differently, depending on whether or not a proxy is present. Without a proxy, the browser takes the URI you type in and tries to find a corresponding IP address. If the hostname is found, the browser tries the corresponding IP addresses until it gets a successful connection.
브라우저는 프록시의 존재 여부에 따라 요청 URI를 다르게 해결합니다.
프록시가 없는 상황에서 브라우저는 사용자가 입력한 URI를 가져와 일치하는 IP 주소를 찾으려고 시도합니다.
브라우저는 호스트명이 발견되면 성공적인 연결을 얻게 될 때까지 일치하는 IP 주소로 연결을 시도합니다.
But if the host isn’t found, many browsers attempt to provide some automatic “expansion” of hostnames, in case you typed in a “shorthand” abbreviation of the host (refer back to “Expandomatic URLs” in Chapter 2):*
• Many browsers attempt adding a “www.” prefix and a “.com” suffix, incase you just entered the middle piece of a common web site name (e.g., to let people enter “yahoo” instead of “www.yahoo.com”).
• Some browsers even pass your unresolvable URI to a third-party site, which attempts to correct spelling mistakes and suggest URIs you may have intended.
일부 브라우저는 3rd-party 사이트로 해결할 수 없는 URI를 전달하기도 합니다.
이때 스펠링 오류를 바로잡고 사용자가 의도한 URI를 추측하려고 시도합니다.
• In addition, the DNS configuration on most systems allows you to enter just the prefix of the hostname, and the DNS automatically searches the domain. If you are in the domain “oreilly.com” and type in the hostname “host7,” the DNS automatically attempts to match “host7.oreilly.com”. It’s not a complete, valid hostname.
나아가 대부분의 시스템의 DNS 구성은 사용자가 호스트명의 접두사만 입력해도 DNS가 자동으로 도메인을 검색할 수 있게 합니다.
만약 "oreilly.com" 도메인에 있는 사용자가 호스트명을 "host7"로 입력하면, DNS는 자동으로 "host7.oreilly.com"을 매칭하려 시도합니다.
이것은 완전하고 유효한 호스트명이 아닙니다.
Figure 6-16 shows an example of browser hostname auto-expansion without a proxy. In steps 2a–3c, the browser looks up variations of the hostname until a valid hostname is found.
Figure 6-16은 프록시 없이 브라우저 호스트명을 자동 확장하는 기능의 예시를 보여줍니다.
2a-3c 과정에서 브라우저는 유효한 호스트명이 발견될 때까지 호스트명의 여러 변형들을 조회합니다.
Here’s what’s going on in this figure:
• In Step 1, the user types “oreilly” into the browser’s URI window. The browser uses “oreilly” as the hostname and assumes a default scheme of “http://”, a default port of “80”, and a default path of “/”.
• In Step 2a, the browser looks up host “oreilly.” This fails.
• In Step 3a, the browser auto-expands the hostname and asks the DNS to resolve “www.oreilly.com.” This is successful.
• The browser then successfully connects to www.oreilly.com.
* 도메인명 : 네트워크 디바이스 식별자 (ex. google.com)
* 호스트명 : 도메인의 하위 레벨에 위치하는 네트워크 디바이스 식별자 (ex. mail.google.com)
글을 읽다 보니 도메인 이름과 호스트 이름의 개념을 제대로 이해하지 못하고 있다는 사실을 알게 되었습니다. 도메인은 domain name(google)과 top level domain(.com)으로 이루어져 있습니다. 큰 범주에서의 domain name(google.com)은 네트워크 디바이스를 식별하는 이름입니다. host name(mail) 또한 비슷한 역할을 하지만 범위가 도메인 내로 한정됩니다. 즉 host name은 도메인의 하위 레벨에 위치하는 네트워크 디바이스 식별자입니다. 그리고 큰 범주에서의 host name(mail.google.com)은 IP 주소에 상응하는 개념입니다.
큰 범주에서의 domain과 작은 범주에서의 domain, 큰 범주에서의 host name과 작은 범주에서의 host name이 동일한 이름으로 혼용되고 있어서 의미를 이해하기가 더 어려웠던 것 같습니다.