Method, system and equipment for accessing AP (Access Point) and storage medium
The IP address of the first DNS server is obtained from the DHCP server through the terminal, and the IP address of the first DNS server is used to query and return the IP address of the AP, solving the problem that users need to know the AC management address and have management permissions to access the AP, and achieving rapid and Simple AP access.
Patent Information
- Application Number
- CN202411347896.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-26
- Publication Date
- 2025-02-07
AI Technical Summary
In the prior art, users need to know the management address of the access controller (AC) and have management permissions, and the operation is complex and not fast enough to access the wireless access access point (AP).
The terminal sends a DHCP request to the Dynamic Host Configuration Protocol (DHCP) server to obtain the IP address of the first DNS server. The first DNS server receives the domain name query message and determines whether the domain name is the preset domain name information. If so, the query terminal corresponding The IP address of the AP is returned to the terminal, and the terminal can access the AP.
Without knowing the management address of the AC and having management permissions, users can access the AP they are located in quickly and easily, making the operation process simplified.
Smart Images

Figure CN119402472A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a method, system, device and storage medium for accessing an AP. Background Art
[0002] Wireless access controller (AC) + wireless access point (AP) networking is a wireless local area network (WLAN) networking architecture based on centralized management, which is suitable for large enterprises, schools and other occasions that require fine management of the network. This networking architecture is mainly composed of AC and multiple APs. AC, as the network management center, is responsible for controlling and managing all APs, while AP, as the access point, is responsible for covering wireless signals and accessing terminals.
[0003] The traditional method for a terminal to access the AP is to first query the IP address information of the terminal's wireless network card, then the terminal logs in to the AC, queries the AP associated with the terminal's IP in the AC's management information, and thus obtains the IP address information of the AP where the access terminal is located. Finally, the terminal accesses the AP through the AP's IP address.
[0004] However, in this method, the user must know the management address of the AC and have the management authority of the AC. The operation is complicated and not fast enough. Summary of the invention
[0005] The present application provides a method, system, device and storage medium for accessing an AP, which allows a user to access the AP without knowing the management address of the AC and having the management authority of the AC. The operation process is relatively simple and the user can quickly access the AP.
[0006] In order to achieve the above objectives, this application adopts the following technical solutions:
[0007] In a first aspect, the present application provides a method for accessing an AP, wherein a terminal sends a DHCP request to a dynamic host configuration protocol DHCP server in advance, and the DHCP server allocates first DNS server IP information to the terminal according to the DHCP request, wherein the IP address information of the first DNS server is the IP address of an access controller AC, and the method includes:
[0008] The first DNS server receives a domain name query message sent by the terminal;
[0009] The first DNS server determines whether the domain name information carried by the domain name query message is the preset domain name information, and obtains a first judgment result, wherein the preset domain name information is the domain name information of the access point AP;
[0010] If the first judgment result indicates that the domain name information carried by the domain name query message is the preset domain name information, the source IP address of the domain name query message is obtained, the IP address of the corresponding AP is queried according to the source IP address, and a first domain name response message is returned to the terminal, so that the terminal accesses the AP according to the IP address of the AP, and the content of the first domain name response message is the IP address of the AP.
[0011] In some possible implementations, the method further includes:
[0012] If the first judgment result indicates that the domain name information carried by the domain name query message is not the preset domain name information, the first DNS server sends the domain name query message to the second DNS server;
[0013] The first DNS server receives the IP address queried by the second DNS server according to the domain name information carried in the domain name query message, where the domain name information carried in the domain name query message is the domain name information of the second visited site.
[0014] In some possible implementations, the method further includes:
[0015] If the first DNS server fails to query the IP address of the corresponding AP according to the source IP address, the first DNS server does not return the first domain name response message to the terminal.
[0016] In some possible implementations, the source IP address includes an IP address of the terminal, and determining the IP address of the corresponding AP according to the source IP address includes:
[0017] The first DNS server determines the AP corresponding to the terminal based on the mapping relationship between the reference terminal and the reference AP, thereby the first DNS server queries the IP address of the AP corresponding to the terminal.
[0018] In some possible implementations, the method further includes:
[0019] If the second DNS server fails to find the IP address of the corresponding second access site according to the domain name query message, the second DNS server does not return the second domain name response message to the terminal.
[0020] In a second aspect, the present application provides an access AP system, the system comprising: a terminal, a first DNS server, a DHCP server, and an access point AP;
[0021] The terminal is used to send a DHCP request to a Dynamic Host Configuration Protocol DHCP server in advance;
[0022] The DHCP server is used to allocate the first DNS server IP information to the terminal according to the DHCP request, wherein the IP address information of the first DNS server is the IP address of the access controller AC;
[0023] The first DNS server is used to receive the domain name query message sent by the terminal, determine whether the domain name information carried by the domain name query message is the preset domain name information, and obtain a first judgment result, where the preset domain name information is the domain name information of the access point AP;
[0024] If the first judgment result indicates that the domain name information carried by the domain name query message is preset domain name information, obtaining a source IP address of the domain name query message, querying an IP address of a corresponding AP according to the source IP address, and returning a first domain name response message to the terminal, wherein the content of the first domain name response message is the IP address of the AP;
[0025] The terminal is used to access the AP according to the IP address of the AP.
[0026] In some possible implementations, the first DNS server is used to send the domain name query message to a second DNS server;
[0027] The second DNS server is configured to send the queried IP address to the first DNS server according to the IP address queried by the domain name information carried in the domain name query message;
[0028] The first DNS server is used to return a second domain name response message to the terminal, wherein the content of the second domain name response message is the IP address of the second visited site.
[0029] The terminal is used to access the second visited site according to the IP address of the second visited site, and the domain name information carried in the domain name query message is the domain name information of the second visited site.
[0030] In some possible implementations, the first DNS server is configured not to return the first domain name response message to the terminal if the IP address of the AP corresponding to the source IP address is not found.
[0031] In a third aspect, the present application provides a computing device, including a memory and a processor;
[0032] One or more computer programs are stored in the memory, and the one or more computer programs include instructions; when the instructions are executed by the processor, the computing device executes the method as described in any one of the first aspects.
[0033] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, and the computer program is used to execute the method as described in any one of the first aspects.
[0034] It can be seen from the above technical solution that the present application has at least the following beneficial effects:
[0035] In the present application, the terminal sends a DHCP request to a Dynamic Host Configuration Protocol DHCP server in advance, and the DHCP server assigns a first DNS server to the terminal according to the DHCP request. The first DNS server receives a domain name query message sent by the terminal, and determines whether the domain name information carried in the domain name query message is the preset domain name information. If the domain name information carried in the domain name query message is the preset domain name information, the IP address of the terminal is obtained, and the IP address of the AP corresponding to the terminal is queried according to the IP address of the terminal. Then, the first DNS server returns the query result to the terminal, so that the terminal can access the AP according to the IP address of the AP; if the domain name information carried in the domain name query message is not the preset domain name information, the first DNS server sends the domain name query message to the second DNS server, and queries the IP address of the access site corresponding to the terminal according to the IP address of the terminal. Then, the second DNS server sends the query result to the first DNS server, and the first DNS server returns the query result to the terminal, so that the terminal can access the access site according to the IP address of the access site. In the traditional solution, the terminal first queries the IP address of the terminal and the IP address information of the AC, then logs in to the AC, queries the AP associated with the IP of the terminal in the management information of the AC, and obtains the IP address information of the AP where the access terminal is located, and finally the terminal accesses the AP through the IP address of the AP. However, in this method, the user must know the management address of the AC and have the management authority of the AC, which is relatively complicated and not fast enough during the operation. It can be seen that in this application, the terminal sends a domain name request to the first DNS server to obtain the IP address of the access point corresponding to the terminal. Since the dynamic host configuration protocol DHCP server has sent the IP address of the first DNS server to the terminal when accessing the network, and configures the IP address of the first DNS server as the IP address of the AC, during the access process, the terminal does not need to know the IP address of the AC to make a domain name request. It can be seen that the solution of this application allows users to access the AP without knowing the management address of the AC and having the management authority of the AC. It is relatively simple during the operation, and users can quickly access the AP.
[0036] It should be understood that the description of technical features, technical solutions, beneficial effects or similar language in this application does not imply that all features and advantages can be realized in any single embodiment. On the contrary, it is understood that the description of features or beneficial effects means that specific technical features, technical solutions or beneficial effects are included in at least one embodiment. Therefore, the description of technical features, technical solutions or beneficial effects in this specification does not necessarily refer to the same embodiment. Furthermore, the technical features, technical solutions and beneficial effects described in the present embodiment can also be combined in any appropriate manner. Those skilled in the art will understand that the embodiment can be realized without one or more specific technical features, technical solutions or beneficial effects of a specific embodiment. In other embodiments, additional technical features and beneficial effects can also be identified in a specific embodiment that does not embody all embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 A schematic diagram of an application scenario provided in an embodiment of the present application;
[0038] Figure 2 A flowchart of a method for accessing an AP provided in an embodiment of the present application;
[0039] Figure 3 A schematic diagram of a first access AP system provided in an embodiment of the present application;
[0040] Figure 4 A schematic diagram of a second access AP system provided in an embodiment of the present application;
[0041] Figure 5 A schematic diagram of a third access AP system provided in an embodiment of the present application;
[0042] Figure 6 A schematic diagram of a computing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0043] The terms "first", "second", "third", etc. in the specification of this application and the accompanying drawings are used to distinguish different objects rather than to limit a specific order.
[0044] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0045] In order to make the description of the following embodiments clear and concise, a brief introduction to the related technology is first given:
[0046] A terminal (Station, STA) is a mobile device connected to a wireless network, such as a mobile phone, tablet computer, laptop computer, etc. STA usually acts as a client in a wireless network, communicating with AP (Access Point) through wireless signals to access the network and obtain Internet access.
[0047] AP is a wireless switch in a traditional wired network and is also the most commonly used device when building a small wireless LAN. AP is equivalent to a bridge connecting the wired network and the wireless network. Its main function is to connect various wireless network clients together and then connect the wireless network to the Ethernet to achieve the purpose of wireless network coverage.
[0048] AC (Access Controller) is a network device used to centrally control controllable wireless APs in a local area network. AC is the core of a wireless network and is responsible for managing all wireless APs in the wireless network. AP management includes: issuing configurations, modifying related configuration parameters, RF intelligent management, access security control, etc.
[0049] At present, the terminal first queries the IP address information of the AC of the terminal, then logs in to the AC, queries the AP associated with the terminal IP in the management information of the AC, and obtains the IP address information of the AP where the terminal is located, and finally the terminal accesses the AP through the IP address of the AP. However, in this method, the user must know the management address of the AC and have the management authority of the AC, which is complicated and not fast enough in the operation process.
[0050] In view of this, an embodiment of the present application provides a method for accessing an AP, in which a terminal sends a DHCP request to a dynamic host configuration protocol DHCP server in advance, and the DHCP server allocates IP address information of a first DNS server to the terminal according to the DHCP request. The first DNS server receives a domain name query message sent by the terminal, and determines whether the domain name information carried by the domain name query message is preset domain name information. If the domain name information carried by the domain name query message is the preset domain name information, the IP address of the terminal is obtained, and the IP address of the AP corresponding to the terminal is queried according to the IP address of the terminal. Then, the first DNS server returns the query result to the terminal, so that the terminal accesses the AP according to the IP address of the AP; if the domain name information carried by the domain name query message is not the preset domain name information, the first DNS server sends the domain name query message to the second DNS server, and queries the IP address of the access site corresponding to the terminal according to the IP address of the terminal. Then, the second DNS server sends the query result to the first DNS server, and the first DNS server returns the query result to the terminal, so that the terminal accesses the access site according to the IP address of the access site. It can be seen that the solution in this application allows users to access the AP without knowing the management address of the AC and having the management authority of the AC. The operation process is relatively simple and the user can quickly access the AP.
[0051] In order to make the technical solution of the present application clearer and easier to understand, the application scenarios of the technical solution of the present application are introduced below in conjunction with the accompanying drawings. Figure 1 As shown, the figure is a schematic diagram of an application scenario provided by an embodiment of the present application.
[0052] In this application scenario, the terminal STA101 sends a DHCP request to the dynamic host configuration protocol DHCP server 102 in advance, and the DHCP server 102 allocates the IP address information of the first DNS server 103 to the terminal STA101 according to the DHCP request, wherein the first DNS server 103 is the access controller AC, and the IP address information of the first DNS server 103 is the IP address of the access controller AC; the access point AP104 sends the IP address of the access point AP104 and the IP address of the terminal STA101 corresponding to the access point AP104 to the first DNS server 103 through the CAPWAP protocol;
[0053] The terminal STA101 sends a domain name query message to the first DNS server 103, and the domain name information carried in the domain name query message is the domain name information of the access point AP104;
[0054] After receiving the domain name query message, the access controller AC determines whether the domain name information carried by the domain name query message is the preset domain name information. If the domain name information carried by the domain name query message is the preset domain name information, the IP address of the terminal STA101 is obtained, and the IP address of the corresponding access point AP104 is queried according to the IP address of the terminal STA101. A first domain name response message is returned to the terminal, so that the terminal accesses the access point AP104 according to the IP address of the access point AP104. The content of the first domain name response message is the IP address of the access point AP104.
[0055] In the embodiment of the present application, the access controller AC can obtain multiple access points AP104, each access point AP104 can access multiple terminals STA101, and the IP address of each terminal STA101 is different.
[0056] Since the terminal sends a domain name request to the first DNS server to obtain the IP address of the access point corresponding to the terminal, and since the Dynamic Host Configuration Protocol DHCP server has sent the IP address of the first DNS server to the terminal when accessing the network, and configured the IP address of the first DNS server as the IP address of the AC, during the access process, the terminal only needs to know the preset domain name information of the access AP to make a domain name request. It can be seen that this solution allows users to not need to know the management address of the AC, have the management authority of the AC, and the IP address of the terminal. It is relatively simple in the operation process, and users can quickly access the AP.
[0057] In order to make the technical solution of the present application clearer and easier to understand, the following describes a method for accessing an AP provided by an embodiment of the present application in combination with the above application scenario. Figure 2 As shown, this figure is a flowchart of a method for accessing an AP provided in an embodiment of the present application.
[0058] In an embodiment of the present application, the method for accessing an AP includes:
[0059] S201. A terminal sends a DHCP request to a Dynamic Host Configuration Protocol DHCP server in advance.
[0060] After the terminal accesses the access point AP, it sends a DHCP request to the Dynamic Host Configuration Protocol DHCP server.
[0061] S202: The DHCP server allocates IP address information of the first DNS server to the terminal according to the DHCP request.
[0062] The terminal receives the IP address of the first DNS server and sends a domain name query message to the first DNS server.
[0063] In the embodiment of the present application, the terminal only needs to obtain the IP address information of the first DNS server to proceed to the next step, which can help the user quickly access the AP.
[0064] S203: The first DNS server receives a domain name query message sent by the terminal.
[0065] S204: The first DNS server determines whether the domain name information carried in the domain name query message is preset domain name information.
[0066] The first DNS server receives the domain name query message sent by the terminal, and then the first DNS server determines whether the domain name information carried in the domain name query message is the preset domain name information, and obtains a first judgment result, wherein the preset domain name information is the domain name information of the access point AP.
[0067] If the first judgment result indicates that the domain name information carried by the domain name query message is the preset domain name information, S205 is executed; if the first judgment result indicates that the domain name information carried by the domain name query message is not the preset domain name information, S207 is executed.
[0068] The preset domain name information refers to the IP address of the access point AP and the IP address of the terminal corresponding to the access point AP which are stored in the first DNS server.
[0069] S205: The first DNS server obtains the source IP address of the domain name query message.
[0070] The IP address of the first DNS server is the IP address of the access controller AC, the access controller AC contains the IP address of the access point AP and the IP address of the terminal corresponding to the access point AP, and the source IP address includes the IP address of the terminal.
[0071] The first DNS server queries whether there is an IP address of an access point AP corresponding to the terminal according to the source IP address, and if there is an IP address of an access point AP corresponding to the terminal, execute S206;
[0072] If the IP address of the access point AP corresponding to the terminal does not exist, the first domain name response message is not returned to the terminal.
[0073] S206. The first DNS server returns a first domain name response message to the terminal.
[0074] The terminal receives a first domain name response message, the content of which is the IP address of the access point AP. The terminal accesses the access point AP according to the IP address of the access point AP.
[0075] S207, the first DNS server sends the domain name query message to the second DNS server;
[0076] The second DNS server queries whether there is an IP address corresponding to the domain name information according to the domain name information carried in the domain name query message, and the domain name information carried in the domain name query message is the domain name information of the second access site. The second access site can be a website entrance that the terminal needs to access or other access points AP that are not stored in the first DNS server, and the second DNS server is a public network DNS server.
[0077] If there is an IP address corresponding to the domain name information, execute S208;
[0078] If the IP address corresponding to the domain name information does not exist, the second domain name response message is not returned to the terminal.
[0079] S208: The second DNS server returns a second domain name response message to the terminal through the first DNS server.
[0080] The second DNS server sends the second domain name response message to the first DNS server, and the first DNS server returns the second domain name response message to the terminal, so that the terminal accesses the second access site according to the IP address of the second access site, wherein the content of the second domain name response message is the IP address of the second access site.
[0081] In this application, the access points AP are all thin APs.
[0082] Based on the above content, an embodiment of the present application provides a method for accessing an AP, in which a terminal sends a DHCP request to a dynamic host configuration protocol DHCP server in advance, and the DHCP server allocates a first DNS server IP information to the terminal according to the DHCP request. The first DNS server receives a domain name query message sent by the terminal, and determines whether the domain name information carried by the domain name query message is the preset domain name information. If the domain name information carried by the domain name query message is the preset domain name information, the IP address of the terminal is obtained, and the IP address of the AP corresponding to the terminal is queried according to the IP address of the terminal. Then, the first DNS server returns the query result to the terminal, so that the terminal accesses the AP according to the IP address of the AP; if the domain name information carried by the domain name query message is not the preset domain name information, the first DNS server sends the domain name query message to the second DNS server, queries the IP address of the access site corresponding to the terminal according to the IP address of the terminal, and then the second DNS server sends the query result to the first DNS server, and the first DNS server returns the query result to the terminal, so that the terminal accesses the access site according to the IP address of the access site. Therefore, this method allows users to access the AP without knowing the management address of the AC, having the management authority of the AC and the IP address of the terminal. The operation process is relatively simple and the user can quickly access the AP.
[0083] The present application embodiment provides a system for accessing an AP, such as Figure 3 As shown, the figure is a schematic diagram of a first access AP system provided in an embodiment of the present application, the system comprising: a terminal STA101, a first DNS server 103, a DHCP server 102 and an access point AP104;
[0084] The terminal STA101 is used to send a DHCP request to the Dynamic Host Configuration Protocol DHCP server 102 in advance;
[0085] The DHCP server 102 is used to allocate the IP address information of the first DNS server 103 to the terminal STA101 according to the DHCP request, wherein the IP address information of the first DNS server 103 is the IP address of the access controller AC;
[0086] The first DNS server 103 is an access controller AC, which is used to receive a domain name query message sent by the terminal STA101, determine whether the domain name information carried by the domain name query message is a preset domain name information, and obtain a first judgment result, wherein the preset domain name information is the domain name information of the access point AP;
[0087] If the first judgment result indicates that the domain name information carried by the domain name query message is the preset domain name information, the source IP address of the domain name query message is obtained, the IP address of the corresponding access point AP104 is queried according to the source IP address, and a first domain name response message is returned to the terminal STA101, where the content of the first domain name response message is the IP address of the access point AP104;
[0088] The terminal STA101 accesses the access point AP104 according to the IP address of the access point AP104.
[0089] The embodiment of the present application provides a system with a first judgment result and a second situation, which is introduced below in conjunction with the accompanying drawings.
[0090] like Figure 4 As shown, the figure is a schematic diagram of a second access AP system provided in an embodiment of the present application, the system comprising: a terminal STA101, a first DNS server 103, a second DNS server 405, a second access site 406, a DHCP server 102 and an access point AP104;
[0091] If the first judgment result indicates that the domain name information carried by the domain name query message is not the preset domain name information, the first DNS server 103 sends the domain name query message to the second DNS server 405;
[0092] The second DNS server 405 is used to query the IP address of the domain name information according to the domain name information carried in the domain name query message, where the domain name information carried in the domain name query message is the domain name information of the second access site 406;
[0093] The first DNS server 103 returns a second domain name response message to the terminal STA101 , wherein the content of the second domain name response message is the IP address of the second visited site 406 .
[0094] The terminal STA101 is used to access the second visited site 406 according to the IP address of the second visited site 406 .
[0095] The embodiment of the present application also provides a system for a situation where the first DNS server fails to query the IP address of the AP corresponding to the terminal, such as Figure 5 As shown in the figure, this figure is a schematic diagram of the third access AP system provided in an embodiment of the present application. If the first judgment result indicates that the domain name information carried by the domain name query message is the preset domain name information, the source IP address of the domain name query message is obtained. If the first DNS server 103 does not query the corresponding IP address of the access point AP104 according to the source IP address, the first DNS server 103 does not return the first domain name response message to the terminal STA101.
[0096] The present application also provides a computing device. Figure 6 As shown, this figure is a schematic diagram of a computing device provided in an embodiment of the present application, and the computing device 600 includes a bus 601, a processor 602, a communication interface 603 and a memory 604. The processor 602, the memory 604 and the communication interface 603 communicate with each other through the bus 601.
[0097] The bus 601 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0098] The processor 602 may be any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).
[0099] The communication interface 603 is used for communicating with the outside.
[0100] The memory 604 may include a volatile memory, such as a random access memory (RAM). The memory 604 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid state drive (SSD).
[0101] The memory 604 stores executable codes, and the processor 602 executes the executable codes to perform the aforementioned method for accessing an AP.
[0102] The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be stored by the computing device or a data storage device such as a data center containing one or more available media. The available medium can be a magnetic medium (such as a floppy disk, a hard disk, a tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid-state hard disk). The computer-readable storage medium includes instructions that instruct the computing device to execute the above-mentioned access AP method.
[0103] The embodiment of the present application further provides a computer program product, which includes one or more computer instructions. When the computer instructions are loaded and executed on a computing device, the process or function described in the embodiment of the present application is generated in whole or in part.
[0104] The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website, computer or data center to another website, computer or data center via wired (e.g., coaxial cable, optical fiber) or wireless (e.g., infrared, wireless, microwave, etc.) means.
[0105] When the computer program product is executed by a computer, the computer executes any of the aforementioned methods for accessing an AP. The computer program product may be a software installation package, and when any of the aforementioned methods for accessing an AP is required, the computer program product may be downloaded and executed on a computer.
[0106] The descriptions of the processes or structures corresponding to the above-mentioned figures have different emphases. For parts that are not described in detail in a certain process or structure, please refer to the relevant descriptions of other processes or structures.
[0107] The above description is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application.
Claims
1. A method for accessing an AP, characterized in that: The terminal sends a DHCP request to a dynamic host configuration protocol DHCP server in advance, and the DHCP server allocates first DNS server IP information to the terminal according to the DHCP request, wherein the IP address information of the first DNS server is the IP address of the access controller AC, and the method includes: The first DNS server receives a domain name query message sent by the terminal; The first DNS server determines whether the domain name information carried by the domain name query message is the preset domain name information, and obtains a first judgment result, wherein the preset domain name information is the domain name information of the access point AP; If the first judgment result indicates that the domain name information carried by the domain name query message is the preset domain name information, the source IP address of the domain name query message is obtained, the IP address of the corresponding AP is queried according to the source IP address, and a first domain name response message is returned to the terminal, so that the terminal accesses the AP according to the IP address of the AP, and the content of the first domain name response message is the IP address of the AP.
2. The method according to claim 1, characterized in that The method further comprises: If the first judgment result indicates that the domain name information carried by the domain name query message is not the preset domain name information, the first DNS server sends the domain name query message to the second DNS server; The first DNS server receives the IP address queried by the second DNS server according to the domain name information carried in the domain name query message, where the domain name information carried in the domain name query message is the domain name information of the second visited site; The first DNS server returns a second domain name response message to the terminal, so that the terminal accesses the second access site according to the IP address of the second access site, and the content of the second domain name response message is the IP address of the second access site.
3. The method according to claim 1, characterized in that The method further comprises: If the first DNS server fails to query the IP address of the corresponding AP according to the source IP address, the first DNS server does not return the first domain name response message to the terminal.
4. The method according to claim 1, characterized in that The source IP address includes the IP address of the terminal, and determining the IP address of the corresponding AP according to the source IP address includes: The first DNS server determines the AP corresponding to the terminal based on the mapping relationship between the reference terminal and the reference AP, thereby the first DNS server queries the IP address of the AP corresponding to the terminal.
5. The method according to claim 2, characterized in that: The method further comprises: If the second DNS server fails to find the IP address of the corresponding second access site according to the domain name query message, the second DNS server does not return the second domain name response message to the terminal.
6. An access AP system, characterized in that: The system comprises: a terminal, a first DNS server, a DHCP server, and an access point AP; The terminal is used to send a DHCP request to a Dynamic Host Configuration Protocol DHCP server in advance; The DHCP server is used to allocate first DNS server IP information to the terminal according to the DHCP request, wherein the first DNS server IP address information is the IP address of the access controller AC; The first DNS server is used to receive the domain name query message sent by the terminal, determine whether the domain name information carried by the domain name query message is the preset domain name information, and obtain a first judgment result, where the preset domain name information is the domain name information of the access point AP; If the first judgment result indicates that the domain name information carried by the domain name query message is preset domain name information, obtaining a source IP address of the domain name query message, querying an IP address of a corresponding AP according to the source IP address, and returning a first domain name response message to the terminal, wherein the content of the first domain name response message is the IP address of the AP; The terminal is used to access the AP according to the IP address of the AP.
7. The system according to claim 6, characterized in that The first DNS server is used to send the domain name query message to the second DNS server; The second DNS server is configured to send the queried IP address to the first DNS server according to the IP address queried by the domain name information carried in the domain name query message; The first DNS server is used to return a second domain name response message to the terminal, wherein the content of the second domain name response message is the IP address of the second visited site. The terminal is used to access the second visited site according to the IP address of the second visited site, and the domain name information carried in the domain name query message is the domain name information of the second visited site.
8. The system according to claim 6, characterized in that The first DNS server is configured to not return the first domain name response message to the terminal if no corresponding AP IP address is found according to the source IP address.
9. A computing device, characterized in that including memory and processor; One or more computer programs are stored in the memory, and the one or more computer programs include instructions; when the instructions are executed by the processor, the computing device executes the method as claimed in any one of claims 1 to 5.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program, and the computer program is used to execute the method according to any one of claims 1 to 5.