Friday, December 11, 2015

What is Imprtant of DNS Distributed, Hierarchical Database

DNS Distributed, Hierarchical Database solve the below problems 
A single point of failure:- If the DNS server crashes, so does the entire Internet!

Traffic volume:- A single DNS server would have to handle all DNS queries (for all the HTTP requests and e-mail messages generated from hundreds of millions of hosts).

Distant centralized database:-A single DNS server cannot be “close to” all the querying clients. If we put the single DNS server in New York City, then all queries from Australia must travel to the other side of the globe, perhaps over slow and congested links. This can lead to significant delays.

Maintenance:-The single DNS server would have to keep records for all Internet hosts. Not only would this centralized database be huge, but it would have to be updated frequently to account for every new host

DNS - Other important services in addition to translating hostnames to IP addresses

Host Aliasing
  • Host with a complicated hostname can have one or more alias names. For example, a hostname such  as relay.ex1-test.example.com
  • Then in this example host has  two aliases such as example.com and www.example.com. 
  • In this case, the hostname relay.ex1-test.example.com is said to be a canonical hostname. Alias hostnames, when present, are typically more mnemonic than canonical hostnames.
  • Then we typed example.com or www.example.com in the browsers it map to same server 82.166.201.163
You can do simple exercise using packet tracer shown go through  link
Mail server aliasing
Above obvious reasons  e-mail addresses also be mnemonic. For example, if Bob has an account with Hotmail, Bob’s e-mail address might be as simple as bob@hotmail.com. 
However, the hostname of the Hotmail mail server is more complicated and much less mnemonic than simply hotmail.com (for example, the canonical hostname might be something like relay1.west-coast.hotmail.com). 
DNS can be invoked by a mail application to obtain the canonical hostname for a supplied alias hostname as well as the IP address of the host.
Load distribution.
 DNS is also used to perform load distribution among replicated servers, such as replicated Web servers. Busy sites, such as cnn.com, are replicated over multiple servers, with each server running on a different end system and each having a different IP address. 
For replicated Web servers, a set of IP addresses is thus associated with one canonical hostname.
The DNS database contains this set of IP addresses. When clients make a DNS query for a name mapped to a set of addresses, the server responds with the entire set of IP addresses, but rotates the ordering of the addresses within each reply. Because a client typically sends its HTTP request message to the IP address that is listed

you can find the all the IP address for one canonical name tiring below example. 
 How to find the all the ip adddress for one domain name

How to find the all the ip adddress for one domain name

Busy sites, such as cnn.com, are replicated over multiple servers, with each server running on a different end system and each having a different IP address. 
For replicated Web servers, a set of IP addresses is thus associated with one canonical hostname.

In this session shows how to find the all the ip address for one canonical host name in the linux os

As a example try to find the all the ip address for www.google.com, it's mean replicated servers for www.google.com

first we have to find the one ip address for www.google.com (using ping cammand)
 
$ ping www.google.com
PING www.google.com (194.90.196.121) 56(84) bytes of data.
64 bytes from 194.90.196.121: icmp_seq=1 ttl=128 time=256 ms
64 bytes from 194.90.196.121: icmp_seq=2 ttl=128 time=224 ms
64 bytes from 194.90.196.121: icmp_seq=3 ttl=128 time=252 ms
64 bytes from 194.90.196.121: icmp_seq=4 ttl=128 time=259 ms
64 bytes from 194.90.196.121: icmp_seq=5 ttl=128 time=226 ms



after that using whois command to find the origin 

whois -h whois.radb.net  194.90.196.121
 


after that type this command to find the all the ip address using origin AS1680
whois -h whois.radb.net '!gAS1680'





Thursday, December 10, 2015

Creatiing the Network using DHCP server, HTTP Server, DNS server and PC with Packet tracer simulator

  • Create following network using Packet Tracer simulator

  •  Configure Router  
A router is a device that determines the next network point to which a packet should be forwarded toward its destination.
You can do simple exercise using packet tracer shown go through  link to configure Router
How to configure router with packet tracer simulater  
  •  DHCP Server Configuration
Dynamic Host Configuration Protocol (DHCP) is a client/server protocol that automatically provides an Internet Protocol (IP) host with its IP address and other related configuration information such as the subnet mask and default gateway.
 
You can do simple exercise using packet tracer shown go through  link to configure DHCP server
DNS Configuration with Packet Tracer in GUI
  •  DNS Server Configuration

The most important function of DNS servers is the translation (resolution) of human-memorable domain names and hostnames into the corresponding numeric Internet Protocol (IP) addresses. 
 

 You can do simple exercise using packet tracer shown go through  link to configure DNS Server

  • HTTP Server Configuration
A web server(http server) is an information technology that processes requests via HTTP, the basic network protocol used to distribute information on the World Wide 

You can do simple exercise using packet tracer shown go through  link to configure HTTP Server
 Web server Configuration with Packet Tracer in GUI 


After that you can access the web site in the PC using browser typing ip address 192.168.1.50







Web server Configuration with Packet Tracer in GUI

A web server(http server) is an information technology that processes requests via HTTP, the basic network protocol used to distribute information on the World Wide 

In this session show how to host the web site in the web server not conceptually but cat get very simple idea using in packet tracer.

1st set the ip address to dhcp server  192.168.1.50 255.255.255.0
double click server -> config -> fastethernet0 -> set static IP address 192.168.1.50 and subnet mask 255.255.255.0 

Create a simple index.html page in the http server to access for user. 
The html  simple source code  is hear

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="style.css" />
<title>THIS IS TESTING PAGE</title>
</head>
<body>
    <div id="page">
                <div id="header">
                    <img src="logo.png" alt="XHTML Template by Bryant Smith" />
                    <!-- Include an <h1></h1> THIS IS TESTING PAGE -->
                </div>
                    </div>
                <div id="content">
                    <div id="container">

                        <div id="main">
                        <div id="menu">
                            <ul>
                                <li><a href="#">Contact</a></li>
                                <li><a href="#">About</a></li>
                                <li><a href="#">Services</a></li>
                                <li><a href="#">Gallery</a></li>
                                <li><a href="#">Portfolio</a></li>
                                <li><a href="#">Home</a></li>
                            </ul>
                        </div>
                        <div id="text">
                               <h1>THIS IS TESTING PAGE</h1>
                            <p>Blue Micro is meant for a site that doesn't necessarily need a huge amount of content.  I've found that trying to put a small amount of text onto a large template ends up in a site that looks slightly off.  So this template is for those that need a quick and simple site</p>
                           
                            <h1>THIS IS TESTING PAGE</h1>
                            <p>Try to include your keywords in the titles since they are what seach engines pick up, it's also a good idea to try to include those same keywords in the title as well (only one of two of your best ones).</p>
                            <h1>THIS IS TESTING PAGE</h1>
                          <p>I debated using a fancy background for this template, but ultimately just decided to keep it blank. I did however create all the images with Alpha transparency, which means that regardless of what background you choose, it will always look good. So keep it white, or experiment with it if you please.</p>
                            <h1>THIS IS TESTING PAGE</h1>
                            <p>This template validates as XHTML 1.1 - this is to ensure it'll work for many years to come, and it makes it really easy for you to modify.</p>
                            <p>Try to include your keywords in the titles since they are what seach engines pick up, it's also a good idea to try to include those same keywords in the title as well (only one of two of your best ones).</p>
                       
                                                
                        </div>

                        </div>
                </div>
                <div class="clear"></div>
                <div id="footer">
                    <p><a href="http://www.bryantsmith.com/template">free xhtml template</a> by <a href="http://www.bryantsmith.com">web page designer</a></p>
                </div>
         
        </div>
    
</body>
</html>


Copy and paste simple html cord in the index.html page  
After that you can access the web site in the PC using browser tying ip address 192.168.1.50

 

DNS Configuration with Packet Tracer in GUI

The most important function of DNS servers is the translation (resolution) of human-memorable domain names and hostnames into the corresponding numeric Internet Protocol (IP) addresses. 

It is used bunch of records to do these things such as NS records,CNAME, TXT ,A records etc. these bunch of records details are stored in db file according to the domain.
In this exercise we can get brief idea of these records but it is not actual one in the DNS server. 

1st set the IP address to the DNS server 
double click server -> config -> fastethernet0 -> set static IP address 192.168.1.3 and subnet mask 255.255.255.0



 Add a records to the DNS server

In this example the host 192.168.1.50  www.testingpage.com use aliasing name such as
mytesting and testing.com. These alias name enter as CNAME records in to the DNS server in the db file. Then enter the A record for the  www.testingpage.com.

mytesting CNAME www.testingpage.com

testing.com CNAME www.testingpage.com

www.testingpage.com A record 192.168.1.50 



 Then we can use host name www.testing.com to mytesting,and testing.com in the browser

DHCP Server Configuration with packet tracer in GUI

Dynamic Host Configuration Protocol (DHCP) is a client/server protocol that automatically provides an Internet Protocol (IP) host with its IP address and other related configuration information such as the subnet mask and default gateway.
In this session show how to set the ip pool to dhcp server using GUI with packet tracer.   

1st set the ip address to dhcp server  192.168.1.3 255.255.255.0


then set the ip pool in to the DHCP server

type the pool name: serverpool
 Default gatway:192.168.1.1
DNS server ip address:192.168.1.2
start ip address :192.168.1.0
subnet mask : 255.255.255.0
maximum number of users: 256



After that DHCP server connect to the switch and create a network as bellow .




After that set the option ip address dynamically in the PC