{"id":68,"date":"2015-04-30T05:44:25","date_gmt":"2015-04-30T05:44:25","guid":{"rendered":"http:\/\/localhost\/blog\/?p=68"},"modified":"2015-04-30T07:56:35","modified_gmt":"2015-04-30T07:56:35","slug":"dns-server","status":"publish","type":"post","link":"http:\/\/www.mandcgroup.in\/blog\/dns-server\/","title":{"rendered":"DNS Server"},"content":{"rendered":"<p>Please see <strong>YUM SERVER<\/strong> before DNS SERVER<\/p>\n<p><strong>[root@www ~]#<\/strong> yum install bind*<\/p>\n<p>five packages will be install<\/p>\n<ol>\n<li>bind.i686<\/li>\n<li>bind-chroot.i686<\/li>\n<li>bind-dyndb-ldap.i686<\/li>\n<li>bind-libs.i686<\/li>\n<li>bind-utils.i686<\/li>\n<\/ol>\n<p><strong>[root@www ~]#<\/strong> cp -a \/etc\/named.conf \/etc\/named.conf.backup<\/p>\n<p><!--more--><\/p>\n<p><strong>[root@www ~]#<\/strong> cat \/etc\/named.rfc1912.zones &gt;&gt; \/etc\/named.conf<\/p>\n<p><strong>[root@www ~]#<\/strong> hostname<\/p>\n<p><a href=\"http:\/\/www.mc712.com\" rel=\"nofollow\">http:\/\/www.mc712.com<\/a><\/p>\n<p><strong>[root@www ~]#<\/strong> ifconfig eth0<\/p>\n<p>eth0 Link encap:Ethernet HWaddr 00:26:22:52:6F:42<br \/>\ninet addr:192.168.20.34 Bcast:192.168.20.255 Mask:255.255.255.0<br \/>\nUP BROADCAST MULTICAST MTU:1500 Metric:1<br \/>\nRX packets:0 errors:0 dropped:0 overruns:0 frame:0<br \/>\nTX packets:0 errors:0 dropped:0 overruns:0 carrier:0<br \/>\ncollisions:0 txqueuelen:1000<br \/>\nRX bytes:0 (0.0 b) TX bytes:0 (0.0 b)<br \/>\nInterrupt:31<\/p>\n<p><strong>[root@www ~]#<\/strong> vim \/etc\/named.conf<\/p>\n<p><strong>Note<\/strong>: change named.localhost to forward.localhost and named.loopback to reverse.loopback as shown below.<\/p>\n<p>options {<br \/>\ndirectory \u201c\/var\/named\u201d;<br \/>\n};<\/p>\n<p>zone \u201cmc712.com\u201d IN {<br \/>\ntype master;<br \/>\nfile \u201cforward.localhost\u201d;<br \/>\nallow-update { none; };<br \/>\n};<\/p>\n<p>zone \u201c20.168.192.in-addr.arpa\u201d IN {<br \/>\ntype master;<br \/>\nfile \u201creverse.loopback\u201d;<br \/>\nallow-update { none; };<br \/>\n};<\/p>\n<p><a href=\"http:\/\/localhost\/blog\/wp-content\/uploads\/2015\/04\/dns-server1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-69 size-full\" src=\"http:\/\/localhost\/blog\/wp-content\/uploads\/2015\/04\/dns-server1.png\" alt=\"dns server1\" width=\"300\" height=\"209\" \/><\/a><\/p>\n<p><strong>mc712.com<\/strong> is the domain name and <strong><a href=\"http:\/\/www.mc712.com\" rel=\"nofollow\">http:\/\/www.mc712.com<\/a><\/strong> is the FQDN(Fuly qualified Domain Name).<strong>(Do not write <a href=\"http:\/\/\" rel=\"nofollow\">http:\/\/<\/a>)<\/strong><\/p>\n<p>IP ADDRESS is \u201c<strong>192.168.20.34<\/strong>\u201d that why we use \u201c<strong>20.168.192<\/strong>\u201c.<\/p>\n<p><strong>[root@www ~]#<\/strong> cd \/var\/named<\/p>\n<p><strong>[root@www named]#<\/strong> cp -a named.localhost forward.localhost<\/p>\n<p><strong>[root@www named]#<\/strong> cp -a named.loopback reverse.loopback<\/p>\n<p><strong>[root@www named]#<\/strong> vim forward.localhost<\/p>\n<p>$TTL 1D<br \/>\n@ IN SOA <a href=\"http:\/\/www.mc712.com\" rel=\"nofollow\">http:\/\/www.mc712.com<\/a>. root.www.mc712.com. (<br \/>\n0 ; serial<br \/>\n1D ; refresh<br \/>\n1H ; retry<br \/>\n1W ; expire<br \/>\n3H ) ; minimum<br \/>\nNS <a href=\"http:\/\/www.mc712.com\" rel=\"nofollow\">http:\/\/www.mc712.com<\/a>.<br \/>\nwww A 192.168.20.34<\/p>\n<p><strong>(Do not write <a href=\"http:\/\/\" rel=\"nofollow\">http:\/\/<\/a>)<\/strong><\/p>\n<p><a href=\"http:\/\/localhost\/blog\/wp-content\/uploads\/2015\/04\/dns-server2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-70\" src=\"http:\/\/localhost\/blog\/wp-content\/uploads\/2015\/04\/dns-server2.png\" alt=\"dns server2\" width=\"300\" height=\"162\" \/><\/a><\/p>\n<p>use www A 192.168.20.34 because hostname is <a href=\"http:\/\/www.mc712.com\" rel=\"nofollow\">http:\/\/www.mc712.com<\/a>. .<\/p>\n<p><strong>[root@www named]#<\/strong> vim reverse.loopback<\/p>\n<p>$TTL 1D<br \/>\n@ IN SOA <a href=\"http:\/\/www.mc712.com\" rel=\"nofollow\">http:\/\/www.mc712.com<\/a>. root.www.mc712.com. (<br \/>\n0 ; serial<br \/>\n1D ; refresh<br \/>\n1H ; retry<br \/>\n1W ; expire<br \/>\n3H ) ; minimum<br \/>\nNS <a href=\"http:\/\/www.mc712.com\" rel=\"nofollow\">http:\/\/www.mc712.com<\/a>.<br \/>\nA 192.168.20.34<br \/>\n34 PTR <a href=\"http:\/\/www.mc712.com\" rel=\"nofollow\">http:\/\/www.mc712.com<\/a>.<\/p>\n<p><strong>(Do not write <a href=\"http:\/\/\" rel=\"nofollow\">http:\/\/<\/a>)<\/strong><\/p>\n<p>Use 34 PTR because IP is 192.168.20.34<\/p>\n<p>&nbsp;<\/p>\n<p><strong>[root@www named]#<\/strong> service NetworkManager stop<\/p>\n<p><strong>[root@www named]#<\/strong> service network restart<\/p>\n<p><strong>[root@www named]#<\/strong> vim \/etc\/resolv.conf<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-71\" src=\"http:\/\/localhost\/blog\/wp-content\/uploads\/2015\/04\/dns-server3.png\" alt=\"dns server3\" width=\"412\" height=\"105\" srcset=\"http:\/\/www.mandcgroup.in\/blog\/wp-content\/uploads\/2015\/04\/dns-server3.png 412w, http:\/\/www.mandcgroup.in\/blog\/wp-content\/uploads\/2015\/04\/dns-server3-300x76.png 300w\" sizes=\"auto, (max-width: 412px) 100vw, 412px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><strong>[root@www named]#<\/strong> service named restart<\/p>\n<p>Stopping named: [ OK ]<\/p>\n<p>Starting named: [ OK ]<\/p>\n<p><strong>[root@www ~]#<\/strong> cd<\/p>\n<p><strong>[root@www ~]#<\/strong> dig -x 192.168.20.34<\/p>\n<p><a href=\"http:\/\/localhost\/blog\/wp-content\/uploads\/2015\/04\/dns-server4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-72\" src=\"http:\/\/localhost\/blog\/wp-content\/uploads\/2015\/04\/dns-server4.png\" alt=\"dns server4\" width=\"300\" height=\"193\" \/><\/a><\/p>\n<p><strong>[root@www ~]#<\/strong> dig <a href=\"http:\/\/www.mc712.com\" rel=\"nofollow\">http:\/\/www.mc712.com<\/a>.<\/p>\n<p><strong>(Do not write <a href=\"http:\/\/\" rel=\"nofollow\">http:\/\/<\/a>)<\/strong><\/p>\n<p><a href=\"http:\/\/localhost\/blog\/wp-content\/uploads\/2015\/04\/dns-server5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-73\" src=\"http:\/\/localhost\/blog\/wp-content\/uploads\/2015\/04\/dns-server5.png\" alt=\"dns server5\" width=\"300\" height=\"175\" \/><\/a><\/p>\n<p>Permanent on\/off the following services<\/p>\n<p><strong><strong>[root@www ~]<\/strong><\/strong># chkconfig vsftp on<\/p>\n<p><strong><strong>[root@www ~]#<\/strong><\/strong> chkconfig named on<\/p>\n<p><strong><strong>[root@www ~]#<\/strong><\/strong> chkconfig NetworkManager off<\/p>\n<p>Check the \/etc\/resolv.conf file everytime when you start the DNS<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Please see YUM SERVER before DNS SERVER [root@www ~]# yum install bind* five packages will be install bind.i686 bind-chroot.i686 bind-dyndb-ldap.i686 bind-libs.i686 bind-utils.i686 [root@www ~]# cp -a \/etc\/named.conf \/etc\/named.conf.backup<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-68","post","type-post","status-publish","format-standard","hentry","category-redhat-linux-operating-system"],"_links":{"self":[{"href":"http:\/\/www.mandcgroup.in\/blog\/wp-json\/wp\/v2\/posts\/68","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.mandcgroup.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.mandcgroup.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.mandcgroup.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.mandcgroup.in\/blog\/wp-json\/wp\/v2\/comments?post=68"}],"version-history":[{"count":2,"href":"http:\/\/www.mandcgroup.in\/blog\/wp-json\/wp\/v2\/posts\/68\/revisions"}],"predecessor-version":[{"id":112,"href":"http:\/\/www.mandcgroup.in\/blog\/wp-json\/wp\/v2\/posts\/68\/revisions\/112"}],"wp:attachment":[{"href":"http:\/\/www.mandcgroup.in\/blog\/wp-json\/wp\/v2\/media?parent=68"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.mandcgroup.in\/blog\/wp-json\/wp\/v2\/categories?post=68"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.mandcgroup.in\/blog\/wp-json\/wp\/v2\/tags?post=68"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}