Beruflich Dokumente
Kultur Dokumente
Introduction Naming
Domains, Zones and Authority DNS Design Goals DNS Elements Domain Names Name Servers Resolvers Inverse Mappings
Adrian Popescu, 2003, 2004
1/17
2/17
Introduction
Domain Name System (DNS)
Service intended to make Internet user-friendly Distributed database that maps between host names and IP addresses A name-to-address mapping is needed to easy for humans It is easier to memory names than IP addresses
Introduction (cont.)
History
In early ARPANET, every host maintained a le called hosts.txt, which contained a list of all hosts (including the IP address, host name & alias(es)) Obs: local copies of hosts.txt are available in /etc/hosts This le had to be regularly updated from the le hosts.txt (available on the Network Information Center NIC server - Domain Name Registration Service) by using FTP Innecient: the updating process was used by all computers connected to the Internet Solution: to move data management away from the center to organizations that operate parts of the Internet, that is, DNS solution DNS represents in fact the Internet directory service Another directory service: Network Information Service (NIS), which is a directory service supported on UNIX machines Main RFCs: RFC1034 & RFC1035: concepts & protocols of the Internet DNS RFC1032: procedure for participating in the world-wide DNS Also, the Berkeley Internet Name Domain (BIND) incorporated in 4.3BSD is a complete implementation of the DNS for UNIX systems
3/17
4/17
Naming
Types of names existing in Internet today
Domain Names Alphanumeric strings used by users to identify Internet hosts Example: www.freesoft.org IP Addresses 32-bit numbers used to identify Internet hosts by the IP protocol Example: 205.216.34.7 Service Names Short strings used to identify particular services on an Internet host Examples: telnet, smtp, ftp, http Port Numbers 16-bit numbers (usually written in decimal) used to identify particular services on an Internet host to the TCP & UDP protocols Examples: 25/tcp (smtp), 23/tcp (telnet), 21/tcp (ftp), 80/tcp (http), 53/udp (domain), 69/udp (tftp) Universal Resource Locators (URLs) Used by WWW to locate & identify Web documents & other resources Example: http://www.freesoft.org/xx.html
Dept of Telecommunications & Signal Processing
Internetworking with TCP/IP - ETC003 - Lecture 8 5/17
DNS Elements
DNS elements
Domain Name Space & Resource Records Name Servers Resolvers
7/17
8/17
9/17
10/17
Domain Names
Internet domains form the basis of Internet naming scheme
Examples: www.cnn.com is a domain name and cnn.com is a domain Domains are structured in the form of an inverted tree Each branch is labeled with an simple alphanumeric string, and a complete domain name is written by stringing all the labels together, separated by periods; ex: www.cnn.com is third-level domain name; top-level domain is com; second-level label is cnn; third level is www RFC1591: top level domain names take one of two forms Generic domain (predominately American domains): com, edu, org, net, mil, gov, int Country domain (non-American domains): se, uk, fr, de, nl, us, au DNS is used to convert domain names into IP addresses Domain name registrations are handled by: InterNIC (North America); RIPE (Europe); APNIC (Asia) Domain name assignment is completely distinct from IP address assignment IP address assignment is handled by: IANA (Internet Assigned Numbers Authority), and ICANN (Internet Cooperation for Assigned Names and Numbers)- to allocate IP addresses to ISPs and to manage DNS root servers
11/17
12/17
Name Servers
Name servers (NS)
Hosts running software capable of processing DNS protocol queries A popular free software name server is BIND (UNIX hosts) DNS name servers manage zones A zone begins at a node in DNS tree & contains all underlying branches A NS may delegate authority over a subzone to another NS and thus control the sources of info in a subdomain DNS consists of a large number of nested zones, where NS operate Each of these NS recognize neighbor servers in the zones immediately above & below For reliability/backup purposes, each zone has at least two active NS (primary & secondary), with same information
13/17
14/17
Resolver
Resolver
Takes over NS queries on behalf of the application program & user Required to store the info obtained locally (caching), so further queries can be solved locally instead Storage depends on the period of validity specied in the Resource Records, which determines the length of time the resolver should temporarily hold the info in the absence of a renewed request for it A resolver should also be able to settle iterative queries, i.e., to forward queries not successfully solved by a NS; this is done by using the info in the authority eld & contacting other NSs When a query, the client begins by trying to resolve names locally (caching and then the local server). If the local server cannot resolve the name, the client must then work through the tree of name servers either iteratively or by requesting the local name server to do it recursively. After the name is solved, the new info is then added in the cache. The resolver may use TCP or UDP for queries When using UDP, the standard query protocol has own error protection (query repetition)
16/17
Inverse Mappings
Inverse queries
Allow a client to ask a server to map backwards by taking an answer & generating a query that would produce the specic answer However, difculties in implementation Inverse queries are generally not used because there is often no way to nd the server that can resolve the query without searching the entire set of servers
Special cases
DNS has a few special cases Most important is the in-addr.arpa domain, used to convert IP addresses back into domain names Used by Web servers
17/17