Computer Science AS OCR
-
1-1-structure-and-function-of-the-processor as5 主题
-
1-2-types-of-processor as3 主题
-
1-3-input-output-and-storage as2 主题
-
2-1-systems-software as8 主题
-
2-3-software-development as5 主题
-
2-4-types-of-programming-language as4 主题
-
3-1-compression-encryption-and-hashing as3 主题
-
3-2-databases as3 主题
-
3-3-networks as8 主题
-
3-4-web-technologies as13 主题
-
html as
-
css as
-
css-styling as
-
javascript as
-
variables-and-constants-in-javascript as
-
outputs-in-javascript as
-
selection-in-javascript- as
-
for-loops-in-javascript- as
-
while-loops-in-javascript- as
-
strings-in-javascript- as
-
operators-in-javascript- as
-
nested-statements-in-javascript as
-
functions-and-procedures-in-javascript as
-
html as
-
4-1-data-types as8 主题
-
4-2-data-structures as4 主题
-
4-3-boolean-algebra as1 主题
-
5-1-computing-related-legislation as4 主题
-
5-2-moral-and-ethical-issues as9 主题
-
6-1-thinking-abstractly as3 主题
-
6-2-thinking-ahead as1 主题
-
6-3-thinking-procedurally as3 主题
-
6-4-thinking-logically as2 主题
-
6-5-thinking-concurrently as2 主题
-
7-1-programming-techniques as9 主题
-
8-1-standard-algorithms-and-big-o-notation as8 主题
domain-name-system-dns as
Exam code:H046
Domain Name System (DNS)
What is the domain name system?
-
The Domain Name System (DNS for short) can be thought of as the Internet’s equivalent to a phone book
-
It is essentially a directory of domain names and is used to translate human-readable domain names to the numeric IP addresses that computers use
-
When you type a URL into your browser, the DNS translates the domain name into its associated IP address so your computer can connect to the server hosting the website
-
Without DNS, we would have to remember the IP address of every site we want to visit
-
When a domain is newly registered, or a server changes its IP address, the DNS record for that domain needs to be updated in what’s known as DNS propagation
Components of DNS
DNS resolver
-
The first stop in the DNS lookup process, usually provided by your internet service provider (ISP) or a third-party service like Google DNS or OpenDNS
Root servers
-
The resolver asks a DNS root server to find the top-level domain (like .com, .org, .edu)
TLD (Top-Level Domain) servers
-
The root server directs the resolver to a TLD server, which stores the information of the domain
Authoritative DNS servers
-
The TLD server then responds with the IP address of the domain’s authoritative DNS server, which the resolver asks for the IP of the domain
Benefits of DNS
-
DNS allows us to use easily remembered domain names instead of hard-to-remember IP addresses
-
DNS servers handle the mapping between domain names and IP addresses, relieving end users and system administrators from the task
What happens when you type a URL into a web browser?
-
URL Entry: The user enters the URL of a website into the web browser
-
The computer checks its local cache to see if it contains the IP address of the URL from a previous request
-
DNS Query: The web browser sends a query to a DNS server (usually hosted by your ISP) to translate the URL (domain name) into an IP address
-
DNS Resolver: The DNS resolver checks its cache to see if it has the IP address for the requested domain. If not, it sends the request to the DNS root servers
-
Root Server Query: The root server directs the resolver to a Top-Level Domain (TLD) server (like .com, .org) based on the extension of the URL
-
TLD Server Query: The TLD server then provides the resolver with the IP address of the domain’s authoritative DNS server
-
Authoritative Server Query: The resolver queries the authoritative DNS server for the IP address of the domain
-
Retrieve IP Address: The authoritative DNS server responds with the IP address for the requested domain
-
Request the Web Page: The web browser sends an HTTP or HTTPS request to the IP address it received
-
Server Response: The server at the given IP address processes the request and sends back the data for the web page (HTML, CSS, JavaScript, etc.)
-
Render the Web Page: The web browser renders the received data into the web page that you see
-
DNS (Domain Name System) translates human-friendly URLs into computer-friendly IP addresses
-
HTTP/HTTPS are protocols defining how messages are formatted and transmitted on the World Wide Web
-
The entire process happens in a matter of milliseconds, making the web user-friendly and efficient
Worked Example
Shreya is a web developer who creates web pages for a variety of different companies.
In order to view a website, a user enters a website address into their web browser such as http://www.ocr.org.uk. The website will then be displayed onto the user’s screen.
Explain how the Domain Name System (DNS) plays a role in websites being loaded.
4 marks
How to answer this question:
-
Since this question is worth 4 marks you need to explain how the DNS system works rather than just state what it does
Answer:
Example answer that would get full marks:
The DNS is a distributed system that finds the IP address of a particular URL.
The first thing that happens is that the URL is sent to a computer called a DNS resolver.
This checks its cache to see if it has already looked up this URL. If it hasn’t it will then ask a top-level domain name server (TLD), which again checks its cache to see if it has done this lookup before.
If not it will then continue on and ask the authoritative name server for that domain.
Responses