In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Introduction to DNS: it is a domain name system, a distributed database that maps domain names and IP addresses to each other on the World wide Web, making it more convenient for users to access the Internet without having to remember the IP strings that can be read directly by the machine.
Domain name structure:
Second, the working process:
1. Recursive query: generally, there is a recursive query between the client and the server, that is, when the client sends a request to the DNS server, if the DNS server itself cannot parse, it will issue a query request to another DNS server and transfer the result to the client.
two。 Iterative query (repeated query): general DNS servers belong to iterative query
3. Experimental environment: 1. Server: Winndows server 2016 Magi 2, client: windows10
Fourth, the experimental process:
1. First, adjust the network connection mode of the network card of the virtual machine to host-only mode.
2. Open the properties of the network in server 2016 below
3. Then find "change Network Adapter Settings" and double-click to enter
4. Find the icon below, and right-click to open the properties.
5. Find "internet Protocol" in the properties and double-click in it.
6. Give it a fixed IP address here
7. Then make sure to turn off the property
8. Next, assign the IP address of windows 10, and point the DNS address to the previously assigned address
9. After matching, use the following steps to check whether they can communicate with each other. It is found that they are not connected, and most of them are being interfered by firewalls.
10. Just use the following steps to turn off the firewall
11. After turning off the firewall, you will see that they can communicate with each other.
12. Next, open the start menu in server 2016 and find and open the Server Manager in the following figure
Find "add roles and features" in the dashboard and open it
14. Then click next:
15. Select the option shown in the figure and click next to start the installation.
Then select "Select a server from the server pool", and then select the local server in the figure to continue to the next step
17. Select "DNS server" here
18. Then you will jump out of the interface shown in the picture and click "add function".
19. Some of the following friends may jump out of this prompt, ignore it for the time being, and click continue
20. Then click "install" to start the installation. After installation, you will find and type DNS in the start menu and double-click to open it.
21. After entering or seeing the interface shown in the figure, click the drop-down arrow shown in the figure.
22. Then click to select "forward find area" and right-click the open option
23. Find the "new area" and click to enter
24. After entering, you will jump out of a wizard interface and click next.
25. Next, you will select "area Type", select "main region" and click next.
26. Then give the area a name
27. Click next to enter the "area file". No changes are recommended here.
28. Next, you will enter "dynamic update". It is best to keep the default disallow.
29. The area is basically built here, and click finish
30. When you are finished, you will see the default file and server name on the right side of the way when "yun.com" is opened.
Then right-click the mouse in the blank area of the diagram to find and open the new host
32. Name the host name and the corresponding IP address here
33. After entering all, click "add Host" and you will see the prompt in the following figure.
34. Next, call up the "command prompt" and enter "nslookup+ hostname" to see the resolved IP address.
35. Next, set up the virtual host in WEB. There are three ways: different IP address; same IP address, different port; same IP and port, different host name.
36. Different IP addresses: first add a network card in server 2016 and open the settings of the virtual machine to add
37. Then change the connection mode of the network card to "host only mode"
38. The next step is to see if the built network card is recognized by the system, if it is not recommended to restart it.
39. The following is the same as the previous application to configure the IP address for the network card. It is best to restart it after configuration.
40. After restart, call up "Command prompt" and enter "ipconfig" to check whether the configured IP address is valid.
41. Next, formally build the web service, and continue to open the "Server Manager" to add
42. Then click Open to install it
43. Next go to the start menu to find and open it
44. Open it and open the drop-down arrow at the interface point as shown in the picture to find "Default Web Site"
45. When you find it, select it and click "bind" on the right.
46. After entering the binding, select the icon area and click "Edit".
47. Click the drop-down arrow to select an IP address
48. Then set up the site file in the free E disk
49. Let's teach you a quick way to set it up. Call up the "command prompt" and enter "e:" to enter the E disk.
50. Then enter "mkdir+ file name"
51. After we checked the E disk, the folder began to be built.
52. Put the web page file in the folder below. Enter "echo+" web content "> index.html" as shown in the picture.
53. Next, go back to the interface shown in the figure and click "basic Settings".
54. When you open it, you will see the "Edit website" interface. Click the location shown in the icon to select the path.
55. Add the site route we built earlier
56. Then click "default document" in the diagram to see if the HTML file format is supported
57. If you visit the website with a browser, you can see that the right-click has successfully accessed the
58. Let's create another IP address website, and right-click "website" in the icon interface to find "add website"
59. Enter the name and path of the website.
60. Select the name of the new website to bind
61. Bind this site to another IP address
62. Then go to the browser and type "192.168.100.110" to browse to
63. Set the same IP address and different ports below, set the IP address of the "bigdata" website to "192.168.100.100", and change the port to "8080".
64. We continue to browse 192.168.100.100 with our browser.
65. So how do you access bigdata? type: 8080 after the original IP address.
66. Finally, let's look at the settings of the same IP and port and different hostnames. Select the previous site name, and then click "bind".
67. Next, click Edit to enter the host name.
Note here that we have only added one parse before, so we have to add another one.
69. Establish the host name and bind IP address as well
70. after it is all finished, use the browser to browse it. Enter the host name here to browse.
You can see here that you can browse successfully!
70. so if you want our client to obtain the IP address automatically, how to implement it?
71. Continue to install the "DHCP server" shown below
72. Then go to the start menu and open it
73. Then you will enter here and open the drop-down arrow according to the icon.
74. Click on to find "IPv4" and right-click the mouse to enter
75. After entering, find "New scope" and click it to enter
76. Then go to the wizard interface and click next
77. Name it here
78. Set a range for the IP address
79. Enter the range of addresses occupied by the situation below.
80. The lease term can be changed step by step here, using its default time
81. then it's time for the configuration option. Be sure to choose and configure it.
82. Next, I will let you set up the gateway.
83. Enter the IP address here and then add
84. "Wins server" is not set for the time being.
85. Click New on the activation interface to deactivate.
86. After activation, go to the client to call up the "command prompt" and enter "ipconfig / renew" to see the picture.
87. Finally, enter "ipconfig / all" to check the DHCP server address and the DNS server address
We can see that this laboratory is successful, thank you!
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.