Networking Applications

Similar documents
The Domain Name System

Lecture 4: Basic Internet Operations

The Domain Name System

DNS. David Malone. 19th October 2004

A DNS Tutorial

Testing IPv6 address records in the DNS root

Advanced Networking. Domain Name System

Advanced Networking. Domain Name System. Purpose of DNS servers. Purpose of DNS servers. Purpose of DNS servers

IPv6 Support in the DNS. Athanassios Liakopoulos 6DEPLOY IPv6 Training, Skopje, June 2011

Protocol Classification

S Computer Networks - Spring What and why? Structure of DNS Management of Domain Names Name Service in Practice

Manual Configuration Stateful Address Configuration (i.e. from servers) Stateless Autoconfiguration : IPv6

DNS and BIND Rock Eagle Computing Conference October 27, 2000 CL 10/25/00

CompSci 356: Computer Network Architectures. Lecture 20: Domain Name System (DNS) and Content distribution networks Chapter 9.3.1

DNS Basics BUPT/QMUL

APNIC elearning: DNS Concepts

CSE 265: System & Network Administration

DNS and HTTP. A High-Level Overview of how the Internet works

Preparation Test AAAA and EDNS0 support Share Your Results Results Reported Testing Period

CS615 - Aspects of System Administration

Application Layer Protocols

Domain Name Service. DNS Overview. October 2009 Computer Networking 1

ECE 650 Systems Programming & Engineering. Spring 2018

K-Root Name Server Operations

K-Root Nameserver Operations

The application layer is responsible for providing services to the user.

SOFTWARE ARCHITECTURE 9. NAME RESOLUTION.

Overview. Last Lecture. This Lecture. Next Lecture. Scheduled tasks and log management. DNS and BIND Reference: DNS and BIND, 4 th Edition, O Reilly

Linux Network Administration

Domain Name System (DNS)

Lecture 05: Application Layer (Part 02) Domain Name System. Dr. Anis Koubaa

FTP. Client Server Model. Kent State University Dept. of Computer Science. CS 4/55231 Internet Engineering. Server Models

Course Organization. The Internet as a Blackbox: Applications. Opening the Blackbox: The IP Protocol Stack

Goal of this session

Objectives. Upon completion you will be able to:

The Application Layer: Sockets, DNS

Root DNS Anycast in South Asia

Chapter 2 Application Layer. Lecture 5 DNS. Computer Networking: A Top Down Approach. 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012

Communications Software. CSE 123b. CSE 123b. Spring Lecture 11: Domain Name System (DNS) Stefan Savage. Some pictures courtesy David Wetherall

Client Server Concepts, DNS, DHCP

CSE 123b Communications Software. Overview for today. Names and Addresses. Goals for a naming system. Internet Hostnames

Chapter 19. Domain Name System (DNS)

INSTITUT NATIONAL DES TELECOMMUNICATIONS. MSc Computer and Communication Networks MSc Information Technology Final Examination

Domain Name Service. in-addr sfu

Lecture 7: Application Layer Domain Name System

IP ADDRESSES, NAMING, AND DNS

12. Name & Address 최양희서울대학교컴퓨터공학부

MCTS Guide to Microsoft Windows Server 2008 Network Infrastructure Configuration. Chapter 5 Introduction to DNS in Windows Server 2008

CS519: Computer Networks. Lecture 6: Apr 5, 2004 Naming and DNS

DNS. DNS is an example of a large scale client-server application.

Peer-to-Peer Networks and the DNS

CSCE 463/612 Networks and Distributed Processing Spring 2018

Application Protocols in the TCP/IP Reference Model. Application Protocols in the TCP/IP Reference Model. DNS - Domain Name System

Naming. To do. q What s in a name q Flat naming q Structured naming q Attribute-based naming q Next: Content distribution networks

DNS Concepts. Acknowledgements July 2005, Thimphu, Bhutan. In conjunction with SANOG VI. Bill Manning Ed Lewis Joe Abley Olaf M.

DNS Fundamentals. Steve Conte ICANN60 October 2017

DNS & Iodine. Christian Grothoff.

ECE 435 Network Engineering Lecture 7

Application Protocols in the TCP/IP Reference Model

Distributed Systems. Distributed Systems Within the Internet Nov. 9, 2011

Domain Name System.

The net and it s Ecosystem

Electrical Engineering Department EE 400, Experiment # 4 IP Addressing and Subnetting

More Internet Support Protocols

CSC 574 Computer and Network Security. DNS Security

Resource Records APPENDIXA

CS615 - Aspects of System Administration

The Domain Name System

Outline. EEC-484/584 Computer Networks. Slow Start Algorithm. Internet Congestion Control Algorithm

Internet Engineering Task Force (IETF) Request for Comments: 7706 Category: Informational ISSN: November 2015

DNS/DNSSEC Workshop. In Collaboration with APNIC and HKIRC Hong Kong. Champika Wijayatunga Regional Security Engagement Manager Asia Pacific

DOMAIN NAME SYSTEM (DNS) BEYAZIT BESTAMİ YÜKSEL

Domain Name System (DNS) DNS Fundamentals. Computers use IP addresses. Why do we need names? hosts.txt does not scale. The old solution: HOSTS.

Computer Networks. Domain Name System. Jianping Pan Spring /25/17 CSC361 1

Resource Records. Host Address Name-to-address mapping for the zone. Table 1: Resource Records

Information Network I: The Application Layer. Doudou Fall Internet Engineering Laboratory Nara Institute of Science and Technique

Introduction to the Domain Name System

ROOT SERVERS MANAGEMENT AND SECURITY

Computer Networking: Applications George Blankenship. Applications George Blankenship 1

Naming in Distributed Systems

Resource Records APPENDIX

Distributed Operating Systems

Applications & Application-Layer Protocols: The Domain Name System and Peerto-Peer

Domain Name System (DNS)

APPLICATION LAYER APPLICATION LAYER : DNS, HTTP, , SMTP, Telnet, FTP, Security-PGP-SSH.

Domain Name System - Advanced Computer Networks

The Domain Name System

DNS. A Massively Distributed Database. Justin Scott December 12, 2018

How to Add Domains and DNS Records

CS 43: Computer Networks. 10: Naming and DNS September 24, 2018

Root Servers. Root hints file come in many names (db.cache, named.root, named.cache, named.ca) See root-servers.org for more detail

Domain Name System (DNS)

How to Configure the DNS Server

Naming Computer Networking. Overview. DNS: Domain Name System. Obvious Solutions (1) Obvious Solutions (2)

Distributed Naming. EECS 591 Farnam Jahanian University of Michigan. Reading List

How to Configure DNS Zones

DNS and SMTP. James Walden CIT 485: Advanced Cybersecurity. James WaldenCIT 485: Advanced Cybersecurity DNS and SMTP 1 / 31

CSc 450/550 Computer Networks Domain Name System

Lesson 9: Configuring DNS Records. MOAC : Administering Windows Server 2012

Introduction to Network. Topics

Transcription:

Networking Dr. Ayman A. Abdel-Hamid College of Computing and Information Technology Arab Academy for Science & Technology and Maritime Transport 1

Outline Introduction Name Space concepts Domain Name Space Distribution of Name Space DNS Sections Resolution Caching Dynamic DNS DNS Messages 2

Introduction Internet uses IP addresses to identify entities People prefer to use names instead of numeric addresses Need a system to map a name to an address and vice versa Used to be done using a host file Store host file locally and update from a master host file? Store host file on a central server? Divide information into smaller parts, with each part on a different server Host that needs mapping contacts closest server DNS can be considered as an application-support protocol 3

Names must be unique Name Space Concepts Name space can be flat or hierarchical Flat name space: no structure Hierarchical name space Name made of parts (nature of organization, name, departments,..) Decentralize authority to assign and control name spaces Central authority part about nature of organization and name 4

Domain Name Space Hierarchical name space: names defined in inverted-tree structure Each node has a label (root is a null string). Some top domain names: com, edu, and org Fully qualified domain name machine1.computing.aast.edu. Partially qualified domain name machine1 Used when name to be resolved (mapped) belongs to the same site as the client Resolver appends a suffix to create a fully qualified domain name Domain: is a subtree of the domain name space (name is the name of the node at the top of the subtree) 5

Distribution of Name Space 1/4 Hierarchy of name servers (DNS server) Root server, edu server, com server, us server Each server is responsible (authoritative) for a domain Server is responsible for (has authority over) a zone If server does not further subdivide domain a zone is the domain A DB called the zone file is created, keeping information for every node 6

Distribution of Name Space 2/4 Server creates subdomains Delegate part of authority to other servers Information about nodes in subdomains stored in servers at lower levels Original server keeps reference to lower-level servers Original server still has a zone (part of domain not delegated and references to parts that are delegated) Root servers There are more than 13 root servers each covering the whole domain name space 7

Distribution of Name Space 3/4 Primary and Secondary servers Primary server Stores locally a file about the zone for which it is an authority Responsible for creating, maintaining, and updating the zone file Secondary server Transfers complete information about a zone from another server (primary or secondary) Does not create or update the zone file 8

Distribution of Name Space 4/4 Primary and Secondary servers Both authoritative for zones they serve Redundancy of data A server can be primary for a specific zone, and secondary for another 9

What is in a Zone? Every domain has a set of resource records (e.g., for a host its IP address) Resource records five-tuple Domain name: identifier TTL: Time to Live Class: for Internet information IN Type: what type of record Value: a number, a domain name, or a string 10

Principal RR Types for IPv4 SOA Start of Authortiy Parameters for this zone A IP address of a host 32 bit integer MX Mail Exchange priority, domain willing to accept email NS Name server name of a server for this domain CNAME Canonical name create aliases PTR Pointer Alias for an IP address HINFO Host Description CPU and OS in ASCII TXT Text Un-interpreted ASCII text 11

Hypothetical Zone DB ; Authoritative data for ccit.aast.edu ccit.aast.edu. 86400 IN SOA Boss ( ) ccit.aast.edu. 86400 IN TXT College of Computing ccit.aast.edu. 86400 IN TXT Arab Academy ccit.aast.edu. 86400 IN MX 1 mail.ccit.aast.edu. ccit.aast.edu 86400 IN MX 2 mail2.ccit.aast.edu. NS server1.ccit.aast.edu. m.ccit.aast.edu. 86400 IN HINFO Sun Unix m.ccit.aast.edu. 86400 IN A 128.82.10.4 m.ccit.aast.edu 86400 IN A 192.31.231.165 www.ccit.aast.edu. 86400 IN CNAME server1.ccit.aast.edu. ftp.ccit.aast.edu. 86400 IN CNAME server2.ccit.aast.edu. cs.ccit.aast.edu. 86400 IN NS server1.ccit.aast.edu. 4.10.82.128.IN-ADDR.arpa. 86400 PTR m.ccit.aast.edu. 12

DNS Sections 1/2 DNS divided into 2 different sections Generic domains and country domains Generic (according to behavior) com commercial organizations edu Educational institutions gov Government institutions int International organizations mil Military groups net Network support centers org Nonprofit organizations 13

DNS Sections 2/2 Generic (according to behavior), new labels aero Airlines and aerospace companies biz Business coop Cooperative business organizations info Information service providers museum Museums name Personal names (individuals) pro Professional Country domains (country abbreviations) 14

Resolution Resolver DNS designed as a client-server application Host needing mapping calls a DNS client (resolver) Resolver accesses closest DNS server with a request If server has information, it replies back to the resolver If no information Refer resolver to other servers (Iterative resolution) Ask other servers to provide information (Recursive resolution) 15

Recursive Resolution Clients asks for a recursive answer from a name server, server will supply final answer If server authority for domain Check local DB and respond If not authority Send request to another server (usually parent) and wait for response If parent is authority then respond, else send to another server Worst case, query reaches a top level DNS server Response travels back until it reaches the requesting client 16

Iterative Resolution If server authority for domain Check local DB and respond If not authority Return to client the IP address of the server that it thinks it can resolve the query Clients repeats query to second server and so on An answer is received 17

Caching When ask another server for a mapping and receive response Store information in DNS cache before sending to client To inform the client that response is coming from cache, and not from authoritative source mark response as un-authoritative To counter outdated mapping problem Authoritative server adds a TTL (in seconds) to the mapping information After TTL, such information is invalid and have to repeat query process Each server must keep a TTL counter for each mapping it caches Mappings with expired TTLs are periodically deleted 18

From http://www.zoneedit.com/doc/dns-basics.html 19

Back to Hypothetical Zone DB What was not shown in zone DB example are IP addresses to look up top-level domains Not part of ccit.aast.edu domain Supplied by root servers (IP addresses present in a system configuration file) Loaded into DNS cache when DNS server is booted 20

Root Name Servers Please see http://www.root-servers.org/ A.ROOT-SERVERS.NET. 198.41.0.4 B.ROOT-SERVERS.NET. 192.228.79.201 C.ROOT-SERVERS.NET. 192.33.4.12 D.ROOT-SERVERS.NET. 128.8.10.90 E.ROOT-SERVERS.NET. 192.203.230.10 F.ROOT-SERVERS.NET. 192.5.5.241 G.ROOT-SERVERS.NET. 192.112.36.4 H.ROOT-SERVERS.NET. 128.63.2.53 I.ROOT-SERVERS.NET. 192.36.148.17 J.ROOT-SERVERS.NET. 192.58.128.30 K.ROOT-SERVERS.NET. 193.0.14.129 L.ROOT-SERVERS.NET. 198.32.64.12 M.ROOT-SERVERS.NET. 202.12.27.33 21

Dynamic DNS DNS zone files updated dynamically When a binding between a name and address if determined Information sent by DHCP to a primary name server Primary NS updates zone file Secondary NSs notified actively or passively After change notification, secondary server(s) request an entire zone transfer 22

DNS Messages 1/2 Query (header and question records) and response (header, question records, answer records, authoritative records, and additional records) Same header format for both messages Identification Flags (type of message, type of desired resolution, ) Number of Questions Records Number of answer records Number of authoritative records Number of additional records 23

Question section DNS Messages 2/2 Present on both query and response messages Answer section One or more resource records Answer from server to client Authoritative section One or more resource records information about one or more authoritative servers for the query Additional Information One or more resource records e.g., IP address of an authoritative server (which the name was sent in the authoritative section) 24

Further Information RFC 1034: Domain Names Concepts and Facilities, 1987 RFC 1035: Domain Names Implementation and Specification, 1987 25