yum install bind
Create named.conf in /var/named/chroot/etc, using domain accountingshow.com on primary dns server 199.199.133.99 for example. Secondary DNS server IP is 199.199.133.97
// Red Hat BIND Configuration ToolReload the configuration file:
// Default initial "Caching Only" name server configuration
options { directory "/var/named";
allow-notify {199.199.133.97;};
recursion no;
};
zone "accountingshow.com" IN {
type slave;
file "slaves/mydomain.com.dns";
masters { 199.199.133.99 port 53;};
};
check-names ignore;
zone "133.246.199.in-addr.arpa" IN {
type slave;
file "slaves/133.199.199.in-addr.arpa.dns";
masters { 199.199.133.99
port 53;};
check-names ignore;
};
include "/etc/rndc.key";
rndc reload
The log is at /var/log/messages. Use this command to trace the
action:
tail -f /var/log/messages
No comments:
Post a Comment