What is DNS?

Domain Name System (DNS) is the phone book of websites in the internet world.
Translate the human readable domain name to machine readable IP address.

DNS is the foundations of the internet, that works very quickly (in milliseconds) in the background to match the name of the website to IP address.

Types of DNS service :
1. Authoritative DNS
2. Recursive DNS

How to enter a new site name in DNS

first open
[root@localhost ~]# vi /etc/named.conf
or
[root@localhost ~]# vi /var/named/chroot/etc named.conf
then make a new zone for attaakwal.blogspot.com
eg.
zone “attaakwal.blogspot.com” IN {
        type master;
        file “attaakwal.blogspot.com“;
        allow-update { none;};
};

then move the following dir
[root@localhost ~]#/var/named/chroot/var/named
first make new zone file (site name)
eg.
 using command
touch attaakwal.blogspot.com
And edit it
vi attaakwal.blogspot.com

And paste….
$ORIGIN .
$ttl 86400
attaakwal.blogspot.com. IN      SOA     ns1.attaakwal.blogspot.com. attaakwal.gmail.com. (
                        29198
                        10800
                        900
                        604800
                        86400 )
                        NS      ns1.attaakwal.blogspot.com.
                        MX      1 mail.attaakwal.blogspot.com.
attaakwal.blogspot.com          A       208.67.222.222
$ORIGIN attaakwal.blogspot.com.

www A 208.67.222.222

how to check new DNS entry

[root@localhost ~]#dig @DNS server IP Site Address
[root@localhost ~]#dig @208.67.222.222 attaakwal.blogspot.com

Leave a Reply

Your email address will not be published. Required fields are marked *