This article describes how to use bind software to set up DNS on RedHat6.1. First, yumbind. Note that bind-chroot must be installed to minimize the impact on bind when other directories of the dns server change. Secondly, bind-utils includes dig and other important debugging tools. The main bind configuration file is/etc/named. conf. If you enable simple dns in the firewall or agent, you only need to add forwardo
This article describes how to use bind software to set up DNS on RedHat 6.1.
First, yum bind.
Note that bind-chroot must be installed to minimize the impact on bind when other directories of the dns server change. Secondly, bind-utils includes dig and other important debugging tools.
The main bind configuration file is/etc/named. conf.
If you enable simple dns in the firewall or by the way, you only need to add
- Forward only;
- Forwarders {
- 8.8.4.4;
- 8.8.8.8;
- };
Remove ip restrictions
Listen-on port53{Any ;};
Custom internal zone File
Include"/Var/named/zones/internal/internal_zones.conf";
Add
- Zone"Lzy.org"IN {
- Type master;
- File"Named. lzy. me";
- };
Define/var/named. lzy. me
- $ TTL60
- @ In soa dns address. of. the. mail .(20120217016 H 25 M 1 W 1D)
- @ In ns dns
- Dns IN192.168.56.161
- Www IN172.31.0.103
- Mail IN172.31.0.108
- Www1 in cname www
- Www2 in cname www
Pay attention to port 53 of udp and tcp in the firewall.