UsedLinuxFor a long time, I know something and I will share it with you,DNSAndSendmailThere are many people using the service. I will explain in depth how to install the DNS + Sendmail service in Linux.
Detailed DNS configuration process
1. Set the host name first.
Vi/etc/sysconfig/network
2. Configure the DNS master configuration file
Vi/var/named/chroot/etc/named. conf modify line 16 17 to the following content
3. Configure the forward resolution configuration file
Vi/var/named/chroot/etc/named. rfc1912.zones
4. Configure forward resolution
Cd/var/named/chroot/var/named/copy the named. localhost in this file to named.xiaolei.cn.
Modify named.xiaolei.cn Permissions
Chgrp named named.wolf.cn: Change named.wolf.cn's group to named. Otherwise, access failure may occur.
Configure named.xiaolei.cn
5. Configure DNS reverse resolution
Vi/var/named/chroot/var/named/named.192.168.1
In chgrp named named.192.168.1, change named.192.168.0 to named. Otherwise, access failure may occur.
Service named restart DNS Service