DNS server construction in Linux

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.
DNS server construction in Linux

DNS server construction in Linux

DNS server construction in Linux

2. Install the Bind service on Linux. The system CD comes with the bind software package, which can be installed directly after mounting.
DNS server construction in Linux

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.

DNS server construction in Linux

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.

DNS server construction in Linux

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.

DNS server construction in Linux

  1. Now start modifying the configuration file.

DNS server construction in Linux

  1. Next, copy a file for reverse parsing.

DNS server construction in Linux

  1. 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.
    DNS server construction in Linux

  2. Use the host tool to test forward and reverse parsing.
    DNS server construction in Linux

  3. 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.

DNS server construction in Linux
DNS server construction in Linux
DNS server construction in Linux

DNS server construction in Linux

  1. Finally, set the IP and DNS server addresses in the win7 virtual machine that accesses the website service.

DNS server construction in Linux

  1. Make sure to turn off the Windows 7 firewall.

  2. The final visit was successful.
    DNS server construction in Linux

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326841457&siteId=291194637