In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Experimental environment
1. Windows one as wide area network and one as LAN.
2. CentOS7 acts as a DNS server
Start the experiment.
1. Install the DNS service in the networked state
Yum install bind-y
2. Add a network card to centOS after installation, and the network card is set to host-only mode
3. Set the two wWin10 to host-only mode
4. Enter "ifconfig" in centOS7 to check whether the network card has been added successfully.
5. The next step is to configure the network card, configuring "ens33" and "ens36" respectively.
Input
Cd / etc/sysconfig/network-scripts/vim ifcfg-ens33
Change dhcp to static
Add
IPADDR=192.168.100.1
NETMASK=255.255.255.0
6. Make a copy of the configuration file of "ens33" network card and name it "ens36". Input
Cp-p ifcfg-ens33 ifcfg-ens36vim ifcfg-ens36
Delete
UUID=7bdb3fdc-0c3b-4a92-918d-3815b0816b02
Change all "ens33" to "ens36"
Change the IP address to 12.0.0.1
7. Enter service network restart to restart the network card service, and enter ifconfig to view the configuration.
8. Configure IP address, gateway and DNS address for Win10-1 (local area network) and Win10-2 (wide area network) respectively.
Master configuration file
1. Enter "vim/etc/named.conf" to configure and change the listening address and allowed access to any.
2. Copy the root domain resolution in the main configuration file
Zone profile
1. Enter vim/etc/named.rfc1912.zones to configure
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";}; vim "wan" {match-clients (12.0.0.0 kgc.com.wan 24;); zone "kgc.com" IN {type master; file "kgc.com.wan"
Zone data profile
1 、. Use the "cp-p" command to reserve permission to copy a "name.localhost" file named "kgc.com.lan". Then vim enters the editor.
Cd / var/named/cp-p named.localhost kgc.com.lanvim kgc.com.lan
2. Specific configuration
$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 the right to copy a "kgc.com.lan" file, named "kgc.com.wan". Then vim enters the configuration
Cp-p kgc.com.lan kgc.com.wanvim kgc.com.wan
Specific configuration
$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. Start the DNS service and turn off the firewall and enhanced security features
Experimental results
Enter the host to resolve the domain name
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.