CSCE 515:
Computer Network Programming
- ----- Address Conversion Function and DNS
RFC 1034, RFC 1035 Wenyuan Xu http://www.cse.sc.edu/~wyxu/csce515f07.html Department of Computer Science and Engineering University of South Carolina
CSCE515 – Computer Network Programming 2007
Hostnames
IP Addresses are great for computers
IP address includes information used for routing.
IP addresses are tough for humans to remember. IP addresses are impossible to guess.
ever guessed at the name of a WWW site?
What if the server is moved to a different machine with a
different address
wyxu@cse.sc.edu wyxu@129.252.138.9
CSCE515 – Computer Network Programming 2007
Once there was HOSTS.TXT
Centralized for all the host in ARPAnet /etc/hosts were derived from HOSTS.TXT It was maintained by NIC and distributed by a
single host
The changes were e-mailed to NIC in one way
and ftped on the other way once or twice a week
Internet started to grow up exponentially…….
CSCE515 – Computer Network Programming 2007
HOSTS.TXT was a bottleneck
… too much traffic generated by the
updates in both directions.
Main problems:
traffic and load name collision consistency
CSCE515 – Computer Network Programming 2007
Domain Name System (DNS)
A distributed database used by TCP/IP applications to
map between hostnames and IP addresses
No single site on Internet knows all information; each site
maintains its own database and let other sites query it
Domain names comprise a hierarchy so that names are
unique, yet easy to remember.
Can you explain this in CS terms?
Postal system:
David on Main St. in White Plain, NY David on Main St. in Columbia, SC
CSCE515 – Computer Network Programming 2007
Hierarchical Organization of DNS
arpa com edu gov int mil net
- rg
ae us zw … … sc cse sc state www vega
in-addr
118 130 252 129 United Arab Emirates Zimbabwe Unnamed root vega.cse.sc.edu www.state.sc.us
Generic domains Country domains