Saturday 11 July 2015

DNS records

Types of DNS records

On a previous post I said that there are some more information's rather than domain name and IP address in a DNS server. There are many records in a DNS server. Records are of 5 types, A, CNAME, NS, MX and PTR.

A              : Map host name to an IP address
eg. xyz.com.     A  123.23.12.3

CNAME  : This record points other domain to a host name which is in A record.
eg. ftp.xyz.com.         A  xyz.com

NS             : This record specifies the authoritative name server for the domain.
eg. xyz.com             NS       ns1.abc.com.

MX             : Specifies the mail server.

PTR            : This record is used for reverse DNS lookup.

You can refer this link to get more :) 


Some usefull online tools for viewing DNS records

Reverse and Forward DNS lookup

DNS lookup

In small terms I found that it is the process which is initiated by a device which is connected to a DNS server say your personal computer which you use at your home which is connected to the internet, when you type a website address in your web browser chrome, firefox or whatever, that domain name is sent to a DNS server to lookup its corresponding IP. Process of looking in a DNS server for particular IP or Domain name can be called as DNS lookup. There are 2 types of DNS lookup, Forward DNS lookup and Reverse DNS lookup.

Forward DNS lookup is the process of looking for an IP address of a specific domain name in a DNS server.
Reverse DNS lookup is the process of looking for a domain name of a specific IP address in a DNS server.

Some tools used for DNS lookup..

Introduction to DNS

A bit about DNS

What is DNS and Why is DNS?? Answer for these 2 questions may clear all the basic doubts regarding DNS. Domain Name System aka DNS is a system that translates the domain name or host name to an IP address. This system uses a database which contains several records to translate a domain or host name to an IP address. The records in that database contains the mapping information's. There are different types of records in it.This databases are stored in a dedicated server and those servers are known as DNS servers. This is what is DNS.. :).

Then the second part why is DNS?? Actually why there is a need for DNS?? Can you remember 216.58.220.46 instead of www.youtube.com or 31.13.79.246 instead of www.facebook.com? Then there is the answer for it. This is the need of DNS. Its a fact that humans can't remember such long numbers of different patterns. Use of phone-book to store contact details of different persons is a good example. Actually whats in it? Its is just mapping of name and pone number.Yes, like that there is only domain names and IP addresses (and some information's regarding it we will see about those things later) are present in a DNS database. DNS makes us easier to remember addresses of different websites easily. It is true that we are surfing on Internet without actually knowing about the IP address of any page or site. You may even don't know whats the IP of this page now you are looking at..:). Thus DNS plays a crucial role in Internet. That's all a bit about DNS you can surf on net for more or can ask me...:)

Wednesday 6 May 2015

Introduction to linux commands

Linux file system hierarchy and basic commands

/ is the root folder. It contain other folders such as root, home, usr, etc, dev, var, bin, boot, run, sbin, tmp.

/root  : Home directory for the super user. i.e., root
/home: Home directory for regular users where there personal data's are stored.
/usr    : Installed software, shared libraries, include files and static read only program data.
/etc    : All the configuration files are stored here.
/dev   : All the device files are listed here.(All hardware are treated as file in Linux)
/var    : Files that dynamically change (variables). All log files are found in this directory.
/tmp   : Contains temporary files. Files older than ten days are deleted automatically in all Linux systems.

Some basic commands and its uses

touch: Used to create an empty file of any type.

syntax: touch <filename.type>

eg: touch newfile.txt
  
This command will create an empty file newfile.txt in the present working directory.
eg: touch /home/newfile.txt
This command will create an empty file newfile.txt in the home directory.

cd: This command is used to change working directory.

syntax: cd <path>

eg: cd /etc/var
This command changes the present working directory to /etc/var

pwd: This command shows the present working directory.

syntax: pwd
eg: pwd

mkdir: This command is used to make a new directory

syntax: mkdir <directoryname>

eg: mkdir newdirectory
This command will create a new directory on present working directory.
eg: mkdir /home/newdirectory
This command will create a new directory in home directory.

ls: This command is used to list all the files and directories in pwd.

syntax: ls [option]

eg: ls -l
this command will list all the files and folders in the pwd.


          

Introduction to linux

Lets start with some Linux talks...

There may questions arise why Linux is used more than windows for system administration and networking purpose.Only noobs raise this question. Yes, off course I also raised the same question to my tutor an year ago. Answer was simple,Security, it was the reason for choosing Linux as a tool for system administration, network management and in servers. And Linux is also cost effective than windows. I also choose Linux because it's open source. More secure, reliable and faster than
Windows. This is not a Linux vs windows talk.. so I am stopping here. Now We can learn some basic commands in Linux.

About the blog

About the articles here

What I always share here may be collected genuine information's from across the web or textbooks written by others. There is nothing that I can share you by my own because I am still studying..;)