Docsity

a lecture note about mobile, Lecture notes of Computer Science

Partial preview of the text

Download a lecture note about mobile and more Lecture notes Computer Science in PDF only on Docsity!

Chapter 6

The Domain Name System

Definitions.

DNS Naming Structure.

DNS Components.

How DNS Servers work.

DNS Organizations.

Summary.

CONTENTS

DNS Definition …

IP assigns 32-bit addresses to hosts (interfaces)

Binary addresses are easy for computers to manage.

All applications use IP addresses through the TCP/IP protocol

software.

Difficult for humans to remember.

Domain names comprise a hierarchy so that names are unique,

easy to remember.

Domain Names

A domain name is the sequence of labels from a node to the

root, separated by dots (“.”s), read left to right

Example domain names:

ethiopia.net.ye

Yahoo.com

5

01/13/

PREPARED BY: AGMAS G.

DNS Naming Structure

Top level domains TLDs defined by global authority

com,

org,

edu.

ccTLD : country code TLDs.

Et,.uk,.us

nd

Level Domains.

net.ye

google.com

Top-Level Domains (TLDs)

Second-Level Domains

Within every top-level domain there is a huge list of 2

nd

level

domains

For example, in the COM second-level domain, you've got:

yahoo

msn

microsoft

plus millions of others...

DNS naming structure Example

TLD

ccTLD 2

nd LD 3

rd LD

2

nd LD

Examples:

Google .com

ethiopia .net .et

TheResourceRecord

A domain contains resource records

Resource records are similar to files

Classified into types

Some of the important types are SOA, NS, A, CNAME and

MX

Normally defines in “zone files”

13

01/13/

PREPARED BY: AGMAS G.

Types of Resource Records

The “A” Record

The “Address” record

One or more normally defines a host

Contains an IPv4 Address (the address computers use to

uniquely identify each other on the internet)

Eg. The record:

www A 65.162.184.

In the yemen.net.ye domain, defines the host uniquely

identifiable as “www.yemen.net.ye ” to be reachable at the

IPv4 Address 65.162.184.

14

01/13/

PREPARED BY: AGMAS G.

Name Servers

Iterative vs Recursive Name Servers

Serve two very different functions

Shouldn’t mix the two

Generally the DNS your computer points to is recursive

Zones are hosted in iterative name servers

Iterative servers can only answer information they know or have

cached

Recursive know how to ask others for information

How DNS Servers work(web)

Step 1: Your PC sends a resolution request to its

configured DNS Server, typically at your ISP.

Tell me the Address of

“www.google.com”

You type http://www.google.com into your web browser and hit enter.

Your PC

ISP “Recursive” DNS server

How DNS Servers work(web)

Step 3: Your ISPs recursive name server then asks one of the

“com” name servers as directed.

Tell me the Address of

“www.google.com”

I don’t know the address but I know

who’s authoritative for the

”google.com” domain ask them

ISP “Recursive” DNS server

“com” DNS servers

How DNS Servers work(web)

Step 4: Your ISPs recursive name server then asks one of the

“google.com” name servers as directed.

Tell me the Address of

“www.google.com”

The Address of www.google.com is

216.239.53.

ISP “Recursive” DNS server google.com DNS server