Thursday, January 19, 2012

How to Enter DNS Entry

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

0 comments: