SlideShare a Scribd company logo
1 tohttps://github.com/syaifulahdan/
Computer Network Administration
Introduction
Domain Name Service
 Introduction to the DNS
 DNS Components
 DNS Structure and Hierarchy
 The DNS in Context
2 tohttps://github.com/syaifulahdan/
Overview
• Introduction to the DNS
• DNS Components
• DNS Structure and Hierarchy
• The DNS in Context
3 tohttps://github.com/syaifulahdan/
DNS History
• ARPANET utilized a central file HOSTS.TXT
– Contains names to addresses mapping
– Maintained by SRI’s NIC (Stanford-Research-
Institute: Network-Information-Center)
• Administrators email changes to NIC
– NIC updates HOSTS.TXT periodically
• Administrators FTP (download) HOSTS.TXT
4 tohttps://github.com/syaifulahdan/
• As the system grew, HOSTS.TXT had
problems with:
– Scalability (traffic and load)
– Name collisions
– Consistency
• In 1984, Paul Mockapetris released the first
version (RFCs 882 and 883, superseded by
1034 and 1035 …)
DNS History
5 tohttps://github.com/syaifulahdan/
The DNS is…
• The “Domain Name System”
• What Internet users use to reference
anything by name on the Internet
• The mechanism by which Internet software
translates names to attributes such as
addresses
6 tohttps://github.com/syaifulahdan/
The DNS is also…
• A globally distributed, scalable, reliable database
• Comprised of three components
– A “name space”
– Servers making that name space available
– Resolvers (clients) which query the servers about the
name space
7 tohttps://github.com/syaifulahdan/
DNS as a Lookup Mechanism
• Users generally prefer names to numbers
• Computers prefer numbers to names
• DNS provides the mapping between the two
– I have “x”, give me “y”
8 tohttps://github.com/syaifulahdan/
DNS as a Database
• Keys to the database are “domain names”
– www.foo.com, 18.in-addr.arpa, 6.4.e164.arpa
• Over 200,000,000 domain names stored
• Each domain name contains one or more
attributes
– Known as “resource records”
• Each attribute individually retrievable
9 tohttps://github.com/syaifulahdan/
Global Distribution
• Data is maintained locally, but retrievable
globally
– No single computer has all DNS data
• DNS lookups can be performed by any
device
• Remote DNS data is locally cachable to
improve performance
10 tohttps://github.com/syaifulahdan/
Loose Coherency
• Each version of a subset of the database (a zone)
has a serial number
– The serial number is incremented on each database change
• Changes to the master copy of the database are
propagated to replicas according to timing set by
the zone administrator
• Cached data expires according to timeout set by
zone administrator
11 tohttps://github.com/syaifulahdan/
Scalability
• No limit to the size of the database
• No limit to the number of queries
– Tens of thousands of queries handled easily
every second
• Queries distributed among masters, slaves,
and caches
12 tohttps://github.com/syaifulahdan/
Reliability
• Data is replicated
– Data from master is copied to multiple slaves
• Clients can query
– Master server
– Any of the copies at slave servers
• Clients will typically query local caches
• DNS protocols can use either UDP or TCP
– If UDP, DNS protocol handles retransmission,
sequencing, etc.
13 tohttps://github.com/syaifulahdan/
Dynamicity
• Database can be updated dynamically
– Add/delete/modify of any record
– Only master can be dynamically updated
• Modification of the master database triggers
replication
14 tohttps://github.com/syaifulahdan/
Overview
• Introduction to the DNS
• DNS Components
– The name space
– The servers
– The resolvers
• DNS Structure and Hierarchy
• The DNS in Context
15 tohttps://github.com/syaifulahdan/
The Name Space
• The name space is the structure of the DNS database
– An inverted tree with the root node at the top
• Each node has a label
– The root node has a null label, written as “”
third-level node
second-level node second-level node
top-level node
third-level node third-level node
second-level node
top-level node
second-level node second-level node
top-level node
The root node
""
16 to
An Analogy – E.164
• Root node maintained by the ITU (call it “+”)
• Top level nodes = country codes (1, 81, etc)
• Second level nodes = regional codes (1-402, 81-3, etc.)
...
... 202
6003
381
6003
779
650 808
1
5226 2024
3489
3 4 852
81 ...
"+"
17 to
foo foo
top-1
foo at&t
top-2
bar baz
top-3
""
Labels
• Each node in the tree must have a
label
– A string of up to 63 bytes
– RFCs 852 and 1123 define legal
characters for “hostnames”
• A-Z, 0-9, and “-” only with a-z
and A-Z treated as the same
• Sibling nodes must have unique
labels
• The null label is reserved for the
root node
18 to
Domain Names
• A domain name is the sequence of labels from a node to the root,
separated by dots (“.”s), read left to right
– The name space has a maximum depth of 127 levels
– Domain names are limited to 255 characters in length
• A node’s domain name identifies its position in the name space
dakota
west
tornado
east www
nominum metainfo
com
berkeley nwu
edu gov
nato
int
army
mil
uu
net org
""
19 tohttps://github.com/syaifulahdan/
Subdomains
• One domain is a subdomain of another if its
domain name ends in the other’s domain name
– So sales.nominum.com is a subdomain of
• nominum.com & com
– nominum.com is a subdomain of com
20 tohttps://github.com/syaifulahdan/
Delegation
• Administrators can create subdomains to group hosts
– According to geography, organizational affiliation etc.
• An administrator of a domain can delegate responsibility
for managing a subdomain to someone else
• The parent domain retains links to the delegated
subdomains
21 tohttps://github.com/syaifulahdan/
Delegation Creates Zones
• Each time an administrator delegates a subdomain,
a new unit of administration is created
– The subdomain and its parent domain can now be
administered independently
– These units are called zones
– The boundary between zones is a point of delegation in
the name space
• Delegation is good: it is the key to scalability
22 to
Dividing a Domain into Zones
nominum.com
domain
nominum.com
zone
ams.nominum.com
zonerwc.nominum.com
zone
.arpa
acmebw
molokai skye
rwc www ftp
gouda cheddar
ams
nominum netsol
.com .edu
""
23 tohttps://github.com/syaifulahdan/
Overview
• Introduction to the DNS
• DNS Components
– The name space
– The servers
– The resolvers
• DNS Structure and Hierarchy
• The DNS in Context
24 tohttps://github.com/syaifulahdan/
Name Servers
• Name servers store information about the name
space in units called “zones”
– The name servers that load a complete zone are said to
“have authority for” or “be authoritative for” the zone
• Usually, more than one name server are
authoritative for the same zone
– This ensures redundancy and spreads the load
• Also, a single name server may be authoritative
for many zones
25 to
Name Servers and Zones
128.8.10.5
nominum.com
204.152.187.11
202.12.28.129
Name Servers
isc.org
Zones128.8.10.5 serves
data for both
nominum.com
and isc.org zones
202.12.28.129
serves data for
nominum.com
zone only
204.152.187.11
serves data for
isc.org zone only
26 tohttps://github.com/syaifulahdan/
Types of Name Servers
• Two main types of servers
– Authoritative – maintains the data
• Master – where the data is edited
• Slave – where data is replicated to
– Caching – stores data obtained from an authoritative
server
• No special hardware necessary
27 tohttps://github.com/syaifulahdan/
Name Server Architecture
• You can think of a name server as part of:
– database server, answering queries about the
parts of the name space it knows about (i.e., is
authoritative for),
– cache, temporarily storing data it learns from
other name servers, and
– agent, helping resolvers and other name servers
find data
28 to
Name Server Architecture
Master
serverZone transfer
Zone
data
file
From
disk
Authoritative Data
(primary master and
slave zones)
Agent
(looks up queries
on behalf of resolvers)
Cache Data
(responses from
other name servers)
Name Server Process
29 to
Authoritative Data
Resolver
Query
Response
Authoritative Data
(primary master and
slave zones)
Agent
(looks up queries
on behalf of resolvers)
Cache Data
(responses from
other name servers)
Name Server Process
30 to
Using Other Name Servers
Another
name
server
Response
Resolver
Query
Query
Authoritative Data
(primary master and
slave zones)
Agent
(looks up queries
on behalf of resolvers)
Cache Data
(responses from
other name servers)
Name Server Process
Response
31 to
Cached Data
Query
Response
Authoritative Data
(primary master and
slave zones)
Agent
(looks up queries
on behalf of resolvers)
Cache Data
(responses from
other name servers)
Name Server Process
Resolver
32 tohttps://github.com/syaifulahdan/
Overview
• Introduction to the DNS
• DNS Components
– The name space
– The servers
– The resolvers
• DNS Structure and Hierarchy
• The DNS in Context
33 tohttps://github.com/syaifulahdan/
Name Resolution
• Name resolution is the process by which resolvers
and name servers cooperate to find data in the
name space
• Closure mechanism for DNS?
– Starting point: the names and IP addresses of the name
servers for the root zone (the “root name servers”)
– The root name servers know about the top-level zones
and can tell name servers whom to contact for all TLDs
34 tohttps://github.com/syaifulahdan/
Name Resolution
• A DNS query has three parameters:
– A domain name (e.g., www.nominum.com),
• Remember, every node has a domain name!
– A class (e.g., IN), and
– A type (e.g., A)
– http://network-tools.com/nslook/
• Upon receiving a query from a resolver, a name
server
– 1) looks for the answer in its authoritative data and its
cache
– 2) If step 1 fails, the answer must be looked up
35 tohttps://github.com/syaifulahdan/
ping www.nominum.com.
The Resolution Process
• Let’s look at the resolution process step-by-
step:
annie.west.sprockets.com
36 tohttps://github.com/syaifulahdan/
What’s the IP address
of
www.nominum.com?
The Resolution Process
• The workstation annie asks its configured name
server, dakota, for www.nominum.com’s address
ping www.nominum.com.
annie.west.sprockets.com
dakota.west.sprockets.com
37 tohttps://github.com/syaifulahdan/
The Resolution Process
• The name server dakota asks a root name server, m, for
www.nominum.com’s address
ping www.nominum.com.
annie.west.sprockets.com
m.root-servers.net
dakota.west.sprockets.com
What’s the IP address
of
www.nominum.com?
38 tohttps://github.com/syaifulahdan/
The Resolution Process
• The root server m refers dakota to the com name servers
• This type of response is called a “referral”
ping www.nominum.com.annie.west.sprockets.com
m.root-servers.net
dakota.west.sprockets.com Here’s a list of the
com name servers.
Ask one of them.
39 tohttps://github.com/syaifulahdan/
The Resolution Process
• The name server dakota asks a com name server, f,
for www.nominum.com’s address
ping www.nominum.com.annie.west.sprockets.com
m.root-servers.net
dakota.west.sprockets.com
What’s the IP address
of
www.nominum.com?
f.gtld-servers.net
40 tohttps://github.com/syaifulahdan/
The Resolution Process
• The com name server f refers dakota to the
nominum.com name servers
ping www.nominum.com.annie.west.sprockets.com
f.gtld-servers.net
m.root-servers.net
dakota.west.sprockets.com
Here’s a list of the
nominum.com
name servers.
Ask one of them.
41 tohttps://github.com/syaifulahdan/
The Resolution Process
• The name server dakota asks a nominum.com name server,
ns1.sanjose, for www.nominum.com’s address
ping www.nominum.com.annie.west.sprockets.com
f.gtld-servers.net
m.root-servers.net
dakota.west.sprockets.com
ns1.sanjose.nominum.net
What’s the IP address
of
www.nominum.com?
42 tohttps://github.com/syaifulahdan/
The Resolution Process
• The nominum.com name server ns1.sanjose
responds with www.nominum.com’s address
ping www.nominum.com.annie.west.sprockets.com
f.gtld-servers.net
m.root-servers.net
dakota.west.sprockets.com
ns1.sanjose.nominum.netHere’s the IP
address for
www.nominum.com
43 tohttps://github.com/syaifulahdan/
Here’s the IP
address for
www.nominum.com
The Resolution Process
• The name server dakota responds to annie with
www.nominum.com’s address
ping www.nominum.com.annie.west.sprockets.com
f.gtld-servers.net
m.root-servers.net
dakota.west.sprockets.com
ns1.sanjose.nominum.net
44 tohttps://github.com/syaifulahdan/
ping ftp.nominum.com.
Resolution Process (Caching)
• After the previous query, the name server dakota now knows:
– The names and IP addresses of the com name servers
– The names and IP addresses of the nominum.com name servers
– The IP address of www.nominum.com
• Let’s look at the resolution process again
annie.west.sprockets.com
45 tohttps://github.com/syaifulahdan/
ping ftp.nominum.com.
What’s the IP address
of ftp.nominum.com?
Resolution Process (Caching)
• The workstation annie asks its configured name
server, dakota, for ftp.nominum.com’s address
annie.west.sprockets.com
f.gtld-servers.net
m.root-servers.net
dakota.west.sprockets.com
ns1.sanjose.nominum.net
46 tohttps://github.com/syaifulahdan/
ping ftp.nominum.com.
What’s the IP address
of ftp.nominum.com?
Resolution Process (Caching)
• dakota has cached a NS record indicating ns1.sanjose is an
nominum.com name server, so it asks it for
ftp.nominum.com’s address
annie.west.sprockets.com
f.gtld-servers.net
m.root-servers.net
dakota.west.sprockets.com
ns1.sanjose.nominum.net
47 tohttps://github.com/syaifulahdan/
ping ftp.nominum.com.
Here’s the IP
address for
ftp.nominum.com
Resolution Process (Caching)
• The nominum.com name server ns1.sanjose
responds with ftp.nominum.com’s address
annie.west.sprockets.com
f.gtld-servers.net
m.root-servers.net
dakota.west.sprockets.com
ns1.sanjose.nominum.net
48 tohttps://github.com/syaifulahdan/
ping ftp.nominum.com.
Here’s the IP
address for
ftp.nominum.com
Resolution Process (Caching)
• The name server dakota responds to annie with
ftp.nominum.com’s address
annie.west.sprockets.com
f.gtld-servers.net
m.root-servers.net
dakota.west.sprockets.com
ns1.sanjose.nominum.net
49 tohttps://github.com/syaifulahdan/
Iterative Name Resolution
• The principle of iterative name resolution.
50 tohttps://github.com/syaifulahdan/
Recursive Name Resolution (1)
• The principle of recursive name resolution.
51 tohttps://github.com/syaifulahdan/
Recursive Name Resolution (2)
• Recursive name resolution of <nl, vu, cs, ftp>. Name
servers cache intermediate results for subsequent lookups.
Server for
node
Should
resolve
Looks up
Passes to
child
Receives
and caches
Returns to
requester
cs <ftp> #<ftp> -- -- #<ftp>
vu <cs,ftp> #<cs> <ftp> #<ftp> #<cs>
#<cs, ftp>
ni <vu,cs,ftp> #<vu> <cs,ftp> #<cs>
#<cs,ftp>
#<vu>
#<vu,cs>
#<vu,cs,ftp>
root <ni,vu,cs,ftp> #<nl> <vu,cs,ftp> #<vu>
#<vu,cs>
#<vu,cs,ftp>
#<nl>
#<nl,vu>
#<nl,vu,cs>
#<nl,vu,cs,ftp>
52 tohttps://github.com/syaifulahdan/
Iterative versus Recursive
Resolution (1)
Performance-wise, which is better?Which works better with caching?How about communication cost?
53 tohttps://github.com/syaifulahdan/
Iterative versus Recursive
Resolution (2)
• Performance-wise, which is better?
– Recursive method puts higher performance demand
on each name server
• Which works better with caching?
– Recursive method works better with caching
• How about communication cost?
– Recursive method can reduce communication cost
54 tohttps://github.com/syaifulahdan/
Iterative versus Recursive
Resolution (3)
• The comparison between recursive and iterative name
resolution with respect to communication costs.
55 tohttps://github.com/syaifulahdan/
Overview
• Introduction to the DNS
• DNS Components
• DNS Structure and Hierarchy
• The DNS in Context
56 tohttps://github.com/syaifulahdan/
DNS Structure and Hierarchy
• The DNS imposes no constraints on how the DNS
hierarchy is implemented except:
– A single root
– The label restrictions
– So, can we create a host with a name a.wonderful.world?
• If a site is not connected to the Internet, it can use any
domain hierarchy it chooses
– Can make up whatever TLDs (top level domains) you want
• Connecting to the Internet implies use of the existing
DNS hierarchy
57 tohttps://github.com/syaifulahdan/
Top-level Domain (TLD) Structure
• In 1983 (RFC 881), the idea was to have TLDs correspond
to network service providers
– e.g., ARPA, DDN, CSNET, etc.
• Bad idea: if your network changes, your name changes
• By 1984 (RFC 920), functional domains was established
– e.g., GOV for Government, COM for commercial, EDU for
education, etc.
• RFC 920 also
– Provided country domains
– Provided “Multiorganizations”
• Large, composed of other (particularly international) organizations
– Provided a stable TLD structure until 1996 or so
58 to
The Current TLDs
COM
Commercial Organizations
NET
Network Infrastructure
ORG
Other Organizations
Generic TLDs
(gTLDs)
AF
Afghanistan
AL
Albania
DZ
Algeria
...
YU
Yugoslavia
ZM
Zambia
ZW
Zimbabwe
Country Code TLDs
(ccTLDs)
INT
International Treaty Organizations
ARPA
(Transition Device)
International TLDs
(iTLDs)
GOV
Governmental Organizations
MIL
Military Organizations
EDU
Educational Institutions
US Legacy TLDs
(usTLDs)
"."
59 tohttps://github.com/syaifulahdan/
Internet Corporation for Assigned
Names and Numbers (ICANN)
• ICANN’s role: to oversee the management of
Internet resources including
– Addresses
• Delegating blocks of addresses to the regional registries
– Protocol identifiers and parameters
• Allocating port numbers, etc.
– Names
• Administration of the root zone file
• Oversee the operation of the root name servers
60 tohttps://github.com/syaifulahdan/
The Root Nameservers
• The root zone file lists the names and IP addresses
of the authoritative DNS servers for all top-level
domains (TLDs)
• The root zone file is published on 13 servers, “A”
through “M”, around the Internet
• Root name server operations currently provided
by volunteer efforts by a very diverse set of
organizations
61 to
Root Name Server Operators
Nameserver Operated by:
A Verisign (US East Coast)
B University of S. California –Information Sciences Institute (US West Coast)
C Cogent Communications (US East Coast)
D University of Maryland (US East Coast)
E NASA (Ames) (US West Coast)
F Internet Software Consortium (US West Coast)
G U. S. Dept. of Defense (ARL) (US East Coast)
H U. S. Dept. of Defense (DISA) (US East Coast)
I Autonomica (SE)
J Verisign (US East Coast)
K RIPE-NCC (UK)
L ICANN (US West Coast)
M WIDE (JP)
62 tohttps://github.com/syaifulahdan/
Registries, Registrars, and Registrants
• A classification of roles in the operation of a domain name space
• Registry
– the name space’s database
– the organization which has edit control of that database
– the organization which runs the authoritative name servers for that
name space
• Registrar
– the agent which submits change requests to the registry on behalf of
the registrant
• Registrant
– the entity which makes use of the domain name
63 to
Registries, Registrars, and Registrants
Registry Zone DB
Registrants
End user requests
add/modify/delete
Registrar submits
add/modify/delete
to registry
Registrar RegistrarRegistrar
Master
updated
Registry updates
zone
Slaves
updated
64 tohttps://github.com/syaifulahdan/
Verisign: the registry and
registrar for gTLDs
• .COM, .NET, and .ORG
– By far the largest top level domains on the Internet
today
• Verisign received the contract for the registry
for .COM, .NET, and .ORG
– also a registrar for these TLDs
65 tohttps://github.com/syaifulahdan/
Overview
• Introduction to the DNS
• DNS Components
• DNS Hierarchy
• The DNS in Context
66 tohttps://github.com/syaifulahdan/
Load Concerns
• DNS can handle the load
– DNS root servers get approximately 3000
queries per second
• Empirical proofs (DDoS attacks) show root name
servers can handle 50,000 queries per second
– Limitation is network bandwidth, not the DNS protocol
– in-addr.arpa zone, which translates numbers to
names, gets about 2000 queries per second
67 tohttps://github.com/syaifulahdan/
68 tohttps://github.com/syaifulahdan/
Performance Concerns
• DNS is a very lightweight protocol
– Simple query – response
• Any performance limitations are the result
of network limitations
– Speed of light
– Network congestion
– Switching/forwarding latencies
69 tohttps://github.com/syaifulahdan/
Security Concerns
• Base DNS protocol (RFC 1034, 1035) is insecure
– DNS spoofing (cache poisoning) attacks are possible
• DNS Security Enhancements (DNSSEC, RFC
2565) remedies this flaw
– But creates new ones
• DoS attacks
• Amplification attacks
• DNSSEC strongly discourages large flat zones
– Hierarchy (delegation) is good
70 to
Questions?

More Related Content

What's hot

File transfer protocol
File transfer protocolFile transfer protocol
File transfer protocolAmandeep Kaur
 
File transfer protocol (ftp)
File transfer protocol (ftp)File transfer protocol (ftp)
File transfer protocol (ftp)Cort1026
 
Application layer
Application layerApplication layer
Application layerNeha Kurale
 
Apache web server installation/configuration, Virtual Hosting
Apache web server installation/configuration, Virtual HostingApache web server installation/configuration, Virtual Hosting
Apache web server installation/configuration, Virtual Hostingwebhostingguy
 
Utosc2007_Apache_Configuration.ppt
Utosc2007_Apache_Configuration.pptUtosc2007_Apache_Configuration.ppt
Utosc2007_Apache_Configuration.pptwebhostingguy
 
FTP Client and Server | Computer Science
FTP Client and Server | Computer ScienceFTP Client and Server | Computer Science
FTP Client and Server | Computer ScienceTransweb Global Inc
 
Dns server
Dns serverDns server
Dns serverMuuluu
 
Using an FTP client - Client server computing
Using an FTP client -  Client server computingUsing an FTP client -  Client server computing
Using an FTP client - Client server computinglordmwesh
 
[India Merge World Tour] Meru Networks
[India Merge World Tour] Meru Networks[India Merge World Tour] Meru Networks
[India Merge World Tour] Meru NetworksPerforce
 
Linux Webserver Installation Command and GUI.ppt
Linux Webserver Installation Command and GUI.pptLinux Webserver Installation Command and GUI.ppt
Linux Webserver Installation Command and GUI.pptwebhostingguy
 
Web server installation_configuration_apache
Web server installation_configuration_apacheWeb server installation_configuration_apache
Web server installation_configuration_apacheShaojie Yang
 

What's hot (20)

File transfer protocol
File transfer protocolFile transfer protocol
File transfer protocol
 
File transfer protocol (ftp)
File transfer protocol (ftp)File transfer protocol (ftp)
File transfer protocol (ftp)
 
Application layer
Application layerApplication layer
Application layer
 
Apache web server installation/configuration, Virtual Hosting
Apache web server installation/configuration, Virtual HostingApache web server installation/configuration, Virtual Hosting
Apache web server installation/configuration, Virtual Hosting
 
Guide koha
Guide kohaGuide koha
Guide koha
 
Utosc2007_Apache_Configuration.ppt
Utosc2007_Apache_Configuration.pptUtosc2007_Apache_Configuration.ppt
Utosc2007_Apache_Configuration.ppt
 
FTP Client and Server | Computer Science
FTP Client and Server | Computer ScienceFTP Client and Server | Computer Science
FTP Client and Server | Computer Science
 
Apache Web Server Setup 2
Apache Web Server Setup 2Apache Web Server Setup 2
Apache Web Server Setup 2
 
Dns server
Dns serverDns server
Dns server
 
Ftp server
Ftp serverFtp server
Ftp server
 
Using an FTP client - Client server computing
Using an FTP client -  Client server computingUsing an FTP client -  Client server computing
Using an FTP client - Client server computing
 
Cita310chap09
Cita310chap09Cita310chap09
Cita310chap09
 
[India Merge World Tour] Meru Networks
[India Merge World Tour] Meru Networks[India Merge World Tour] Meru Networks
[India Merge World Tour] Meru Networks
 
Linux Webserver Installation Command and GUI.ppt
Linux Webserver Installation Command and GUI.pptLinux Webserver Installation Command and GUI.ppt
Linux Webserver Installation Command and GUI.ppt
 
Dns
DnsDns
Dns
 
Web server installation_configuration_apache
Web server installation_configuration_apacheWeb server installation_configuration_apache
Web server installation_configuration_apache
 
FTP
FTPFTP
FTP
 
7 understanding DNS
7 understanding DNS7 understanding DNS
7 understanding DNS
 
Http
HttpHttp
Http
 
Ftp server
Ftp serverFtp server
Ftp server
 

Similar to Meeting 4 DNS

Similar to Meeting 4 DNS (20)

Dns ppt
Dns pptDns ppt
Dns ppt
 
Dns
DnsDns
Dns
 
Lets talk dns
Lets talk dnsLets talk dns
Lets talk dns
 
Dns
DnsDns
Dns
 
Domain Name System(ppt)
Domain Name System(ppt)Domain Name System(ppt)
Domain Name System(ppt)
 
DNS/DNSSEC by Nurul Islam
DNS/DNSSEC by Nurul IslamDNS/DNSSEC by Nurul Islam
DNS/DNSSEC by Nurul Islam
 
08Mapping.ppt
08Mapping.ppt08Mapping.ppt
08Mapping.ppt
 
Cse -306
Cse -306Cse -306
Cse -306
 
Dns
DnsDns
Dns
 
008094493.pdf
008094493.pdf008094493.pdf
008094493.pdf
 
Computer Networks Module 1 - part 2.pdf
Computer Networks Module 1 - part 2.pdfComputer Networks Module 1 - part 2.pdf
Computer Networks Module 1 - part 2.pdf
 
13 dns
13 dns13 dns
13 dns
 
DNS(In_Linux).pptx
DNS(In_Linux).pptxDNS(In_Linux).pptx
DNS(In_Linux).pptx
 
Presentation on Domain Name System
Presentation on Domain Name SystemPresentation on Domain Name System
Presentation on Domain Name System
 
Chapter4 configuringandmanagingthednsserverrole-140520003253-phpapp01
Chapter4 configuringandmanagingthednsserverrole-140520003253-phpapp01Chapter4 configuringandmanagingthednsserverrole-140520003253-phpapp01
Chapter4 configuringandmanagingthednsserverrole-140520003253-phpapp01
 
Introduction
IntroductionIntroduction
Introduction
 
1 technical-dns-workshop-day1
1 technical-dns-workshop-day11 technical-dns-workshop-day1
1 technical-dns-workshop-day1
 
Chapter 4 configuring and managing the dns server role
Chapter 4   configuring and managing the dns server roleChapter 4   configuring and managing the dns server role
Chapter 4 configuring and managing the dns server role
 
Hands-on DNSSEC Deployment
Hands-on DNSSEC DeploymentHands-on DNSSEC Deployment
Hands-on DNSSEC Deployment
 
2_Chapter 2_DNS.pptx
2_Chapter 2_DNS.pptx2_Chapter 2_DNS.pptx
2_Chapter 2_DNS.pptx
 

More from Syaiful Ahdan

Sertifikat EC00202128391
 Sertifikat EC00202128391 Sertifikat EC00202128391
Sertifikat EC00202128391Syaiful Ahdan
 
SP2JPB - Aplikasi Sistem Pelayanan Pemesanan Jasa Perbaikan Pada Bengkel Alam...
SP2JPB - Aplikasi Sistem Pelayanan Pemesanan Jasa Perbaikan Pada Bengkel Alam...SP2JPB - Aplikasi Sistem Pelayanan Pemesanan Jasa Perbaikan Pada Bengkel Alam...
SP2JPB - Aplikasi Sistem Pelayanan Pemesanan Jasa Perbaikan Pada Bengkel Alam...Syaiful Ahdan
 
Sertifikat ec00202059774
Sertifikat ec00202059774Sertifikat ec00202059774
Sertifikat ec00202059774Syaiful Ahdan
 
Sertifikat ec00202059775
Sertifikat ec00202059775Sertifikat ec00202059775
Sertifikat ec00202059775Syaiful Ahdan
 
Sertifikat EC00202045078
Sertifikat EC00202045078Sertifikat EC00202045078
Sertifikat EC00202045078Syaiful Ahdan
 
Sertifikat EC00202044723
 Sertifikat EC00202044723 Sertifikat EC00202044723
Sertifikat EC00202044723Syaiful Ahdan
 
Sertifikat EC00202023523
Sertifikat EC00202023523Sertifikat EC00202023523
Sertifikat EC00202023523Syaiful Ahdan
 
Sertifikat EC00201826309
Sertifikat EC00201826309Sertifikat EC00201826309
Sertifikat EC00201826309Syaiful Ahdan
 
Sertifikat EC00202023149
Sertifikat EC00202023149Sertifikat EC00202023149
Sertifikat EC00202023149Syaiful Ahdan
 
Sertifikat EC00202022868
Sertifikat EC00202022868Sertifikat EC00202022868
Sertifikat EC00202022868Syaiful Ahdan
 
Sertifikat EC00202021343
Sertifikat EC00202021343Sertifikat EC00202021343
Sertifikat EC00202021343Syaiful Ahdan
 
Sertifikat EC00202022755
Sertifikat EC00202022755Sertifikat EC00202022755
Sertifikat EC00202022755Syaiful Ahdan
 
Sertifikat EC00201987196
Sertifikat EC00201987196Sertifikat EC00201987196
Sertifikat EC00201987196Syaiful Ahdan
 
Sertifikat EC00201856484
Sertifikat EC00201856484Sertifikat EC00201856484
Sertifikat EC00201856484Syaiful Ahdan
 
Sertifikat EC00201856352
Sertifikat EC00201856352Sertifikat EC00201856352
Sertifikat EC00201856352Syaiful Ahdan
 
Sertifikat EC00201856994
Sertifikat EC00201856994Sertifikat EC00201856994
Sertifikat EC00201856994Syaiful Ahdan
 
Sertifikat EC00201856895
Sertifikat EC00201856895Sertifikat EC00201856895
Sertifikat EC00201856895Syaiful Ahdan
 
Meeting 2 introdcution network administrator
Meeting 2   introdcution network administratorMeeting 2   introdcution network administrator
Meeting 2 introdcution network administratorSyaiful Ahdan
 

More from Syaiful Ahdan (20)

Sertifikat EC00202128391
 Sertifikat EC00202128391 Sertifikat EC00202128391
Sertifikat EC00202128391
 
SP2JPB - Aplikasi Sistem Pelayanan Pemesanan Jasa Perbaikan Pada Bengkel Alam...
SP2JPB - Aplikasi Sistem Pelayanan Pemesanan Jasa Perbaikan Pada Bengkel Alam...SP2JPB - Aplikasi Sistem Pelayanan Pemesanan Jasa Perbaikan Pada Bengkel Alam...
SP2JPB - Aplikasi Sistem Pelayanan Pemesanan Jasa Perbaikan Pada Bengkel Alam...
 
Sertifikat ec00202059774
Sertifikat ec00202059774Sertifikat ec00202059774
Sertifikat ec00202059774
 
Sertifikat ec00202059775
Sertifikat ec00202059775Sertifikat ec00202059775
Sertifikat ec00202059775
 
Sertifikat EC00202045078
Sertifikat EC00202045078Sertifikat EC00202045078
Sertifikat EC00202045078
 
Sertifikat EC00202044723
 Sertifikat EC00202044723 Sertifikat EC00202044723
Sertifikat EC00202044723
 
Sertifikat EC00202023523
Sertifikat EC00202023523Sertifikat EC00202023523
Sertifikat EC00202023523
 
Sertifikat EC00201826309
Sertifikat EC00201826309Sertifikat EC00201826309
Sertifikat EC00201826309
 
Sertifikat EC00202023149
Sertifikat EC00202023149Sertifikat EC00202023149
Sertifikat EC00202023149
 
Sertifikat EC00202022868
Sertifikat EC00202022868Sertifikat EC00202022868
Sertifikat EC00202022868
 
Sertifikat EC00202021343
Sertifikat EC00202021343Sertifikat EC00202021343
Sertifikat EC00202021343
 
Sertifikat EC00202022755
Sertifikat EC00202022755Sertifikat EC00202022755
Sertifikat EC00202022755
 
Sertifikat EC00201987196
Sertifikat EC00201987196Sertifikat EC00201987196
Sertifikat EC00201987196
 
Sertifikat EC00201856484
Sertifikat EC00201856484Sertifikat EC00201856484
Sertifikat EC00201856484
 
Sertifikat EC00201856352
Sertifikat EC00201856352Sertifikat EC00201856352
Sertifikat EC00201856352
 
Sertifikat EC00201856994
Sertifikat EC00201856994Sertifikat EC00201856994
Sertifikat EC00201856994
 
Sertifikat EC00201856895
Sertifikat EC00201856895Sertifikat EC00201856895
Sertifikat EC00201856895
 
Meeting 2 introdcution network administrator
Meeting 2   introdcution network administratorMeeting 2   introdcution network administrator
Meeting 2 introdcution network administrator
 
Pertemuan 5
Pertemuan 5Pertemuan 5
Pertemuan 5
 
Pertemuan 4
Pertemuan 4Pertemuan 4
Pertemuan 4
 

Recently uploaded

Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfTamralipta Mahavidyalaya
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaasiemaillard
 
Application of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matricesApplication of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matricesRased Khan
 
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfINU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfbu07226
 
[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online Presentation[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online PresentationGDSCYCCE
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfVivekanand Anglo Vedic Academy
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePedroFerreira53928
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonSteve Thomason
 
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptx
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptxSolid waste management & Types of Basic civil Engineering notes by DJ Sir.pptx
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptxDenish Jangid
 
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfDanh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfQucHHunhnh
 
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxMatatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxJenilouCasareno
 
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptxJose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptxricssacare
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345beazzy04
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfPo-Chuan Chen
 
Gyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptxGyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptxShibin Azad
 
Benefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational ResourcesBenefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational Resourcesdimpy50
 
Accounting and finance exit exam 2016 E.C.pdf
Accounting and finance exit exam 2016 E.C.pdfAccounting and finance exit exam 2016 E.C.pdf
Accounting and finance exit exam 2016 E.C.pdfYibeltalNibretu
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxbennyroshan06
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfjoachimlavalley1
 

Recently uploaded (20)

Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Application of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matricesApplication of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matrices
 
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfINU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
 
[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online Presentation[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online Presentation
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
 
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptx
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptxSolid waste management & Types of Basic civil Engineering notes by DJ Sir.pptx
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptx
 
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
Operations Management - Book1.p  - Dr. Abdulfatah A. SalemOperations Management - Book1.p  - Dr. Abdulfatah A. Salem
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
 
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfDanh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
 
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxMatatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
 
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptxJose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
 
Gyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptxGyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptx
 
Benefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational ResourcesBenefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational Resources
 
Accounting and finance exit exam 2016 E.C.pdf
Accounting and finance exit exam 2016 E.C.pdfAccounting and finance exit exam 2016 E.C.pdf
Accounting and finance exit exam 2016 E.C.pdf
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 

Meeting 4 DNS

  • 1. 1 tohttps://github.com/syaifulahdan/ Computer Network Administration Introduction Domain Name Service  Introduction to the DNS  DNS Components  DNS Structure and Hierarchy  The DNS in Context
  • 2. 2 tohttps://github.com/syaifulahdan/ Overview • Introduction to the DNS • DNS Components • DNS Structure and Hierarchy • The DNS in Context
  • 3. 3 tohttps://github.com/syaifulahdan/ DNS History • ARPANET utilized a central file HOSTS.TXT – Contains names to addresses mapping – Maintained by SRI’s NIC (Stanford-Research- Institute: Network-Information-Center) • Administrators email changes to NIC – NIC updates HOSTS.TXT periodically • Administrators FTP (download) HOSTS.TXT
  • 4. 4 tohttps://github.com/syaifulahdan/ • As the system grew, HOSTS.TXT had problems with: – Scalability (traffic and load) – Name collisions – Consistency • In 1984, Paul Mockapetris released the first version (RFCs 882 and 883, superseded by 1034 and 1035 …) DNS History
  • 5. 5 tohttps://github.com/syaifulahdan/ The DNS is… • The “Domain Name System” • What Internet users use to reference anything by name on the Internet • The mechanism by which Internet software translates names to attributes such as addresses
  • 6. 6 tohttps://github.com/syaifulahdan/ The DNS is also… • A globally distributed, scalable, reliable database • Comprised of three components – A “name space” – Servers making that name space available – Resolvers (clients) which query the servers about the name space
  • 7. 7 tohttps://github.com/syaifulahdan/ DNS as a Lookup Mechanism • Users generally prefer names to numbers • Computers prefer numbers to names • DNS provides the mapping between the two – I have “x”, give me “y”
  • 8. 8 tohttps://github.com/syaifulahdan/ DNS as a Database • Keys to the database are “domain names” – www.foo.com, 18.in-addr.arpa, 6.4.e164.arpa • Over 200,000,000 domain names stored • Each domain name contains one or more attributes – Known as “resource records” • Each attribute individually retrievable
  • 9. 9 tohttps://github.com/syaifulahdan/ Global Distribution • Data is maintained locally, but retrievable globally – No single computer has all DNS data • DNS lookups can be performed by any device • Remote DNS data is locally cachable to improve performance
  • 10. 10 tohttps://github.com/syaifulahdan/ Loose Coherency • Each version of a subset of the database (a zone) has a serial number – The serial number is incremented on each database change • Changes to the master copy of the database are propagated to replicas according to timing set by the zone administrator • Cached data expires according to timeout set by zone administrator
  • 11. 11 tohttps://github.com/syaifulahdan/ Scalability • No limit to the size of the database • No limit to the number of queries – Tens of thousands of queries handled easily every second • Queries distributed among masters, slaves, and caches
  • 12. 12 tohttps://github.com/syaifulahdan/ Reliability • Data is replicated – Data from master is copied to multiple slaves • Clients can query – Master server – Any of the copies at slave servers • Clients will typically query local caches • DNS protocols can use either UDP or TCP – If UDP, DNS protocol handles retransmission, sequencing, etc.
  • 13. 13 tohttps://github.com/syaifulahdan/ Dynamicity • Database can be updated dynamically – Add/delete/modify of any record – Only master can be dynamically updated • Modification of the master database triggers replication
  • 14. 14 tohttps://github.com/syaifulahdan/ Overview • Introduction to the DNS • DNS Components – The name space – The servers – The resolvers • DNS Structure and Hierarchy • The DNS in Context
  • 15. 15 tohttps://github.com/syaifulahdan/ The Name Space • The name space is the structure of the DNS database – An inverted tree with the root node at the top • Each node has a label – The root node has a null label, written as “” third-level node second-level node second-level node top-level node third-level node third-level node second-level node top-level node second-level node second-level node top-level node The root node ""
  • 16. 16 to An Analogy – E.164 • Root node maintained by the ITU (call it “+”) • Top level nodes = country codes (1, 81, etc) • Second level nodes = regional codes (1-402, 81-3, etc.) ... ... 202 6003 381 6003 779 650 808 1 5226 2024 3489 3 4 852 81 ... "+"
  • 17. 17 to foo foo top-1 foo at&t top-2 bar baz top-3 "" Labels • Each node in the tree must have a label – A string of up to 63 bytes – RFCs 852 and 1123 define legal characters for “hostnames” • A-Z, 0-9, and “-” only with a-z and A-Z treated as the same • Sibling nodes must have unique labels • The null label is reserved for the root node
  • 18. 18 to Domain Names • A domain name is the sequence of labels from a node to the root, separated by dots (“.”s), read left to right – The name space has a maximum depth of 127 levels – Domain names are limited to 255 characters in length • A node’s domain name identifies its position in the name space dakota west tornado east www nominum metainfo com berkeley nwu edu gov nato int army mil uu net org ""
  • 19. 19 tohttps://github.com/syaifulahdan/ Subdomains • One domain is a subdomain of another if its domain name ends in the other’s domain name – So sales.nominum.com is a subdomain of • nominum.com & com – nominum.com is a subdomain of com
  • 20. 20 tohttps://github.com/syaifulahdan/ Delegation • Administrators can create subdomains to group hosts – According to geography, organizational affiliation etc. • An administrator of a domain can delegate responsibility for managing a subdomain to someone else • The parent domain retains links to the delegated subdomains
  • 21. 21 tohttps://github.com/syaifulahdan/ Delegation Creates Zones • Each time an administrator delegates a subdomain, a new unit of administration is created – The subdomain and its parent domain can now be administered independently – These units are called zones – The boundary between zones is a point of delegation in the name space • Delegation is good: it is the key to scalability
  • 22. 22 to Dividing a Domain into Zones nominum.com domain nominum.com zone ams.nominum.com zonerwc.nominum.com zone .arpa acmebw molokai skye rwc www ftp gouda cheddar ams nominum netsol .com .edu ""
  • 23. 23 tohttps://github.com/syaifulahdan/ Overview • Introduction to the DNS • DNS Components – The name space – The servers – The resolvers • DNS Structure and Hierarchy • The DNS in Context
  • 24. 24 tohttps://github.com/syaifulahdan/ Name Servers • Name servers store information about the name space in units called “zones” – The name servers that load a complete zone are said to “have authority for” or “be authoritative for” the zone • Usually, more than one name server are authoritative for the same zone – This ensures redundancy and spreads the load • Also, a single name server may be authoritative for many zones
  • 25. 25 to Name Servers and Zones 128.8.10.5 nominum.com 204.152.187.11 202.12.28.129 Name Servers isc.org Zones128.8.10.5 serves data for both nominum.com and isc.org zones 202.12.28.129 serves data for nominum.com zone only 204.152.187.11 serves data for isc.org zone only
  • 26. 26 tohttps://github.com/syaifulahdan/ Types of Name Servers • Two main types of servers – Authoritative – maintains the data • Master – where the data is edited • Slave – where data is replicated to – Caching – stores data obtained from an authoritative server • No special hardware necessary
  • 27. 27 tohttps://github.com/syaifulahdan/ Name Server Architecture • You can think of a name server as part of: – database server, answering queries about the parts of the name space it knows about (i.e., is authoritative for), – cache, temporarily storing data it learns from other name servers, and – agent, helping resolvers and other name servers find data
  • 28. 28 to Name Server Architecture Master serverZone transfer Zone data file From disk Authoritative Data (primary master and slave zones) Agent (looks up queries on behalf of resolvers) Cache Data (responses from other name servers) Name Server Process
  • 29. 29 to Authoritative Data Resolver Query Response Authoritative Data (primary master and slave zones) Agent (looks up queries on behalf of resolvers) Cache Data (responses from other name servers) Name Server Process
  • 30. 30 to Using Other Name Servers Another name server Response Resolver Query Query Authoritative Data (primary master and slave zones) Agent (looks up queries on behalf of resolvers) Cache Data (responses from other name servers) Name Server Process Response
  • 31. 31 to Cached Data Query Response Authoritative Data (primary master and slave zones) Agent (looks up queries on behalf of resolvers) Cache Data (responses from other name servers) Name Server Process Resolver
  • 32. 32 tohttps://github.com/syaifulahdan/ Overview • Introduction to the DNS • DNS Components – The name space – The servers – The resolvers • DNS Structure and Hierarchy • The DNS in Context
  • 33. 33 tohttps://github.com/syaifulahdan/ Name Resolution • Name resolution is the process by which resolvers and name servers cooperate to find data in the name space • Closure mechanism for DNS? – Starting point: the names and IP addresses of the name servers for the root zone (the “root name servers”) – The root name servers know about the top-level zones and can tell name servers whom to contact for all TLDs
  • 34. 34 tohttps://github.com/syaifulahdan/ Name Resolution • A DNS query has three parameters: – A domain name (e.g., www.nominum.com), • Remember, every node has a domain name! – A class (e.g., IN), and – A type (e.g., A) – http://network-tools.com/nslook/ • Upon receiving a query from a resolver, a name server – 1) looks for the answer in its authoritative data and its cache – 2) If step 1 fails, the answer must be looked up
  • 35. 35 tohttps://github.com/syaifulahdan/ ping www.nominum.com. The Resolution Process • Let’s look at the resolution process step-by- step: annie.west.sprockets.com
  • 36. 36 tohttps://github.com/syaifulahdan/ What’s the IP address of www.nominum.com? The Resolution Process • The workstation annie asks its configured name server, dakota, for www.nominum.com’s address ping www.nominum.com. annie.west.sprockets.com dakota.west.sprockets.com
  • 37. 37 tohttps://github.com/syaifulahdan/ The Resolution Process • The name server dakota asks a root name server, m, for www.nominum.com’s address ping www.nominum.com. annie.west.sprockets.com m.root-servers.net dakota.west.sprockets.com What’s the IP address of www.nominum.com?
  • 38. 38 tohttps://github.com/syaifulahdan/ The Resolution Process • The root server m refers dakota to the com name servers • This type of response is called a “referral” ping www.nominum.com.annie.west.sprockets.com m.root-servers.net dakota.west.sprockets.com Here’s a list of the com name servers. Ask one of them.
  • 39. 39 tohttps://github.com/syaifulahdan/ The Resolution Process • The name server dakota asks a com name server, f, for www.nominum.com’s address ping www.nominum.com.annie.west.sprockets.com m.root-servers.net dakota.west.sprockets.com What’s the IP address of www.nominum.com? f.gtld-servers.net
  • 40. 40 tohttps://github.com/syaifulahdan/ The Resolution Process • The com name server f refers dakota to the nominum.com name servers ping www.nominum.com.annie.west.sprockets.com f.gtld-servers.net m.root-servers.net dakota.west.sprockets.com Here’s a list of the nominum.com name servers. Ask one of them.
  • 41. 41 tohttps://github.com/syaifulahdan/ The Resolution Process • The name server dakota asks a nominum.com name server, ns1.sanjose, for www.nominum.com’s address ping www.nominum.com.annie.west.sprockets.com f.gtld-servers.net m.root-servers.net dakota.west.sprockets.com ns1.sanjose.nominum.net What’s the IP address of www.nominum.com?
  • 42. 42 tohttps://github.com/syaifulahdan/ The Resolution Process • The nominum.com name server ns1.sanjose responds with www.nominum.com’s address ping www.nominum.com.annie.west.sprockets.com f.gtld-servers.net m.root-servers.net dakota.west.sprockets.com ns1.sanjose.nominum.netHere’s the IP address for www.nominum.com
  • 43. 43 tohttps://github.com/syaifulahdan/ Here’s the IP address for www.nominum.com The Resolution Process • The name server dakota responds to annie with www.nominum.com’s address ping www.nominum.com.annie.west.sprockets.com f.gtld-servers.net m.root-servers.net dakota.west.sprockets.com ns1.sanjose.nominum.net
  • 44. 44 tohttps://github.com/syaifulahdan/ ping ftp.nominum.com. Resolution Process (Caching) • After the previous query, the name server dakota now knows: – The names and IP addresses of the com name servers – The names and IP addresses of the nominum.com name servers – The IP address of www.nominum.com • Let’s look at the resolution process again annie.west.sprockets.com
  • 45. 45 tohttps://github.com/syaifulahdan/ ping ftp.nominum.com. What’s the IP address of ftp.nominum.com? Resolution Process (Caching) • The workstation annie asks its configured name server, dakota, for ftp.nominum.com’s address annie.west.sprockets.com f.gtld-servers.net m.root-servers.net dakota.west.sprockets.com ns1.sanjose.nominum.net
  • 46. 46 tohttps://github.com/syaifulahdan/ ping ftp.nominum.com. What’s the IP address of ftp.nominum.com? Resolution Process (Caching) • dakota has cached a NS record indicating ns1.sanjose is an nominum.com name server, so it asks it for ftp.nominum.com’s address annie.west.sprockets.com f.gtld-servers.net m.root-servers.net dakota.west.sprockets.com ns1.sanjose.nominum.net
  • 47. 47 tohttps://github.com/syaifulahdan/ ping ftp.nominum.com. Here’s the IP address for ftp.nominum.com Resolution Process (Caching) • The nominum.com name server ns1.sanjose responds with ftp.nominum.com’s address annie.west.sprockets.com f.gtld-servers.net m.root-servers.net dakota.west.sprockets.com ns1.sanjose.nominum.net
  • 48. 48 tohttps://github.com/syaifulahdan/ ping ftp.nominum.com. Here’s the IP address for ftp.nominum.com Resolution Process (Caching) • The name server dakota responds to annie with ftp.nominum.com’s address annie.west.sprockets.com f.gtld-servers.net m.root-servers.net dakota.west.sprockets.com ns1.sanjose.nominum.net
  • 49. 49 tohttps://github.com/syaifulahdan/ Iterative Name Resolution • The principle of iterative name resolution.
  • 50. 50 tohttps://github.com/syaifulahdan/ Recursive Name Resolution (1) • The principle of recursive name resolution.
  • 51. 51 tohttps://github.com/syaifulahdan/ Recursive Name Resolution (2) • Recursive name resolution of <nl, vu, cs, ftp>. Name servers cache intermediate results for subsequent lookups. Server for node Should resolve Looks up Passes to child Receives and caches Returns to requester cs <ftp> #<ftp> -- -- #<ftp> vu <cs,ftp> #<cs> <ftp> #<ftp> #<cs> #<cs, ftp> ni <vu,cs,ftp> #<vu> <cs,ftp> #<cs> #<cs,ftp> #<vu> #<vu,cs> #<vu,cs,ftp> root <ni,vu,cs,ftp> #<nl> <vu,cs,ftp> #<vu> #<vu,cs> #<vu,cs,ftp> #<nl> #<nl,vu> #<nl,vu,cs> #<nl,vu,cs,ftp>
  • 52. 52 tohttps://github.com/syaifulahdan/ Iterative versus Recursive Resolution (1) Performance-wise, which is better?Which works better with caching?How about communication cost?
  • 53. 53 tohttps://github.com/syaifulahdan/ Iterative versus Recursive Resolution (2) • Performance-wise, which is better? – Recursive method puts higher performance demand on each name server • Which works better with caching? – Recursive method works better with caching • How about communication cost? – Recursive method can reduce communication cost
  • 54. 54 tohttps://github.com/syaifulahdan/ Iterative versus Recursive Resolution (3) • The comparison between recursive and iterative name resolution with respect to communication costs.
  • 55. 55 tohttps://github.com/syaifulahdan/ Overview • Introduction to the DNS • DNS Components • DNS Structure and Hierarchy • The DNS in Context
  • 56. 56 tohttps://github.com/syaifulahdan/ DNS Structure and Hierarchy • The DNS imposes no constraints on how the DNS hierarchy is implemented except: – A single root – The label restrictions – So, can we create a host with a name a.wonderful.world? • If a site is not connected to the Internet, it can use any domain hierarchy it chooses – Can make up whatever TLDs (top level domains) you want • Connecting to the Internet implies use of the existing DNS hierarchy
  • 57. 57 tohttps://github.com/syaifulahdan/ Top-level Domain (TLD) Structure • In 1983 (RFC 881), the idea was to have TLDs correspond to network service providers – e.g., ARPA, DDN, CSNET, etc. • Bad idea: if your network changes, your name changes • By 1984 (RFC 920), functional domains was established – e.g., GOV for Government, COM for commercial, EDU for education, etc. • RFC 920 also – Provided country domains – Provided “Multiorganizations” • Large, composed of other (particularly international) organizations – Provided a stable TLD structure until 1996 or so
  • 58. 58 to The Current TLDs COM Commercial Organizations NET Network Infrastructure ORG Other Organizations Generic TLDs (gTLDs) AF Afghanistan AL Albania DZ Algeria ... YU Yugoslavia ZM Zambia ZW Zimbabwe Country Code TLDs (ccTLDs) INT International Treaty Organizations ARPA (Transition Device) International TLDs (iTLDs) GOV Governmental Organizations MIL Military Organizations EDU Educational Institutions US Legacy TLDs (usTLDs) "."
  • 59. 59 tohttps://github.com/syaifulahdan/ Internet Corporation for Assigned Names and Numbers (ICANN) • ICANN’s role: to oversee the management of Internet resources including – Addresses • Delegating blocks of addresses to the regional registries – Protocol identifiers and parameters • Allocating port numbers, etc. – Names • Administration of the root zone file • Oversee the operation of the root name servers
  • 60. 60 tohttps://github.com/syaifulahdan/ The Root Nameservers • The root zone file lists the names and IP addresses of the authoritative DNS servers for all top-level domains (TLDs) • The root zone file is published on 13 servers, “A” through “M”, around the Internet • Root name server operations currently provided by volunteer efforts by a very diverse set of organizations
  • 61. 61 to Root Name Server Operators Nameserver Operated by: A Verisign (US East Coast) B University of S. California –Information Sciences Institute (US West Coast) C Cogent Communications (US East Coast) D University of Maryland (US East Coast) E NASA (Ames) (US West Coast) F Internet Software Consortium (US West Coast) G U. S. Dept. of Defense (ARL) (US East Coast) H U. S. Dept. of Defense (DISA) (US East Coast) I Autonomica (SE) J Verisign (US East Coast) K RIPE-NCC (UK) L ICANN (US West Coast) M WIDE (JP)
  • 62. 62 tohttps://github.com/syaifulahdan/ Registries, Registrars, and Registrants • A classification of roles in the operation of a domain name space • Registry – the name space’s database – the organization which has edit control of that database – the organization which runs the authoritative name servers for that name space • Registrar – the agent which submits change requests to the registry on behalf of the registrant • Registrant – the entity which makes use of the domain name
  • 63. 63 to Registries, Registrars, and Registrants Registry Zone DB Registrants End user requests add/modify/delete Registrar submits add/modify/delete to registry Registrar RegistrarRegistrar Master updated Registry updates zone Slaves updated
  • 64. 64 tohttps://github.com/syaifulahdan/ Verisign: the registry and registrar for gTLDs • .COM, .NET, and .ORG – By far the largest top level domains on the Internet today • Verisign received the contract for the registry for .COM, .NET, and .ORG – also a registrar for these TLDs
  • 65. 65 tohttps://github.com/syaifulahdan/ Overview • Introduction to the DNS • DNS Components • DNS Hierarchy • The DNS in Context
  • 66. 66 tohttps://github.com/syaifulahdan/ Load Concerns • DNS can handle the load – DNS root servers get approximately 3000 queries per second • Empirical proofs (DDoS attacks) show root name servers can handle 50,000 queries per second – Limitation is network bandwidth, not the DNS protocol – in-addr.arpa zone, which translates numbers to names, gets about 2000 queries per second
  • 68. 68 tohttps://github.com/syaifulahdan/ Performance Concerns • DNS is a very lightweight protocol – Simple query – response • Any performance limitations are the result of network limitations – Speed of light – Network congestion – Switching/forwarding latencies
  • 69. 69 tohttps://github.com/syaifulahdan/ Security Concerns • Base DNS protocol (RFC 1034, 1035) is insecure – DNS spoofing (cache poisoning) attacks are possible • DNS Security Enhancements (DNSSEC, RFC 2565) remedies this flaw – But creates new ones • DoS attacks • Amplification attacks • DNSSEC strongly discourages large flat zones – Hierarchy (delegation) is good