DNS, HTTP and the Client–Server Model – Grade 12 A/L ICT Notes 6.9

© 2026 schoolict.net (Ruwan Mangala Suraweera)

6.9 DNS, HTTP and the Client–Server ModelDNS, HTTP සහ සේවාදායක–සේවාලාභී

Grade 12 A/L ICT · Lesson 612 ශ්‍රේණිය A/L ICT · පාඩම 6

Prints all tabs in the language you are reading. Use “Save as PDF” in the print window to keep a copy.ඔබ කියවන භාෂාවෙන් සියලු tabs මුද්‍රණය වේ. පිටපතක් තියාගන්න print window එකේ “Save as PDF” තෝරන්න.
🎬Video coming soon in this language. Switch language to watch the other video.මේ භාෂාවෙන් වීඩියෝව ඉක්මනින් එනවා. අනෙක් වීඩියෝව බලන්න භාෂාව මාරු කරන්න.

In this videoමේ වීඩියෝවේ

  • DNS maps names to IPs.DNS.
  • Hierarchical domains and TLDs.ධුරාවලි/TLD.
  • HTTP GET is client→server.GET.
  • Client–server model.සේවාදායක–සේවාලාභී.
  • DNS + HTTP work together for the web.වෙබ් සඳහා දෙකම.
DNSDomainTLDHierarchical nameHTTPGET requestClient

Notesසටහන්

Syllabus 6.9. People prefer names to numbers. DNS maps hierarchical names to IPs. HTTP uses a client–server model (e.g. a simple GET request and response).විෂය නිර්දේශය 6.9. DNS නාම IP වලට; HTTP සේවාදායක–සේවාලාභී; සරල GET.

1. Why DNS?1. DNS ඇයි?

IPs are hard to remember. DNS gives human-friendly hierarchical names; each domain manages names under it; TLDs like .lk, .com sit near the top.DNS මිනිස් නම්; ධුරාවලිය; TLD.

2. HTTP and client–server2. HTTP සහ සේවාදායක–සේවාලාභී

A client (browser) sends an HTTP GET for a resource; a server responds with status and content. DNS and HTTP both illustrate client–server.සේවාලාභී GET යවයි; සේවාදායක පිළිතුරු දෙයි.

Client to DNS to HTTP serverBrowserDNSWeb servername to IPHTTP GETwww.example.lkto 203.0.113.10
Client uses DNS then HTTP GETClient DNS භාවිතා කර HTTP GET යවයි
💡 Example: resolve www.school.lk then GET /index.html.www.school.lk විසඳා GET /index.html.
🧮 Worked exampleවිසඳූ උදාහරණය Browser: DNS resolves name → TCP connect → HTTP GET /index.html → 200 OK + body.Browser: DNS → TCP → HTTP GET /index.html → 200 OK + body.
Client requests; server responds (client–server).Client ඉල්ලයි; server ප්‍රතිචාර දක්වයි.
🚀 Beyond the syllabus (2026 update)🚀 විෂය නිර්දේශයෙන් ඔබ්බට (2026 යාවත්කාලීනය) Not required for the exam – read for interest.විභාගයට අවශ්‍ය නැත – දැනුම සඳහා කියවන්න. DoH/DoT encrypt DNS; HTTP/3 uses QUIC – interest only.DoH/HTTP3 – දැනුමට පමණි.

Key Wordsප්‍රධාන පද

DNSDNS
Maps names to IP addresses.නාම IP වලට.
Domainවසම
Managed name subtree.කළමනාකරණය කරන නාම උපගස.
TLDTLD
Top-level domain (.lk, .com).ඉහළම මට්ටමේ වසම.
Hierarchical nameධුරාවලි නාමය
Name split by dots into levels.තිත් වලින් මට්ටම්.
HTTPHTTP
Web application protocol.වෙබ් යෙදුම් ප්‍රොටොකෝලය.
GET requestGET ඉල්ලීම
Ask server for a resource.සම්පතක් ඉල්ලයි.
Clientසේවාලාභී
Requests a service.සේවාවක් ඉල්ලයි.
Serverසේවාදායකය
Provides a service.සේවාවක් සපයයි.
Resolverවිසඳුම්කරු
Client-side DNS lookup helper.DNS සෙවුම් උදව්.
URLURL
Web resource locator.වෙබ් සම්පත් ස්ථානය.
Responseප්‍රතිචාරය
Server reply (status + body).සේවාදායක පිළිතුර.
Host nameධාරක නාමය
Name of a machine in DNS.DNS හි යන්ත්‍ර නාමය.

Sample Q&Aආදර්ශ ප්‍රශ්න සහ පිළිතුරු

1Why DNS?DNS ඇයි?

Answerපිළිතුර: Human-friendly names instead of raw IPs.IP වෙනුවට නම්.

2Hierarchical DNS means?ධුරාවලි DNS?

Answerපිළිතුර: Names managed in a tree of domains.වසම් ගසක්.

3What is a TLD?TLD?

Answerපිළිතුර: Top-level domain such as .lk or .com..lk / .com.

4HTTP GET does what?GET?

Answerපිළිතුර: Requests a resource from a server.සම්පතක් ඉල්ලයි.

5Client–server?සේවාදායක–සේවාලාභී?

Answerපිළිතුර: Client requests; server responds.ඉල්ලීම/ප්‍රතිචාරය.

6DNS and HTTP both use?DNS සහ HTTP?

Answerපිළිතුර: Client–server pattern.සේවාදායක–සේවාලාභී.

MCQබහුවරණ ප්‍රශ්න

Choose the correct answer for each question.සෑම ප්‍රශ්නයකටම නිවැරදි පිළිතුර තෝරන්න.

Scoreලකුණු: 0 / 20

1DNS mapsDNS

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C

Name→IP.නාම→IP.

2A TLD isTLD

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A

Top domain.ඉහළම වසම.

3HTTP GET is sent byGET

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C

Client.සේවාලාභී.

4In client–serverසේවාදායක–සේවාලාභී

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B

Request/reply.ඉල්ලීම/පිළිතුර.

5Domains manageවසම්

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: E

Subtree names.උපගස් නාම.

6IPs are hard to remember so we useIP වෙනුවට

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C

Names.නාම.

7A simple web fetch needsවෙබ්

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D

DNS then HTTP.DNS පසු HTTP.

8Hierarchical meansධුරාවලි

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: E

Levels.මට්ටම්.

9Which term means: “Maps names to IP addresses”?“නාම IP වලට” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D

DNS – Maps names to IP addresses.DNS – නාම IP වලට.

10Which term means: “Managed name subtree”?“කළමනාකරණය කරන නාම උපගස” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B

Domain – Managed name subtree.වසම – කළමනාකරණය කරන නාම උපගස.

11Which term means: “Top-level domain (.lk, .com)”?“ඉහළම මට්ටමේ වසම” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A

TLD – Top-level domain (.lk, .com).TLD – ඉහළම මට්ටමේ වසම.

12Which term means: “Name split by dots into levels”?“තිත් වලින් මට්ටම්” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D

Hierarchical name – Name split by dots into levels.ධුරාවලි නාමය – තිත් වලින් මට්ටම්.

13Which term means: “Web application protocol”?“වෙබ් යෙදුම් ප්‍රොටොකෝලය” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: C

HTTP – Web application protocol.HTTP – වෙබ් යෙදුම් ප්‍රොටොකෝලය.

14Which term means: “Ask server for a resource”?“සම්පතක් ඉල්ලයි” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B

GET request – Ask server for a resource.GET ඉල්ලීම – සම්පතක් ඉල්ලයි.

15Which term means: “Requests a service”?“සේවාවක් ඉල්ලයි” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A

Client – Requests a service.සේවාලාභී – සේවාවක් ඉල්ලයි.

16Which term means: “Provides a service”?“සේවාවක් සපයයි” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: A

Server – Provides a service.සේවාදායකය – සේවාවක් සපයයි.

17Which term means: “Client-side DNS lookup helper”?“DNS සෙවුම් උදව්” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: B

Resolver – Client-side DNS lookup helper.විසඳුම්කරු – DNS සෙවුම් උදව්.

18Which term means: “Web resource locator”?“වෙබ් සම්පත් ස්ථානය” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: D

URL – Web resource locator.URL – වෙබ් සම්පත් ස්ථානය.

19Which term means: “Server reply (status + body)”?“සේවාදායක පිළිතුර” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: E

Response – Server reply (status + body).ප්‍රතිචාරය – සේවාදායක පිළිතුර.

20Which term means: “Name of a machine in DNS”?“DNS හි යන්ත්‍ර නාමය” යන්නෙන් අදහස් වන පදය කුමක්ද?

✔ Correct!නිවැරදියි!✘ Not quite.වැරදියි. Correct answerනිවැරදි පිළිතුර: E

Host name – Name of a machine in DNS.ධාරක නාමය – DNS හි යන්ත්‍ර නාමය.

MCQ answer keyMCQ පිළිතුරු

  1. C – Name→IP.නාම→IP.
  2. A – Top domain.ඉහළම වසම.
  3. C – Client.සේවාලාභී.
  4. B – Request/reply.ඉල්ලීම/පිළිතුර.
  5. E – Subtree names.උපගස් නාම.
  6. C – Names.නාම.
  7. D – DNS then HTTP.DNS පසු HTTP.
  8. E – Levels.මට්ටම්.
  9. D – DNS – Maps names to IP addresses.DNS – නාම IP වලට.
  10. B – Domain – Managed name subtree.වසම – කළමනාකරණය කරන නාම උපගස.
  11. A – TLD – Top-level domain (.lk, .com).TLD – ඉහළම මට්ටමේ වසම.
  12. D – Hierarchical name – Name split by dots into levels.ධුරාවලි නාමය – තිත් වලින් මට්ටම්.
  13. C – HTTP – Web application protocol.HTTP – වෙබ් යෙදුම් ප්‍රොටොකෝලය.
  14. B – GET request – Ask server for a resource.GET ඉල්ලීම – සම්පතක් ඉල්ලයි.
  15. A – Client – Requests a service.සේවාලාභී – සේවාවක් ඉල්ලයි.
  16. A – Server – Provides a service.සේවාදායකය – සේවාවක් සපයයි.
  17. B – Resolver – Client-side DNS lookup helper.විසඳුම්කරු – DNS සෙවුම් උදව්.
  18. D – URL – Web resource locator.URL – වෙබ් සම්පත් ස්ථානය.
  19. E – Response – Server reply (status + body).ප්‍රතිචාරය – සේවාදායක පිළිතුර.
  20. E – Host name – Name of a machine in DNS.ධාරක නාමය – DNS හි යන්ත්‍ර නාමය.

Structured Questionsව්‍යුහගත ප්‍රශ්න

1Need for DNS.DNS අවශ්‍යතාව. (2 marksලකුණු 2)

Show model answerආදර්ශ පිළිතුර පෙන්වන්න
Memorable names mapped to IPs.නම් → IP.

2Hierarchical + TLD idea.ධුරාවලි + TLD. (2 marksලකුණු 2)

Show model answerආදර්ශ පිළිතුර පෙන්වන්න
Tree of domains; .lk/.com at top.වසම් ගස; ඉහළ TLD.

3Describe HTTP GET + response.GET + ප්‍රතිචාරය. (2 marksලකුණු 2)

Show model answerආදර්ශ පිළිතුර පෙන්වන්න
Client asks for URL; server returns status/body.ඉල්ලීම; තත්ත්ව/අන්තර්ගතය.

4Client–server with DNS and HTTP.සේවාදායක–සේවාලාභී. (2 marksලකුණු 2)

Show model answerආදර්ශ පිළිතුර පෙන්වන්න
Both use requesting clients and answering servers.දෙකම ඉල්ලීම/පිළිතුර.

5Why not hard-code IPs in bookmarks only?IP පමණක් ඇයි නැද්ද? (2 marksලකුණු 2)

Show model answerආදර්ශ පිළිතුර පෙන්වන්න
IPs change; names stay stable via DNS.IP වෙනස්; නම් ස්ථාවර.

🎮 Game🎮 ක්‍රීඩා

Pick a game. Each one uses words from this lesson.ක්‍රීඩාවක් තෝරන්න. හැම එකක්ම මේ පාඩමේ වචන පාවිච්චි කරනවා.

Summary & Downloadsසාරාංශය සහ බාගත කිරීම්

Key pointsප්‍රධාන කරුණු

  • DNS maps names to IPs.DNS.
  • Hierarchical domains and TLDs.ධුරාවලි/TLD.
  • HTTP GET is client→server.GET.
  • Client–server model.සේවාදායක–සේවාලාභී.
  • DNS + HTTP work together for the web.වෙබ් සඳහා දෙකම.

Downloadsබාගත කිරීම්

Full Lesson 6 PDFසම්පූර්ණ පාඩම 6 PDF: English · සිංහල

Next noteඊළඟ සටහන 6.10 →

© 2026 schoolict.net (Ruwan Mangala Suraweera). All rights reserved.සියලු හිමිකම් ඇවිරිණි.