Page 128 - RHEL8 BOOK
P. 128

12.    Edit Reverse Zone File
          [root@sun named]# vi reverse.zone
          $TTL    86400
          @       IN      SOA    sun.idesign.com. root.idesign.com.  (
                                                1997022700 ; Serial
                                                28800      ; Refresh
                                                14400      ; Retry
                                                3600000    ; Expire
                                                86400 )    ; Minimum
                   IN      NS        sun.idesign.com.
          1       IN      PTR     sun.
          2       IN      PTR     moon.

          13.    Check Configuration File1 and File2
          [root@sun named]# named-checkconf /etc/named.conf
          [root@sun named]# named-checkconf /etc/named.rfc1912.zones

          14.    To Check the Forward Zone File Syntax
          [root@sun named]# named-checkzone idesign.com /var/named/forward.zone
          zone mars.com/IN: loaded serial 42

          15.    To Check the Reverse  Zone File Syntax
          [root@sun named]# named-checkzone idesign.com /var/named/reverse.zone
          zone mars.com/IN: loaded serial 1997022700

          16.    Check the Resolution
          [root@sun named]# dig sun.idesign.com
          [root@sun named]# dig moon.idesign.com
          [root@sun named]# dig –x 192.168.10.1
          [root@sun named]# dig –x 192.168.10.2
          [root@sun named]#nslookup
          >sun.idesign.com
          >192.168.10.1

          [root@sun named]#ping sun.iiht.com

          [root@sun named]#ping www.iiht.com
















                                                       S. Pradhan
                             (MCA, MBA-IT, BCA, CCNA, MCSA 2012, RHCE, ETHICAL HACKING)
                                             Email Id:-spradhan.iiht@gmail.com
                                                           128
   123   124   125   126   127   128   129   130   131   132   133