SlideShare a Scribd company logo
1 of 23
DNS (Domain Name System)
Domain names and IP addresses
• People prefer to use easy-to-remember names instead of IP
addresses
• Domain names are alphanumeric names for IP addresses
e.g., neon.cs.virginia.edu, www.google.com, ietf.org
• The domain name system (DNS) is an Internet-wide
distributed database that translates betweem domain names
and IP addresses
• How important is DNS?
Imagine what happens when the local DNS server is down.
Before there was DNS ….
…. there was the HOSTS.TXT file
• Before DNS (until 1985), the name-to-IP address was done
by downloading a single file (hosts.txt) from a central server
with FTP.
– Names in hosts.txt are not structured.
– The hosts.txt file still works on most operating systems. It
can be used to define local names.
Resolver and name server
1. An application program on a host
accesses the domain system
through a DNS client, called the
resolver
2. Resolver contacts DNS server,
called name server
3. DNS server returns IP address to
resolver which passes the IP
address to application
• Reverse lookups are also
possible, i.e., find the hostname
given an IP address
HTTP Resolver
Hostname (neon.tcpip-lab.edu)
IP address (128.143.71.21)
Name
server
Hostname
(neon.tcpip-lab.edu)
IP
address
(128.143.71.21)
Design principle of DNS
• The naming system on which DNS is based is a hierarchical and logical
tree structure called the domain namespace.
• An organization obtains authority for parts of the name space, and can add
additional layers of the hierarchy
• Names of hosts can be assigned without regard of location on a link layer
network, IP network or autonomous system
• In practice, allocation of the domain names generally follows the allocation
of IP address, e.g.,
– All hosts with network prefix 128.143/16 have domain name suffix
virginia.edu
– All hosts on network 128.143.136/24 are in the Computer Science
Department of the University of Virginia
Managed
by UVA
DNS Name hierarchy
• DNS hierarchy can be
represented by a tree
• Below top-level
domain, administration
of name space is
delegated to
organizations
• Each organization can
delegate further
Managed by
CS Dept.
. (root)
com
virginia.edu
gov
edu
org
uci.edu
cs.virginia.edu
math.virginia.edu
neon.cs.virginia.edu
Top-level
Domains
Domain name system
• Each node in the DNS tree
represents a DNS name
• Each branch below a node is a
DNS domain.
– DNS domain can contain
hosts or other domains
(subdomains)
• Example:
DNS domains are
., edu, virginia.edu, cs.virginia.edu
virginia.edu
cs.virginia.edu
www.virginia.edu
neon.cs.virginia.edu
edu
.
Domain names
• Hosts and DNS domains are named based on their position in the domain
tree
• Every node in the DNS domain tree can be identified by a unique Fully
Qualified Domain Name (FQDN). The FQDN gives the position in the DNS
tree.
• A FQDN consists of labels (“cs”,“virginia”,”edu”) separated by a period (“.”)
• There can be a period (“.”) at the end.
• Each label can be up to 63 characters long
• FQDN contains characters, numerals, and dash character (“-”)
• FQDNs are not case-sensitive
cs.virginia.edu cs.virginia.edu.
or
Top-level domains
• Three types of top-level domains:
– Generic Top Level Domains (gTLD): 3-character code
indicates the function of the organization
• Used primarily within the US
• Examples: gov, mil, edu, org, com, net
– Country Code Top Level Domain (ccTLD): 2-character
country or region code
• Examples: us, va, jp, de
– Reverse domains: A special domain (in-addr.arpa) used for
IP address-to-name mapping
There are more than 200 top-level domains.
Generic Top Level Domains (gTLD)
com Commercial organizations
edu Educational institutions
gov Government institutions
int International organizations
mil U.S. military institutions
net Networking organizations
org Non-profit organizations
• gTLDs are authoritatively administered by the Internet
central name registration authority ICANN
Hierarchy of name servers
• The resolution of the hierarchical
name space is done by a
hierarchy of name servers
• Each server is responsible
(authoritative) for a contiguous
portion of the DNS namespace,
called a zone.
• DNS server answers queries
about hosts in its zone
root server
com server
gov server
edu server
org server
uci.edu
server
.virginia.edu
server
cs.virginia.edu
server
DNS domain and zones
• Each zone is anchored at a
specific domain node, but zones
are not domains.
• A DNS domain is a branch of the
namespace
• A zone is a portion of the DNS
namespace generally stored in a
file (It could consists of multiple
nodes)
• A server can divide part of its zone
and delegate it to other servers
. (root)
.virginia.edu
.edu
.uci.edu
cs.virginia.edu
math.virginia.edu
Domain
Zone
and
domain
Zone
Primary and secondary name servers
• For each zone, there must be a primary name server and a secondary
name server
– The primary server (master server) maintains a zone file which has
information about the zone. Updates are made to the primary server
– The secondary server copies data stored at the primary server.
Adding a host:
• When a new host is added (“gold.cs.virginia.edu”) to a zone, the
administrator adds the IP information on the host (IP address and name)
to a configuration file on the primary server
Root name servers
• The root name
servers know how to
find the authoritative
name servers for all
top-level zones.
• There are only 13
root name servers
• Root servers are
critical for the proper
functioning of name
resolution
Addresses of root servers
A.ROOT-SERVERS.NET. (VeriSign, Dulles, VA) 198.41.0.4
B.ROOT-SERVERS.NET. (ISI, Marina Del Rey CA) 192.228.79.201
C.ROOT-SERVERS.NET. (Cogent Communications) 192.33.4.12
D.ROOT-SERVERS.NET. (University of Maryland) 128.8.10.90
E.ROOT-SERVERS.NET. (Nasa Ames Research Center)192.203.230.10
F.ROOT-SERVERS.NET. (Internet Systems Consortium) 192.5.5.241
G.ROOT-SERVERS.NET. (US Department of Defense) 192.112.36.4
H.ROOT-SERVERS.NET. (US Army Research Lab) 128.63.2.53
I.ROOT-SERVERS.NET. (Autonomica/NORDUnet) 192.36.148.17
J.ROOT-SERVERS.NET. (Verisign, multiple cities) 192.58.128.30
K.ROOT-SERVERS.NET. (RIPE,Europe multiple cities) 193.0.14.129
L.ROOT-SERVERS.NET. (IANA, Los Angeles) 198.32.64.12
M.ROOT-SERVERS.NET. (WIDE, Tokyo, Seoul, Paris) 202.12.27.33
Domain name resolution
1. User program issues a request
for the IP address of a hostname
2. Local resolver formulates a DNS
query to the name server of the
host
3. Name server checks if it is
authorized to answer the query.
a) If yes, it responds.
b) Otherwise, it will query other
name servers, starting at the
root tree
4. When the name server has the
answer it sends it to the resolver.
HTTP Resolver
Hostname (neon.tcpip-lab.edu)
IP address (128.143.71.21)
Name
server
Hostname
(neon.tcpip-lab.edu)
IP
address
(128.143.71.21)
Recursive and Iterative Queries
• There are two types of queries:
– Recursive queries
– Iterative (non-recursive) queries
• The type of query is determined by a bit in the DNS query
• Recursive query: When the name server of a host cannot
resolve a query, the server issues a query to resolve the
query
• Iterative queries: When the name server of a host cannot
resolve a query, it sends a referral to another server to the
resolver
Recursive queries
• In a recursive query, the resolver
expects the response from the
name server
• If the server cannot supply the
answer, it will send the query to
the “closest known” authoritative
name server (here: In the worst
case, the closest known server is
the root server)
• The root sever sends a referral to
the “edu” server. Querying this
server yields a referral to the
server of “virginia.edu”
• … and so on
root server
edu server
virginia.edu
server
cs.virginia.edu
server
Resolver
Name
server
query
response
Referral to edu name server
1st query: neon.cs.virginia.edu
2nd query: neon.cs.virginia.edu
Referral to virginia.edu name
server
3rd
query:
neon.cs.virginia.edu
Referral to
cs.virginia.edu
name server
4th query:
neon.cs.virginia.edu
IP address of
neon.cs.virginia.edu
Iterative queries
• In an iterative query, the name
server sends a closest known”
authoritative name server the a
referral to the root server.
• This involves more work for the
resolver
root server
edu server
virginia.edu
server
cs.virginia.edu
server
Resolver
Name
server
query
referral
to
root
server
Referral to
edu
nam
e
server
1
st query: neon.cs.virginia.edu
2
nd query: neon.cs.virginia.edu
Referral to virginia.edu name
server
3
rd query: neon.cs.virginia.edu
Referral to cs.virginia.edu
name server
4th query:
neon.cs.virginia.edu
IP address of
neon.cs.virginia.edu
Caching
• To reduce DNS traffic, name servers caches information on
domain name/IP address mappings
• When an entry for a query is in the cache, the server does not
contact other servers
• Note: If an entry is sent from a cache, the reply from the
server is marked as “unauthoritative”
Resource Records
• The database records of the
DNS distributed data base
are called resource records
(RR)
• Resource records are stored
in configuration files (zone
files) at name servers.
Resource records for a zone
db.mylab.com
$TTL 86400
mylab.com. IN SOA PC4.mylab.com.
hostmaster.mylab.com. (
1 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)
;
mylab.com. IN NS PC4.mylab.com.
;
localhost A 127.0.0.1
PC4.mylab.com. A 10.0.1.41
PC3.mylab.com. A 10.0.1.31
PC2.mylab.com. A 10.0.1.21
PC1.mylab.com. A 10.0.1.11
Resource Records
Max. age of cached data
in seconds
•Start of authority (SOA) record.
Means: “This name server is
authoritative for the zone
Mylab.com”
•PC4.mylab.com is the
name server
•hostmaster@mylab.com is the
email address of the person
in charge
Name server (NS) record.
One entry for each authoritative
name server
Address (A) records.
One entry for each hostaddress
db.mylab.com
$TTL 86400
mylab.com. IN SOA PC4.mylab.com.
hostmaster@mylab.com. (
1 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)
;
mylab.com. IN NS PC4.mylab.com.
;
localhost A 127.0.0.1
PC4.mylab.com. A 10.0.1.41
PC3.mylab.com. A 10.0.1.31
PC2.mylab.com. A 10.0.1.21
PC1.mylab.com. A 10.0.1.11
‫ها‬‫دامنه‬‫باره‬‫ر‬‫د‬
(
‫اطالع‬ ‫جهت‬
)
‫ها‬ ‫دامنه‬ ‫تعداد‬ ‫اصلی‬‫برد‬‫ر‬‫کا‬ ‫ثبت‬ ‫محدودیت‬ ‫ثبت‬‫ر‬‫اتو‬‫ر‬‫اپ‬
/
NIC ‫ایجاد‬‫یخ‬‫ر‬‫تا‬ ‫نوع‬ ‫دامنه‬‫نام‬
‫حدود‬
80
‫میلیون‬ ‫ها‬‫شرکت‬‫سایت‬ ‫ندارد‬ VeriSign 1985 gTLD .com
‫شکب‬‫زیرساخت‬
‫ه‬ ‫ندارد‬ VeriSign 1985 gTLD .net
‫حدود‬
8
‫میلیون‬ ‫موسسات‬
‫ی‬‫تجار‬‫ر‬‫غی‬
‫ندارد‬ Public
Interest
Registry
1985 gTLD .org
‫شی‬‫ز‬‫مو‬‫ا‬‫موسسات‬ ‫شی‬‫ز‬‫مو‬‫ا‬‫موسسات‬
‫مریکا‬‫ا‬
Educause 1985 gTLD .edu
‫حدود‬
5
‫میلیون‬ ‫های‬‫سایت‬
‫اطالعاتی‬
‫ندارد‬ Afilias 2001 gTLD .info
‫حدود‬
150
‫ار‬‫ز‬‫ه‬ ‫ان‬‫ر‬‫ای‬‫های‬‫سایت‬
‫ی‬ ‫سطح‬‫های‬‫دامنه‬
3
‫فقط‬
‫ای‬‫ر‬‫ب‬
‫انیان‬‫ر‬‫ای‬
IPM 1994 ccTL
D
.ir

More Related Content

Similar to 6065165.ppt (20)

Domain Name System ppt
Domain Name System pptDomain Name System ppt
Domain Name System ppt
 
Domain Name System(ppt)
Domain Name System(ppt)Domain Name System(ppt)
Domain Name System(ppt)
 
Application Layer.pptx
Application Layer.pptxApplication Layer.pptx
Application Layer.pptx
 
Dns
DnsDns
Dns
 
Secure shell (ssh)
Secure shell (ssh)Secure shell (ssh)
Secure shell (ssh)
 
DNS.pptx
DNS.pptxDNS.pptx
DNS.pptx
 
Presentation on Domain Name System
Presentation on Domain Name SystemPresentation on Domain Name System
Presentation on Domain Name System
 
Dns ppt
Dns pptDns ppt
Dns ppt
 
Dns
DnsDns
Dns
 
How DNS works and How to secure it: An Introduction
How DNS works and How to secure it: An IntroductionHow DNS works and How to secure it: An Introduction
How DNS works and How to secure it: An Introduction
 
The Application Layer
The Application LayerThe Application Layer
The Application Layer
 
Dns
DnsDns
Dns
 
Chapter 10 Domain Name Systems_MWSA.pptx
Chapter 10 Domain Name Systems_MWSA.pptxChapter 10 Domain Name Systems_MWSA.pptx
Chapter 10 Domain Name Systems_MWSA.pptx
 
Internet Domains
Internet DomainsInternet Domains
Internet Domains
 
D.N.S
D.N.SD.N.S
D.N.S
 
DNS(In_Linux).pptx
DNS(In_Linux).pptxDNS(In_Linux).pptx
DNS(In_Linux).pptx
 
Meeting 4 DNS
Meeting 4   DNSMeeting 4   DNS
Meeting 4 DNS
 
13 dns
13 dns13 dns
13 dns
 
Domain name system
Domain name systemDomain name system
Domain name system
 
DNS_Presentation.pptx
DNS_Presentation.pptxDNS_Presentation.pptx
DNS_Presentation.pptx
 

More from ssuseraf60311

String-Matching Algorithms Advance algorithm
String-Matching  Algorithms Advance algorithmString-Matching  Algorithms Advance algorithm
String-Matching Algorithms Advance algorithmssuseraf60311
 
Graph coloring with back tracking aoa.ppt
Graph coloring with back tracking aoa.pptGraph coloring with back tracking aoa.ppt
Graph coloring with back tracking aoa.pptssuseraf60311
 
application of http.pptx
application of http.pptxapplication of http.pptx
application of http.pptxssuseraf60311
 
Working of web browser.pptx
Working of web browser.pptxWorking of web browser.pptx
Working of web browser.pptxssuseraf60311
 

More from ssuseraf60311 (7)

String-Matching Algorithms Advance algorithm
String-Matching  Algorithms Advance algorithmString-Matching  Algorithms Advance algorithm
String-Matching Algorithms Advance algorithm
 
Graph coloring with back tracking aoa.ppt
Graph coloring with back tracking aoa.pptGraph coloring with back tracking aoa.ppt
Graph coloring with back tracking aoa.ppt
 
3526192.ppt
3526192.ppt3526192.ppt
3526192.ppt
 
8259731.ppt
8259731.ppt8259731.ppt
8259731.ppt
 
fit100-16-dom.ppt
fit100-16-dom.pptfit100-16-dom.ppt
fit100-16-dom.ppt
 
application of http.pptx
application of http.pptxapplication of http.pptx
application of http.pptx
 
Working of web browser.pptx
Working of web browser.pptxWorking of web browser.pptx
Working of web browser.pptx
 

Recently uploaded

Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)dollysharma2066
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .Satyam Kumar
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxk795866
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 

Recently uploaded (20)

Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptx
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
POWER SYSTEMS-1 Complete notes examples
POWER SYSTEMS-1 Complete notes  examplesPOWER SYSTEMS-1 Complete notes  examples
POWER SYSTEMS-1 Complete notes examples
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 

6065165.ppt

  • 2. Domain names and IP addresses • People prefer to use easy-to-remember names instead of IP addresses • Domain names are alphanumeric names for IP addresses e.g., neon.cs.virginia.edu, www.google.com, ietf.org • The domain name system (DNS) is an Internet-wide distributed database that translates betweem domain names and IP addresses • How important is DNS? Imagine what happens when the local DNS server is down.
  • 3. Before there was DNS …. …. there was the HOSTS.TXT file • Before DNS (until 1985), the name-to-IP address was done by downloading a single file (hosts.txt) from a central server with FTP. – Names in hosts.txt are not structured. – The hosts.txt file still works on most operating systems. It can be used to define local names.
  • 4. Resolver and name server 1. An application program on a host accesses the domain system through a DNS client, called the resolver 2. Resolver contacts DNS server, called name server 3. DNS server returns IP address to resolver which passes the IP address to application • Reverse lookups are also possible, i.e., find the hostname given an IP address HTTP Resolver Hostname (neon.tcpip-lab.edu) IP address (128.143.71.21) Name server Hostname (neon.tcpip-lab.edu) IP address (128.143.71.21)
  • 5. Design principle of DNS • The naming system on which DNS is based is a hierarchical and logical tree structure called the domain namespace. • An organization obtains authority for parts of the name space, and can add additional layers of the hierarchy • Names of hosts can be assigned without regard of location on a link layer network, IP network or autonomous system • In practice, allocation of the domain names generally follows the allocation of IP address, e.g., – All hosts with network prefix 128.143/16 have domain name suffix virginia.edu – All hosts on network 128.143.136/24 are in the Computer Science Department of the University of Virginia
  • 6. Managed by UVA DNS Name hierarchy • DNS hierarchy can be represented by a tree • Below top-level domain, administration of name space is delegated to organizations • Each organization can delegate further Managed by CS Dept. . (root) com virginia.edu gov edu org uci.edu cs.virginia.edu math.virginia.edu neon.cs.virginia.edu Top-level Domains
  • 7. Domain name system • Each node in the DNS tree represents a DNS name • Each branch below a node is a DNS domain. – DNS domain can contain hosts or other domains (subdomains) • Example: DNS domains are ., edu, virginia.edu, cs.virginia.edu virginia.edu cs.virginia.edu www.virginia.edu neon.cs.virginia.edu edu .
  • 8. Domain names • Hosts and DNS domains are named based on their position in the domain tree • Every node in the DNS domain tree can be identified by a unique Fully Qualified Domain Name (FQDN). The FQDN gives the position in the DNS tree. • A FQDN consists of labels (“cs”,“virginia”,”edu”) separated by a period (“.”) • There can be a period (“.”) at the end. • Each label can be up to 63 characters long • FQDN contains characters, numerals, and dash character (“-”) • FQDNs are not case-sensitive cs.virginia.edu cs.virginia.edu. or
  • 9. Top-level domains • Three types of top-level domains: – Generic Top Level Domains (gTLD): 3-character code indicates the function of the organization • Used primarily within the US • Examples: gov, mil, edu, org, com, net – Country Code Top Level Domain (ccTLD): 2-character country or region code • Examples: us, va, jp, de – Reverse domains: A special domain (in-addr.arpa) used for IP address-to-name mapping There are more than 200 top-level domains.
  • 10. Generic Top Level Domains (gTLD) com Commercial organizations edu Educational institutions gov Government institutions int International organizations mil U.S. military institutions net Networking organizations org Non-profit organizations • gTLDs are authoritatively administered by the Internet central name registration authority ICANN
  • 11. Hierarchy of name servers • The resolution of the hierarchical name space is done by a hierarchy of name servers • Each server is responsible (authoritative) for a contiguous portion of the DNS namespace, called a zone. • DNS server answers queries about hosts in its zone root server com server gov server edu server org server uci.edu server .virginia.edu server cs.virginia.edu server
  • 12. DNS domain and zones • Each zone is anchored at a specific domain node, but zones are not domains. • A DNS domain is a branch of the namespace • A zone is a portion of the DNS namespace generally stored in a file (It could consists of multiple nodes) • A server can divide part of its zone and delegate it to other servers . (root) .virginia.edu .edu .uci.edu cs.virginia.edu math.virginia.edu Domain Zone and domain Zone
  • 13. Primary and secondary name servers • For each zone, there must be a primary name server and a secondary name server – The primary server (master server) maintains a zone file which has information about the zone. Updates are made to the primary server – The secondary server copies data stored at the primary server. Adding a host: • When a new host is added (“gold.cs.virginia.edu”) to a zone, the administrator adds the IP information on the host (IP address and name) to a configuration file on the primary server
  • 14. Root name servers • The root name servers know how to find the authoritative name servers for all top-level zones. • There are only 13 root name servers • Root servers are critical for the proper functioning of name resolution
  • 15. Addresses of root servers A.ROOT-SERVERS.NET. (VeriSign, Dulles, VA) 198.41.0.4 B.ROOT-SERVERS.NET. (ISI, Marina Del Rey CA) 192.228.79.201 C.ROOT-SERVERS.NET. (Cogent Communications) 192.33.4.12 D.ROOT-SERVERS.NET. (University of Maryland) 128.8.10.90 E.ROOT-SERVERS.NET. (Nasa Ames Research Center)192.203.230.10 F.ROOT-SERVERS.NET. (Internet Systems Consortium) 192.5.5.241 G.ROOT-SERVERS.NET. (US Department of Defense) 192.112.36.4 H.ROOT-SERVERS.NET. (US Army Research Lab) 128.63.2.53 I.ROOT-SERVERS.NET. (Autonomica/NORDUnet) 192.36.148.17 J.ROOT-SERVERS.NET. (Verisign, multiple cities) 192.58.128.30 K.ROOT-SERVERS.NET. (RIPE,Europe multiple cities) 193.0.14.129 L.ROOT-SERVERS.NET. (IANA, Los Angeles) 198.32.64.12 M.ROOT-SERVERS.NET. (WIDE, Tokyo, Seoul, Paris) 202.12.27.33
  • 16. Domain name resolution 1. User program issues a request for the IP address of a hostname 2. Local resolver formulates a DNS query to the name server of the host 3. Name server checks if it is authorized to answer the query. a) If yes, it responds. b) Otherwise, it will query other name servers, starting at the root tree 4. When the name server has the answer it sends it to the resolver. HTTP Resolver Hostname (neon.tcpip-lab.edu) IP address (128.143.71.21) Name server Hostname (neon.tcpip-lab.edu) IP address (128.143.71.21)
  • 17. Recursive and Iterative Queries • There are two types of queries: – Recursive queries – Iterative (non-recursive) queries • The type of query is determined by a bit in the DNS query • Recursive query: When the name server of a host cannot resolve a query, the server issues a query to resolve the query • Iterative queries: When the name server of a host cannot resolve a query, it sends a referral to another server to the resolver
  • 18. Recursive queries • In a recursive query, the resolver expects the response from the name server • If the server cannot supply the answer, it will send the query to the “closest known” authoritative name server (here: In the worst case, the closest known server is the root server) • The root sever sends a referral to the “edu” server. Querying this server yields a referral to the server of “virginia.edu” • … and so on root server edu server virginia.edu server cs.virginia.edu server Resolver Name server query response Referral to edu name server 1st query: neon.cs.virginia.edu 2nd query: neon.cs.virginia.edu Referral to virginia.edu name server 3rd query: neon.cs.virginia.edu Referral to cs.virginia.edu name server 4th query: neon.cs.virginia.edu IP address of neon.cs.virginia.edu
  • 19. Iterative queries • In an iterative query, the name server sends a closest known” authoritative name server the a referral to the root server. • This involves more work for the resolver root server edu server virginia.edu server cs.virginia.edu server Resolver Name server query referral to root server Referral to edu nam e server 1 st query: neon.cs.virginia.edu 2 nd query: neon.cs.virginia.edu Referral to virginia.edu name server 3 rd query: neon.cs.virginia.edu Referral to cs.virginia.edu name server 4th query: neon.cs.virginia.edu IP address of neon.cs.virginia.edu
  • 20. Caching • To reduce DNS traffic, name servers caches information on domain name/IP address mappings • When an entry for a query is in the cache, the server does not contact other servers • Note: If an entry is sent from a cache, the reply from the server is marked as “unauthoritative”
  • 21. Resource Records • The database records of the DNS distributed data base are called resource records (RR) • Resource records are stored in configuration files (zone files) at name servers. Resource records for a zone db.mylab.com $TTL 86400 mylab.com. IN SOA PC4.mylab.com. hostmaster.mylab.com. ( 1 ; serial 28800 ; refresh 7200 ; retry 604800 ; expire 86400 ; ttl ) ; mylab.com. IN NS PC4.mylab.com. ; localhost A 127.0.0.1 PC4.mylab.com. A 10.0.1.41 PC3.mylab.com. A 10.0.1.31 PC2.mylab.com. A 10.0.1.21 PC1.mylab.com. A 10.0.1.11
  • 22. Resource Records Max. age of cached data in seconds •Start of authority (SOA) record. Means: “This name server is authoritative for the zone Mylab.com” •PC4.mylab.com is the name server •hostmaster@mylab.com is the email address of the person in charge Name server (NS) record. One entry for each authoritative name server Address (A) records. One entry for each hostaddress db.mylab.com $TTL 86400 mylab.com. IN SOA PC4.mylab.com. hostmaster@mylab.com. ( 1 ; serial 28800 ; refresh 7200 ; retry 604800 ; expire 86400 ; ttl ) ; mylab.com. IN NS PC4.mylab.com. ; localhost A 127.0.0.1 PC4.mylab.com. A 10.0.1.41 PC3.mylab.com. A 10.0.1.31 PC2.mylab.com. A 10.0.1.21 PC1.mylab.com. A 10.0.1.11
  • 23. ‫ها‬‫دامنه‬‫باره‬‫ر‬‫د‬ ( ‫اطالع‬ ‫جهت‬ ) ‫ها‬ ‫دامنه‬ ‫تعداد‬ ‫اصلی‬‫برد‬‫ر‬‫کا‬ ‫ثبت‬ ‫محدودیت‬ ‫ثبت‬‫ر‬‫اتو‬‫ر‬‫اپ‬ / NIC ‫ایجاد‬‫یخ‬‫ر‬‫تا‬ ‫نوع‬ ‫دامنه‬‫نام‬ ‫حدود‬ 80 ‫میلیون‬ ‫ها‬‫شرکت‬‫سایت‬ ‫ندارد‬ VeriSign 1985 gTLD .com ‫شکب‬‫زیرساخت‬ ‫ه‬ ‫ندارد‬ VeriSign 1985 gTLD .net ‫حدود‬ 8 ‫میلیون‬ ‫موسسات‬ ‫ی‬‫تجار‬‫ر‬‫غی‬ ‫ندارد‬ Public Interest Registry 1985 gTLD .org ‫شی‬‫ز‬‫مو‬‫ا‬‫موسسات‬ ‫شی‬‫ز‬‫مو‬‫ا‬‫موسسات‬ ‫مریکا‬‫ا‬ Educause 1985 gTLD .edu ‫حدود‬ 5 ‫میلیون‬ ‫های‬‫سایت‬ ‫اطالعاتی‬ ‫ندارد‬ Afilias 2001 gTLD .info ‫حدود‬ 150 ‫ار‬‫ز‬‫ه‬ ‫ان‬‫ر‬‫ای‬‫های‬‫سایت‬ ‫ی‬ ‫سطح‬‫های‬‫دامنه‬ 3 ‫فقط‬ ‫ای‬‫ر‬‫ب‬ ‫انیان‬‫ر‬‫ای‬ IPM 1994 ccTL D .ir