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
[root@localhost ~]# vi /var/named/chroot/etc named.conf
then make a new zone for attaakwal.blogspot.com
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)
 using command
touch attaakwal.blogspot.com
And edit it
vi attaakwal.blogspot.com

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

www A

how to check new DNS entry

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

Leave a Reply

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