DNS and types
Hi, please help me on this
I m making DNS by using following configurations
1. Install related rpms " bind , bind-utils, bind-chroot caching-namserver"
2. cd /var/named/chroot/etc/
3. cp named.caching-nameserver.conf named.conf
4. service named configtest
5. service named restart
6. ls -lZ
7. chown root:named named.conf
8. chmod 640 named.conf
9. restorecon named.conf
10. ls -lZ
11. service named configtest
12. service named start
13. chkconfig named on
14. service iptables stop ( if on )
15. vi named.conf # For caching-nameserver DNS
#inside such file go for 'option' section
listen-on port 53 { localhost; 192.168.0.X; } ; #where X is your PC ip
allow-query { localhost; 192.168.0.0/24 ; } ;
allow-transfer { localhost ; 192.168.0.254; };
forwarders { 192.168.0.254; } ;
forward only ;
16. service named configtest
17. service named restart
18. netstat -tulpn | grep named
19. service named configtest
20. service named restart
# CONFIGURE LOCAL RESOLVER
21. vi /etc/sysconfig/network-scripts/ifcfg-eth0
22. PEERDNS=no #prevent dhclinet to overwriting changes in such file
23. vi /etc/resolv.conf
24. search example.com
nameserver 192.168.0.254
25. service named configtest
26. service named restart
27. service network restart
#Adding zone data
28. create zone files in /var/named/chroot/etc/named.rfc1912.zones
Note : -> zone files are attached with mails
29.After create zones ..
cd /var/named/chroot/var/named
cp localhost.zone forward.zone
chown root:named forward.zone
chcon -R --reference=localhost.zone forward.zone
cp named.local reverse.zone
chown root:named reverse.zone
chcon -R --reference=named.local reverse.zone
30. service named configtest
31. service named restart
This includes some other files like Forward.zone and reverse.zone
can anyone tell me what kind of DNS is this ,
And how this one works
|