Configuring DNS in Redhat: Options (Directory "/var/named" )

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

Configuring DNS in Redhat -by Neeraj Gupta

1. Packages Required: a. yum install bind* b. yum install Caching-nameserver c. yum remove bind-chroot 2. Writing the configuration file /var/named.conf options{ directory "/var/named"; };

zone "networkhub.com" IN { type master; file "forward.zone"; allow-update{ none; }; };

zone "1.168.192.in-addr.arpa" IN { type master; file "192.168.0.reverse"; allow-update{ none; }; }; 3. Go to directory /var/named and look for files a. localdomain.zone b. named.local 4. Copy both these files and rename them as shown below: a. localdomain.zone forward.zone
For more visit: www.networkhub.in (or) www.pratapnagaronline.com Call us at: 0141-6000010, 7891100009

b. 192.168.0.local 192.168.1.reverse 5. Alter the permission of both the files a. Chmod o+r forward.zone b. Chmod o+r 192.168.1.reverse 6. Alter the groups of both the files to named a. Chgrp named forward.zone b. Chgrp named 192.168.1.reverse 7. Content of forward.zone are: $TTL @ 86400

IN SOA www.networkhub.com. root.www.networkhub.com. ( 42 ; serial (d. adams) 3H ; refresh 15M ; retry 1W ; expiry 1D ) ; minimum @ IN NS www.networkhub.com. www IN A 192.168.1.1 pc1 IN A 192.168.1.2 8. Content of 192.168.0.reverse are: $TTL 86400 @ IN SOA www.networkhub.com. root.www.networkhub.com. ( 1997022700 ; Serial 28800 ; Refresh 14400 ; Retry 3600000 ; Expire 86400 ) ; Minimum www.networkhub.com. www.networkhub.com.

@ 1

IN NS IN PTR

9. Altering the /etc/resolv.conf file search networkhub.com. nameserver 192.168.1.1 10. Restarting Services: a. Service named restart b. Service network restart

For more visit: www.networkhub.in (or) www.pratapnagaronline.com Call us at: 0141-6000010, 7891100009

For more visit: www.networkhub.in (or) www.pratapnagaronline.com Call us at: 0141-6000010, 7891100009

You might also like