Internet Technology: Assignment1
Internet Technology: Assignment1
Internet Technology: Assignment1
Assignment1
DNS
DOMAIN NAME SYSTEM
1. Introduction
Every time you visit a website, you are interacting with the largest distributed
database in the world. This massive database is collectively known as the
DNS, or the Domain Name System. Without it, the Internet as we know it
would be unable to function. The work that the DNS does happens so
seamlessly and instantaneously that you are usually completely unaware that
it's even happening. The only time that you'll get an inkling about what the
DNS is doing is when you're presented with an error after trying to visit a
website. Learn more about what the DNS is, how it works and why it's so
critical by reading on below.
When DNS was not into existence, one had to download a Host file containing
host names and their corresponding IP address . But with increase in number of
hosts of internet, the size of host file also increased. This resulted in increased
traffic on downloading this file. To solve this problem the DNS system was
introduced.
2. What is Domain Name System
4. Purpose of DNS
DNS purpose:
DNS provides a mapping between symbolic names and IP
addresses in a worldwide distributed and hierarchic database.
IP address is 32-bit number while on the other hand domain names are easy to
remember names. For example, when we enter an email address we always
enter a symbolic string such as webmaster@tutorialspoint.com.
1- Absolute URL
Absolute URL is a complete address of a resource on the web. This
completed address comprises of protocol used, server name, path name and
file name.
For example http:// www.tutorialspoint.com / internet_technology
/index.htm. where:
http is the protocol.
tutorialspoint.com is the server name.
index.htm is the file name.
The protocol part tells the web browser how to handle the file. Similarly we
have some other protocols also that can be used to create URL are:
FTP
https
Gopher
mailto
news
2- Relative URL
Relative URL is a partial address of a webpage. Unlike absolute URL, the
protocol and server part are omitted from relative URL.
Relative URLs are used for internal links i.e. to create links to file that are
part of same website as the Web Pages on which you are placing the link.
For example, to link an image on
tutorialspoint.com/internet_technology/internet_referemce_models, we
can use the relative URL which can take the form like
/internet_technologies/internet-osi_model.jpg.
6. Domain Name System Architecture
The Domain name system comprises of Domain Names, Domain Name Space,
Name Server that have been described below:
Domain Names
9. DNS Packet
DNS uses the same format for query and response.
DNS uses UDP (port 53), but for large transfers (zone transfers) it uses TCP
(DNS
then uses format of zone file, see
http://www.isoc.org/briefings/020/zonefile.shtml
There are 13 logical root servers, named ‚A‘ through ‚M‘, each administered
by a different organization. Some organizations (such as RIPE, K-root-
server) chose to run multiple redundant physical root servers (called
„mirrors“, DNS server clusters) distributed worldwide. See http://k.root-
servers.org/ for RIPE‘s root servers. These mirrored root servers are
reachable through IPv4 anycast (same IP address, but depending on the host‘s
location the nearest root server is reached by a querying host):
12. How does DNS work?
When you visit a domain such as dyn.com, your computer follows a series of steps
to turn the human-readable web address into a machine-readable IP address. This
happens every time you use a domain name, whether you are viewing websites,
sending email or listening to Internet radio stations like Pandora.
The process begins when you ask your computer to resolve a hostname, such as
visiting http://dyn.com. The first place your computer looks is its local DNS cache,
which stores information that your computer has recently retrieved.
If your computer doesn’t already know the answer, it needs to perform a DNS
query to find out.
If the information is not stored locally, your computer queries (contacts) your ISP’s
recursive DNS servers. These specialized computers perform the legwork of a
DNS query on your behalf. Recursive servers have their own caches, so the process
usually ends here and the information is returned to the user.
If the recursive servers don’t have the answer, they query the root nameservers. A
nameserver is a computer that answers questions about domain names, such as IP
addresses. The thirteen root nameservers act as a kind of telephone switchboard for
DNS. They don’t know the answer, but they can direct our query to someone that
knows where to find it.
The root name servers will look at the first part of our request, reading from right
to left — www.dyn.com — and direct our query to the Top-Level Domain (TLD)
nameservers for .com. Each TLD, such as .com, .org, and .us, have their own set
of nameservers, which act like a receptionist for each TLD. These servers don’t
have the information we need, but they can refer us directly to the servers that do
have the information.
The TLD nameservers review the next part of our request — www.dyn.com — and
direct our query to the nameservers responsible for this specific domain. These
authoritative nameservers are responsible for knowing all the information about
a specific domain, which are stored in DNS records. There are many types of
records, which each contain a different kind of information. In this example, we
want to know the IP address for www.dyndns.com, so we ask the authoritative
nameserver for the Address Record (A).
The recursive server retrieves the A record for dyn.com from the authoritative
nameservers and stores the record in its local cache. If anyone else requests the
host record for dyn.com, the recursive servers will already have the answer and will
not need to go through the lookup process again. All records have a time-to-live
value, which is like an expiration date. After a while, the recursive server will need
to ask for a new copy of the record to make sure the information doesn’t become
out-of-date.
Armed with the answer, recursive server returns the A record back to your
computer. Your computer stores the record in its cache, reads the IP address from
the record, then passes this information to your browser. The browser then opens a
connection to the webserver and receives the website.
13. DNS Operation
Case A. Server does not know binding (not cached locally):
Demo nslookup:
>cmd nslookup
>set type=ptr (set query type to
>193.5.54.112 pointer)
>112.54.4.193.in- (reversed IP
addr.arpa address!)
Solution:
Dynamic DNS enhances DNS with the capability to register a name and IP
address with a server. The lookup to the server is still plain vanilla DNS, but
dynDNS makes it possible to reregister the IP address with the server once it
has changed
(e.g. DSL access with dynamic IP addresses, DHCP).
As opposed to standard DNS, DynDNS uses very low TTL values (~2
minutes or so).
There are also proprietary protocols used for dynamic DNS name
registration with a server.
Often some REST-style protocol (HTTP-based) is used.
Conclusion
DNS and the BIND server both play essential rolls in today's Internet and in
many private networks around the world, so it is beneficial for anyone using a
computer or networked device to at least have a general understanding of how it
all works. Few services effect so many systems and users of those systems as
much as DNS, which is involved virtually every time someone accesses a
network.