• No results found

Oct 2012

N/A
N/A
Protected

Academic year: 2022

Share " Oct 2012"

Copied!
21
0
0

Loading.... (view fulltext now)

Full text

(1)

CS 348: Computer Networks - DNS; 22

nd

Oct 2012

Instructor: Sridhar Iyer

(2)

Domain Name System

Map between host names and IP addresses

People: many identifiers: name, Passport #, …

Internet hosts:

IP address (32 bit) - used for addressing datagrams

“name”, e.g., www.iitb.ac.in - used by humans

(3)

DNS

Provides logical hierarchical view of the Internet

globally distributed database implemented in hierarchy of many name servers

application-layer protocol to communicate to resolve names (address/name translation)

client/server interaction

(4)

DNS clients and servers

clients: query servers to resolve names; nslookup

servers: name server daemons, reply to queries;

BIND, named

gethostbyname: resolver library call that can be invoked from application program

Lazily validated cache for performance

(5)

DNS design

Centralized DNS?

single point of failure

traffic volume

distant centralized database

maintenance

doesn’t scale!

So…Distributed DNS

(6)

Name hierarchy

Unique domain suffix is assigned by Internet Authority

No limit on number of subdomains or number of levels

Domains within an organization do not have to be uniform in number of subdomains or levels

www.iitb.ac.in

www.it.iitb.ac.in

(7)

Top-level domains

Domain Name/ Assignment

com Commercial

edu Educational

gov Government

mil Military

net Network

org Other organizations

arpa Advanced Research Project Agency country code au, uk, ca

(8)

DNS hierarchy

Servers are organized in a hierarchy

Each server has an authority over a part of the naming hierarchy

The server does not need to keep all names

It needs to know other servers who are responsible for other subdomains

(9)

DNS: Local name servers

Local Name Servers:

each organization/ISP has local (default) name server

host DNS query first goes to local name server

Authoritative Name Server:

for a host: stores that host’s IP address, name

can perform name/address translation for that host’s name

(10)

Name server hierarchy

A single server can serve multiple domains

Root server knows about servers for top-level domains

Each server knows the root server

(11)

DNS: Root name servers

Contacted by local name server that cannot resolve name

Root Name Server:

contacts authoritative name server if name mapping not known

gets mapping

returns mapping to local name server

(12)

DNS hierarchy: Example

Server for com

Server for edu

Server for gov

Server for in

Server for us

Server for ibm.com

Server for rpi.edu

Server for nsf.gov

server for co.in

Server for va.us

Root Server

(13)

DNS: Example

host xyz.iitb.ac.in wants IP address of www.ibm.com

1. Contacts its local DNS server, dns.iitb.ernet.in

2. dns.iitb.ernet.in contacts root name server, if necessary

3. root name server contacts authoritative name server,

root name server

authoritative name server dns.ibm.com

local name server

dns.iitb.ac.in

2

3 4 5

(14)

DNS: Name resolution

Recursive queries:

puts burden of name resolution on contacted name server

not scalable under heavy load

Iterated queries:

contacted server replies with name of server to contact. Ex: root name server may know

(15)

Recursive queries

User Name Name

Name Server

Cache

Query Response

Query Query

Data- base Name

Server Cache

Data- base

Query Response

(16)

Iterated queries

User Name Name

Name Server

Cache

Query Referral

Query Query

Data- base Name

Server Cache

Data- base

Query Response

(17)

DNS optimization

Spatial Locality: Local computers referenced more often than remote

Temporal Locality: Same set of domains referenced repeatedly ⇒ Caching

Each entry has a time to live (TTL)

Replication:

Multiple servers. Multiple roots.

(18)

DNS: caching and updating

A name server caches the mappings learnt

cache entries have a time-to-live period after which they become invalid

update/notify mechanisms: RFC 2136

(19)

DNS record

Resource Record (RR) format: (name, value, type, ttl)

Type=A: name is hostname; value is IP address

Type=NS: name is domain (e.g. ibm.com); value is IP address of authoritative name server for this

domain

Type=CNAME: name is an alias name for some

“cannonical” (the real) name; value is cannonical

(20)

DNS protocol

client-server interaction

query and reply messages, both with same message format

Message header

identification: 16 bit # for query, reply uses same #

flags: query or reply; recursion desired; recursion available;

reply is authoritative

(21)

DNS message format

Number of Authority Number of Additional Question Section

...

Answer Section ...

Authority Section ...

Number of Questions Number of Answers

Identification Flags 12 bytes

References

Related documents

Providing cer- tainty that avoided deforestation credits will be recognized in future climate change mitigation policy will encourage the development of a pre-2012 market in

GENERAL CONDITIONS OF CONTRACT 1. Definition of terms. 1.1 Department or purchaser means Managing Director, Stree Nidhi, Telangana, Hyderabad. 1.2 The bidder /tenderer means the firm

“Organochlorine pesticides across the tributaries of River Ravi, Pakistan: Human health risk assessment through dermal exposure, ecological risks, source fingerprints

The server supports the HTTP GET, POST and HEAD requests and also provides the HTTP status code just like a simple HTTP web server.. The server has been accessed

Sources or Publishers publish information or generate data updates to a database, which may be located at a server, or distributed servers, or distributed nodes in the

The main entities in the proposed algorithm are cloud users, cloud storage server, cloud manager, keysplitter servers, share holder servers, security servers, log editor which

A British poet, critic and biographer Martin Saymour-Smith says, about Aldiss work that, “ Aldiss not only knows more about Science Fiction than anyone else living, but is

The rest of the thesis is organized as follows. Section 2.2 of chapter 2 describes about the system model for a web server in general and VOD servers in specific and the sequence