DNS Server setup in Linux
Experiment Introduction: This article mainly introduces in the virtual machine Linux environment constructs the DNS (domain name resolution System) server, and finally can realize the domain name the forward and the reverse parsing, finally through one Win7 system's virtual function enough domain name www.benet.com accesses another win7 system the virtual machine.
1, first to the Linux host with IP address, this article Linux IP address 192.168.1.25, used to access the site's Win7 virtual machine IP address is 192.168.1.50, the IP address of the Win7 virtual machine that provides the Web service is 192.168.1.100.
2, install the BIND service on Linux, the system CD-ROM comes with the BIND software package, mounted directly after installation.
3, after the successful installation, will automatically add a named system services, the following major modifications named service configuration file, mainly has three/etc/named.conf,/etc/named.rfc1912.zones,/var/named/directory template files.
4, first modify the/etc/named.conf master configuration file.
5, modify the/etc/named.rfc1912.zones zone configuration file below, add or modify two blocks of zone zone directly inside, one for forward parsing, the other for reverse parsing.
6, finally modify the/var/named/directory of the Zone profile template, the first copy of the Named.localhost template file in the inside of the change, note here, in the copy to retain the original file of the owner and the group.
- Start modifying the configuration file below.
- A copy of the file is then used for reverse parsing.
After the configuration file has been modified, turn off the firewall and system-enhanced security features (ready for future access) and start the named service.
Use the host tool to test forward and reverse parsing.
- The Web service is turned on in the Win7 virtual machine that provides the Web services, and the domain name and IP address are bound to IIS Manager.
- Finally, set the IP and DNS server addresses in the Win7 virtual machine that accesses the Web site service.
Note Be sure to turn off the Win7 firewall.
- The final access was successful.
DNS Server setup in Linux