In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Experimental environment:
The 1.win10 system acts as a client in the local area network.
2.win10 system is a client that acts as a wide area network.
One of the 3.CentOS7 systems acts as a DNS server.
Preparation for the experiment:
1. Install the DNS service program "bind" on the server system. Note: it needs to be installed in a networked environment.
Enter: yum install bind-y
two。 After installation, a network card is added to the centOS7 system, and the network mode of the original two network cards is set to host-only mode.
3. Change the network mode of system win10 and win10-1 to host-only mode respectively.
4. Enter the centOS7 system and use the "ifconfig" command to see if the network card has been added successfully.
5. Now let's start the configuration of the network card, first configure the "ens33" network card.
Input: cd / etc/sysconfig/network-scripts/ input: vim ifcfg-ens33 change dhcp to static add: IPADDR=192.168.100.1NETMASK=255.255.255.0
6. Make a copy of the configuration file of the "ens33" network card and name it "ens36", and then edit it with the vim editor.
Input: cp-p ifcfg-ens33 ifcfg-ens36 input: vim ifcfg-ens36 delete: UUID=7bdb3fdc-0c3b-4a92-918d-3815b0816b02 change all "ens33" to "ens36" change "192.168.100.1" to "12.0.0.1"
7. Restart the network service and use the "ifconfig" command to see if the configuration is successful.
Input: service network restart input: ifconfig
8. Assign the local area network IP address "192.168.100.100" to the system win10, and set the gateway and DNS to "192.168.100.1". The win10-1 system configures the WAN IP address "12.0.0.12", and both the gateway and DNS are set to "12.0.0.1".
Configuration of the main profile:
1. Use the vim editor to configure the main configuration file "/ etc/named.conf" to change the listening IP and the allowed query scope to "any".
two。 Use "4dd" to cut the contents of the root domain resolution file from the main configuration file.
Configuration of the zone profile:
1. Configure the zone configuration file "/ etc/named.rfc1912.zones" with the vim editor.
Add: view "lan" {match-clients {192.168.100.0 IN 24;}; zone "kgc.com" IN {type master; file "kgc.com.lan";}; zone "." IN {type hint; file "named.ca";}; view "wan" {match-clients {12.0.0.0 kgc.com.wan 24;}; zone "kgc.com" IN {type master; file "24";};}; delete: everything that follows
Configuration of the zone data profile:
1. Use the "cp-p" command to reserve permission to copy a "name.localhost" file named "kgc.com.lan". Then edit it with a vim editor.
Input: cd / var/named/ input: cp-p named.localhost kgc.com.lan input: vim kgc.com.lan
two。 The file configuration is as follows.
$TTL 1D @ IN SOA kgc.com. Admin.kgc.com. (0; serial 1D; refresh 1H; retry 1W; expire 3H) Minimum NS kgc.com. A 192.168.100.1www IN A 192.168.100.99smtp IN A 192.168.100.88
3. Use the "cp-p" command to reserve permission to copy a "kgc.com.lan" file named "kgc.com.wan". Then edit it with a vim editor.
Input: cp-p kgc.com.lan kgc.com.wan input: vim kgc.com.wan
4. The file configuration is as follows:
$TTL 1D @ IN SOA kgc.com. Admin.kgc.com. (0; serial 1D; refresh 1H; retry 1W; expire 3H) Minimum NS kgc.com. A 12.0.0.1www IN A 12.0.0.1smtp IN A 12.0.0.1
5. Turn on the DNS service and turn off the firewall and enhanced security features.
Input: systemctl start named input: systemctl stop firewalld.service input: setenforce 0
6. The domain name can be resolved by testing with win10 host and win10-1 host respectively.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.