Difference between TCP and UDP


What is the Difference between TCP and UDP Protocols ?

TCP Transmission Control Protocol 

UDPUser Datagram Protocol

TCP is connection-oriented protocol. and UDP is connectionless protocol.
TCP Data is read as a "stream,"  and in UDP Packets are sent as "Packets" (individually).
* TCP guarantees that will reach the destination. But UDP won't guarantees.
* UDP is faster for sending small amounts of data since no connection setup is required, The data can be     sent in less time then it takes for TCP to establish a connection.


DNS propagation delay

What is mean by Propagation delay ?

Lets look close into it:-


When a request to get the IP of a domain is generated from a machine or client, the ISP fetches the information from the authoritative name servers. Then it keeps the records in the ISP cache for a
specified interval of time. This process of keeping the records is called ISP caching.

It can be compared with a browser cache up to a good extent. If another user requests to access the domain
from the same ISP, the IP stored in the cache will be served to the new client. Obviously the speed will be higher. You can experience the difference while accessing google.com and a normal, not so common domain.

Unlike browser cache, we don't have any control over ISP cache and can't delete the cache file. So when a change is done on the authorative DNS servers, to reflect it on all ISPs we need to wait for the refresh interval specified in zone file. This time delay can take up to 48 hours and is called DNS propagation delay.

During this time, there can be difference for the modified records from different ISPs.

How to Register a Domain

Domain Name Registration

Lets look how to register a Domain:


Domain registration is the process by which a company or individual can procure a domain, such as ww.example.com.

Once you have completed domain registration the domain becomes yours for the period of the contract,
usually one year. Before registration expires it must be renewed, or the domain goes to a new status called Domain Renewal Hold for 15-60 days (dependingon the tld), and even after that period if the domain is not renewed, it will be deleted and will be available to the public for sale.

Domain registration is available to the public via a registrar authorized by ICANN. Fees and services vary from company to company.

ICANN


ICANN (Internet Corporation for Assigned Names and Numbers)



The Internet is tightly managed by Internet Corporation for Assigned Names and Numbers (ICANN).

To reach another person on the Internet you have to type an address into your computer - a name or an IP address. That address has to be unique so computers know where to find each other. Coordinates these
unique identifiers across the world. Without that coordination we wouldn't have one global Internet.


ICANN doesn’t control content on the Internet. But through its coordination role of the Internet’s naming system, it does have an important impact on the expansion and evolution of the Internet.

Different Types of TLDs

 Generic TLD

TLDs used by particular type of organisation. The given below listed the different types of Generic TLDs.


  • .aero - for the air transport industry
  • .asia - for companies. organisations and individuals in the Asia-Pacific region
  • .biz - for business use
  • .cat - for Catalan language/culture
  • .com - for commercial organizations, but unrestricted
  • .coop - for cooperatives
  • .edu - for post-secondary educational establishments
  • .gov - for governments and their agencies in the United States
  • .info - for informational sites, but unrestricted
  • .int - for international organizations established by treaty
  • .jobs - for employment-related sites
  • .mil - for the US military
  • .mobi - for sites catering to mobile devices
  • .museum - for museums
  • .name - for families and individuals
  • .net - originally for network infrastructures, now unrestricted
  • .org - originally for organizations not clearly falling within the other gTLDs, now unrestricted
  • .pro - for certain professions
  • .tel - for services involving connections between the telephone network and the Internet
  • .travel - for travel agents, airlines, hoteliers, tourism bureaus, etc.
ccTLDs - Country Code TLDs

These Domain is generally reserved or used for country or TertiaryThe given below listed the different types of Country Code TLDs.

What is the domain name system and a short note on ICANN



The domain name system, or, is a system designed to make the Internet accessible globally. The main way computers that make up the Internet find one another is through a series of numbers, with each number (called an “address”) correlating to a different device. However it is difficult for the human mind to remember long lists of numbers so the uses letters rather than numbers, and then links letter strings with a precise series of numbers.

A domain name itself comprises two elements: before and after “the dot”. The part to the right of the dot, such as “com”, “net”, “org” and so on, is known as a “top-level domain” or TLD. One company in each case (called a registry), is in charge of all domains ending with that particular and has access to a full list of
domains directly under that name, as well as the addresses with which those names are associated.

The part before the dot is the domain name that you register and which is then used to provide online systems such as websites, email and so on. These domains are sold by a large number of “registrars”, free to charge whatever they wish.

ICANN draws up contracts with each registry. It also runs an accreditation system for registrars. It is these contracts that provide a consistent and stable environment for the domain name system, and hence the Internet.

ICANN plays a similar administrative role with the addresses used by computers as it does with the domain names used by humans. In the same way that you cannot have two domain names the same (otherwise you never know where you would end up), for the same reason it is also not possible for there to be two IP addresses the same.

It co-ordinate how addresses are supplied to avoid repetition or clashes. . ICANN is also the central repository for addresses, from which ranges are supplied to regional registries who in turn distribute
them to network providers.

Root servers

Lets see what is mean by Root Servers


They are part of the Domain Name System (DNS).

The root zone file describes where the authoritative servers for the DNS top-level domains (TLD) are located; in other words: which server one has to ask for names ending in one of TLDs, such as ORG, NET, NL or AU.

There are 13 root servers at present – or, more accurately, there are 13 addresses on the Internet where root servers can be found (the servers that have one of the 13 addresses can be in dozens of different physical locations).

These servers all stores a copy of the same file which lists an address for each top-level domain (.com, .de, etc) where that registry’s own address book can be found.

For more details visit :-
http://linuxtric.blogspot.in/2013/02/root-name-servers.html

TLD (Top Level Domain)

What is mean by TLD?

TLD means Top Level Domain.

Domain extension on the Internet are often called as TLDs(Top Level Domains). Its something you encountered every time while you surfing the web page.

In short TLDs are the last part of the domain name. For example .com, .net , .org etc..

 There are 2 types are TLDs.They are

* Generic TLD &
* ccTLD Country code Top Level Domain

How to unblock an IP from the server

Lets see how to unblock an IP from the server Firewall

At first grep the IP whether it is blocked in the server or not

#csf -g <IPaddress>

If this query shows that the IP is blocked in the server,  Then unblock the IP from the server using the below command

#csf -dr <IPaddress>

It will drop the IP from the server.

How to enable Port number ?

How to enable TCP Port number?
How to enable UDP Port number?

Lets see how to enable incoming and outgoing  TCP & UDP Ports in Linux / Unix Servers

Edit the configuration file

#vim /etc/csf/csf.conf

Add the necessary ports in the TCP incoming and outgoing & UDP incoming & outgoing line specified in the configuration file.

Now restart the service

#service csf restart
#csf -r
#csf -e
 

Root Name Servers

13 Root Name servers



There are 13 Root Name servers are situated around the world. As the picture shown above Root name servers starts from Capital letter A to M.

10 servers were originally in the United States , Some are now operated via any-cast.
3 Servers were originally in Stockholm(I), Amsterdam(K) and Tokyo(M)

Ports

The Different Ports in your system


Linux Trickes

How the DNS works ?

Working Overview of DNS

Lets look the working overview of DNS




The basic function of DNS is to resolve IP address from domain name. We must know the basics of
DNS before proceeding further

Suppose, you are searching the domain http://www.example.com in your browser,


The first step is that the query checks to which file or service it should search for the IP address. The order is
specified in /etc/nsswitch.conf.

There the entry will be specified as like

************
hosts: files dns
************

Which means, for programs that want to resolve an address. They should use the files present in the
system (E.g./etc/hosts,) first, and then DNS servers.

In our case it will first check for the IP address of example.com in the /etc/hosts file and if it fails to find it, then it will check for DNS.

The resolver library used by BIND needs a configuration file which specifies the name servers and it is /etc/resolv.conf. If this file does not exist or is empty, the resolver assumes the name server is on your local host.

DNS

What is mean by DNS ?





The DNS is considered as the most essential service in the case of a website.

Its failure results webserver, Mail server, mysql service for a website to be seen down. So understanding the DNS is essential to work as a Sysadmin.

The first step regarding a domain is registering a domain name with the registrar. Then two name
servers will be assigned for the domain.

Once the Name servers are assigned, it implies that the valid records for DNS of the domain are present in the specified Name Servers. It means that the changes made in these NS records alone will be valid and propagated through the Internet. Hence these name servers are termed as "authoritative Name servers".