DNS server construction in Linux
Experiment introduction: This article mainly introduces the establishment of a DNS (Domain Name Resolution System) server in the virtual machine Linux environment, and finally can realize the forward and reverse resolution of the domain name, and finally through a win7 system virtual machine can use the domain name www.benet. com to access another virtual machine of win7 system.
1. First, assign an IP address to the Linux host. In this article, the IP address of Linux is 192.168.1.25, the IP address of the win7 virtual machine used to access the website is 192.168.1.50, and the IP address of the win7 virtual machine that provides website services is 192.168.1.100.
2. Install the Bind service on Linux. The system CD comes with the bind software package, which can be installed directly after mounting.
3. After the installation is successful, a named system service will be automatically added. The following is to modify the configuration file of the named service. There are three main directories: /etc/named.conf, /etc/named.rfc1912.zones, and /var/named/ template file.
4. First modify the main configuration file /etc/named.conf.
5. Modify the /etc/named.rfc1912.zones zone configuration file below, add or directly modify two zones in it, one for forward analysis and the other for reverse analysis.
6. Finally, modify the regional configuration file template in the /var/named/ directory. First, copy a named.localhost template file and modify it in it. Note here that the owner and group of the original file should be preserved when copying.
- Now start modifying the configuration file.
- Next, copy a file for reverse parsing.
-
After the configuration file is modified, turn off the firewall and system enhanced security features (in preparation for future access), and start the named service.
-
Use the host tool to test forward and reverse parsing.
- Next, start the web service in the win7 virtual machine that provides website services, and bind the domain name and IP address to the IIS manager.
- Finally, set the IP and DNS server addresses in the win7 virtual machine that accesses the website service.
-
Make sure to turn off the Windows 7 firewall.
- The final visit was successful.