CN112953962A - Domain name access method and device - Google Patents

Domain name access method and device Download PDF

Info

Publication number
CN112953962A
CN112953962A CN202110275261.4A CN202110275261A CN112953962A CN 112953962 A CN112953962 A CN 112953962A CN 202110275261 A CN202110275261 A CN 202110275261A CN 112953962 A CN112953962 A CN 112953962A
Authority
CN
China
Prior art keywords
domain name
internet protocol
authentication
protocol address
client
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110275261.4A
Other languages
Chinese (zh)
Inventor
何辉海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN202110275261.4A priority Critical patent/CN112953962A/en
Publication of CN112953962A publication Critical patent/CN112953962A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities

Abstract

The disclosure relates to a domain name access method, a domain name access device, electronic equipment and a computer readable medium based on Portal authentication. The method comprises the following steps: acquiring a domain name access request from a client, wherein the domain name access request comprises a domain name; locally retrieving the Internet protocol address corresponding to the domain name at the authentication equipment; and when the internet protocol address is retrieved, the internet protocol address is sent to the client as the return information of the domain name access request, so that the client performs network access based on the return information. The domain name access method, device, electronic equipment and computer readable medium based on Portal authentication can solve the problem that domain name access fails within certain time, which occurs randomly in the prior art.

Description

Domain name access method and device
Technical Field
The disclosure relates to the field of computer information processing, in particular to a domain name access method and device based on Portal authentication, electronic equipment and a computer readable medium.
Background
According to the relevant national internet access regulations, identity authentication is required before internet access. In consideration of the complexity of the mobile terminal, it is not practical to install an authentication client on the terminal for identity authentication. Almost all intelligent terminals are equipped with Web browsers. Authentication is preferably performed via a web page. Portal authentication can provide identity authentication and personalized information services for users in the form of web pages. The Portal mode (namely, the WEB + DHCP mode) means that when a user starts a browser to access the Internet for the first time, the user is forced to be directed to a Web authentication page, and after the user inputs a WiFi account number and a password and passes authentication, the DHCP server allocates an IP address to access the Internet.
For example, in a process that a client wants to obtain wechat authentication, the client accesses a server with a domain name wifi. Because the DNS request is transmitted between the client and the authentication device, it cannot be ensured that the IP addresses resolved by the domain name are all the IP addresses of the domain name, so the authentication device can only obtain a part of the IP addresses each time, and may be different from the IP addresses obtained by the client, which results in a failure to release wifi.
Therefore, a new domain name access method, apparatus, electronic device and computer readable medium based on Portal authentication are needed.
The above information disclosed in this background section is only for enhancement of understanding of the background of the disclosure and therefore it may contain information that does not constitute prior art that is already known to a person of ordinary skill in the art.
Disclosure of Invention
In view of the above, the present disclosure provides a domain name access method, device, electronic device and computer readable medium based on Portal authentication, which can solve the problem in the prior art that domain name access fails at some time and occurs randomly.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows, or in part will be obvious from the description, or may be learned by practice of the disclosure.
According to one aspect of the disclosure, a domain name access method based on Portal authentication is provided, which can be used for authenticating equipment, and comprises the following steps: acquiring a domain name access request from a client, wherein the domain name access request comprises a domain name; locally retrieving the Internet protocol address corresponding to the domain name at the authentication equipment; and when the internet protocol address is retrieved, the internet protocol address is sent to the client as the return information of the domain name access request, so that the client performs network access based on the return information.
In an exemplary embodiment of the present disclosure, further comprising: when the internet protocol address is not retrieved, the domain name access request is sent to a public domain name access server of a public network; the public domain name access server of the public network acquires an internet protocol address corresponding to the domain name; and generating return information based on the Internet protocol address and sending the return information to the client so that the client performs network access based on the return information.
In an exemplary embodiment of the present disclosure, obtaining, by the public domain name access server of the public network, an internet protocol address corresponding to the domain name further includes: and storing the domain name and the corresponding internet protocol address in the local authentication equipment.
In an exemplary embodiment of the present disclosure, further comprising: acquiring an internet protocol address request from a client, wherein the internet protocol address request comprises an internet protocol address; checking the internet protocol address; and sending the Internet protocol address request to a target server after the check is passed.
In an exemplary embodiment of the present disclosure, further comprising: acquiring an authentication request from a client, wherein the authentication request comprises a target website; checking the target website; and sending the authentication request to a target server after the verification is passed.
In an exemplary embodiment of the present disclosure, further comprising: and updating the corresponding relation between the domain name and the Internet protocol address locally stored in the authentication equipment at regular intervals.
According to one aspect of the disclosure, a domain name access method based on Portal authentication is provided, which can be used for a client, and the method includes: generating a domain name access request, wherein the domain name access request comprises a domain name; sending the domain name access request to authentication equipment; obtaining, by the authentication device, return information of the domain name access request; and performing network access based on the return information.
In an exemplary embodiment of the present disclosure, includes: generating an internet protocol address request, wherein the internet protocol address request comprises an internet protocol address; sending the internet protocol address request to the authentication device; and logging in a target website corresponding to the Internet protocol address through the authentication equipment.
In an exemplary embodiment of the present disclosure, includes: generating an authentication request, wherein the authentication request comprises a target website; sending the authentication request to the authentication device; and logging in the target website through the authentication equipment to perform authentication.
According to an aspect of the disclosure, a domain name access device based on Portal authentication is provided, which can be used for authenticating equipment, and the device comprises: the domain name module is used for acquiring a domain name access request from a client, wherein the domain name access request comprises a domain name; the retrieval module is used for locally retrieving the Internet protocol address corresponding to the domain name at the authentication equipment; and the information module is used for sending the Internet protocol address serving as return information of the domain name access request to the client when the Internet protocol address is retrieved, so that the client performs network access based on the return information.
In an exemplary embodiment of the present disclosure, further comprising: the forwarding module is used for sending the domain name access request to a public domain name access server of a public network when the Internet protocol address is not retrieved; the public domain name access server of the public network acquires an internet protocol address corresponding to the domain name; and generating return information based on the Internet protocol address and sending the return information to the client so that the client performs network access based on the return information.
According to an aspect of the disclosure, a domain name access device based on Portal authentication is provided, which can be used for a client, and comprises: the generation module is used for generating a domain name access request, and the domain name access request comprises a domain name; the sending module is used for sending the domain name access request to authentication equipment; the acquisition module is used for acquiring the return information of the domain name access request by the authentication equipment; and the access module is used for carrying out network access based on the return information.
According to an aspect of the present disclosure, an electronic device is provided, the electronic device including: one or more processors; storage means for storing one or more programs; when executed by one or more processors, cause the one or more processors to implement a method as above.
According to an aspect of the disclosure, a computer-readable medium is proposed, on which a computer program is stored, which program, when being executed by a processor, carries out the method as above.
According to the domain name access method based on Portal authentication, the device, the electronic equipment and the computer readable medium, a domain name access request from a client is obtained, wherein the domain name access request comprises a domain name; locally retrieving the Internet protocol address corresponding to the domain name at the authentication equipment; when the internet protocol address is retrieved, the internet protocol address is sent to the client as the return information of the domain name access request, so that the client can perform network access based on the return information, and the problems of random occurrence and domain name access failure in some time in the prior art can be solved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings. The drawings described below are merely some embodiments of the present disclosure, and other drawings may be derived from those drawings by those of ordinary skill in the art without inventive effort.
Fig. 1 is a block diagram of an authentication networking in the prior art.
FIG. 2 is a flow diagram illustrating a domain name access method based on Portal authentication in accordance with an exemplary embodiment.
FIG. 3 is a flow chart illustrating a method for domain name access based on Portal authentication in accordance with another exemplary embodiment.
FIG. 4 is a flowchart illustrating a method for domain name access based on Portal authentication, according to another example embodiment.
FIG. 5 is a block diagram illustrating a domain name access device based on Portal authentication, according to an example embodiment.
FIG. 6 is a block diagram illustrating a domain name access device based on Portal authentication, according to another example embodiment.
FIG. 7 is a block diagram illustrating an electronic device in accordance with an example embodiment.
FIG. 8 is a block diagram illustrating a computer-readable medium in accordance with an example embodiment.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The same reference numerals denote the same or similar parts in the drawings, and thus, a repetitive description thereof will be omitted.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known methods, devices, implementations, or operations have not been shown or described in detail to avoid obscuring aspects of the disclosure.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
It will be understood that, although the terms first, second, third, etc. may be used herein to describe various components, these components should not be limited by these terms. These terms are used to distinguish one element from another. Thus, a first component discussed below may be termed a second component without departing from the teachings of the disclosed concept. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
It is to be understood by those skilled in the art that the drawings are merely schematic representations of exemplary embodiments, and that the blocks or processes shown in the drawings are not necessarily required to practice the present disclosure and are, therefore, not intended to limit the scope of the present disclosure.
The technical abbreviations involved in this disclosure are explained as follows:
DNS (Domain Name System ): a distributed database on the Internet as a mutual mapping between domain names and IP addresses enables users to more conveniently access the Internet without remembering IP strings that can be read directly by machines. The process of finally obtaining the IP address corresponding to the host name through the host name is called domain name resolution (or host name resolution). The DNS protocol runs on top of the UDP protocol, using port number 53.
Portal authentication: portal is the meaning of Portal in English. Portal authentication is also commonly referred to as Web authentication, and Portal authentication Web sites are commonly referred to as Web portals. When the unauthenticated user surfs the internet, the equipment forces the user to log in a specific site, and the user can access the service in the site free of charge. When the user needs to use other information in the internet, authentication must be performed on the portal site, and the internet resources can be used only after the authentication is passed.
And (3) WeChat authentication: also known as WeChat Wi-Fi, Portal authentication. The method provides a set of complete and convenient Wi-Fi scheme for off-line sites of merchants. After a merchant accesses Wi-Fi through a WeChat, a customer can quickly surf the internet by means of scanning two-dimensional codes and the like through the WeChat without inputting a complicated Wi-Fi password. The Wi-Fi can also help merchants build personalized services, such as a resident entrance at the top of the WeChat, merchant homepage display, and post-networking public number message issuing. Therefore, the WeChat Wi-Fi can greatly improve user experience and help merchants provide accurate near field service.
Fig. 1 is a block diagram of an authentication networking in the prior art. In the embodiment shown in fig. 1, a schematic diagram of a WeChat authentication process is shown, however, the method in the present application may be applied to other authentication pages, and the present disclosure is not limited thereto. In the WeChat authentication process, the client accesses a server with a domain name of wifi. The authentication device needs to perform a release process for the domain name. As shown in fig. 1, when the client accesses the wexin.qq.com server (domain name is wifi.weixin.qq.com), the authentication device puts it through, and the client acquires the relevant authentication information on the wexin server to perform authentication.
In the prior art, the authentication device acquires a part of IP addresses with domain names wifi. And storing the acquired IP address.
When the client accesses wifi.
However, the DNS request cannot ensure that the IP addresses resolved by the domain name are all IP addresses of the domain name, so the authentication device can only acquire a part of the IP addresses each time, and may be different from the IP addresses acquired by the client, which may cause a failure to release wifi.
FIG. 2 is a flow diagram illustrating a domain name access method based on Portal authentication in accordance with an exemplary embodiment. The domain name access method 20 based on Portal authentication can be used for authenticating a device and at least comprises the steps S202 to S208.
As shown in fig. 2, in S202, a domain name access request from a client is obtained, where the domain name access request includes a domain name.
In S204, the internet protocol address corresponding to the domain name is locally retrieved at the authentication device. The DNS request (i.e. the DNS proxy function) is handled by the authentication device, which should give a response when sending a DNS request message in the client.
In S206, it is determined whether or not the search is made.
In S208, when the internet protocol address is retrieved, the internet protocol address is sent to the client as return information of the domain name access request, so that the client performs network access based on the return information.
In S210, when the internet protocol address is not retrieved, the domain name access request is sent to a public domain name access server of a public network. When the authentication equipment receives the DNS request, and the authentication equipment does not locally request the IP address corresponding to the domain name, the authentication equipment immediately requests the IP address from the public network DNS server. After the public network DNS server responds, the authentication device stores the IP address and responds to the client.
In S212, the public domain name access server of the public network acquires an internet protocol address corresponding to the domain name. The domain name and its corresponding internet protocol address may also be stored locally at the authentication device.
In S214, return information is generated based on the internet protocol address and sent to the client, so that the client performs network access based on the return information.
In one embodiment, an internet protocol address request from a client can be further acquired, wherein the internet protocol address request comprises an internet protocol address; checking the internet protocol address; and sending the Internet protocol address request to a target server after the check is passed.
In one embodiment, an authentication request from a client can be further obtained, wherein the authentication request comprises a target website; checking the target website; and sending the authentication request to a target server after the verification is passed.
In one embodiment, the correspondence between the domain name and the internet protocol address stored locally by the authentication device may also be updated periodically. The authentication device can update the corresponding relation between the currently stored domain name and the IP address at regular time.
According to the domain name access method based on Portal authentication, a domain name access request from a client is obtained, wherein the domain name access request comprises a domain name; locally retrieving the Internet protocol address corresponding to the domain name at the authentication equipment; when the internet protocol address is retrieved, the internet protocol address is sent to the client as the return information of the domain name access request, so that the client can perform network access based on the return information, and the problems of random occurrence and domain name access failure in some time in the prior art can be solved.
It should be clearly understood that this disclosure describes how to make and use particular examples, but the principles of this disclosure are not limited to any details of these examples. Rather, these principles can be applied to many other embodiments based on the teachings of the present disclosure.
FIG. 3 is a flow chart illustrating a method for domain name access based on Portal authentication in accordance with another exemplary embodiment. The process 30 shown in fig. 3 can be applied to a client, and at least includes steps S202 to S208.
As shown in fig. 3, in S302, a domain name access request is generated, where the domain name access request includes a domain name. And in the process of automatically acquiring the IP by the client, the automatically acquired DNS server is taken as authentication equipment. Namely, the networking needs to be adjusted so that the client sends the domain name access request to the authentication server.
In S304, the domain name access request is sent to an authentication device.
In S306, the authentication device obtains the return information of the domain name access request.
In S308, network access is performed based on the return information.
In one embodiment, an internet protocol address request may also be generated, the internet protocol address request including an internet protocol address; sending the internet protocol address request to the authentication device; and logging in a target website corresponding to the Internet protocol address through the authentication equipment.
In one embodiment, an authentication request may also be generated, the authentication request including a target website; sending the authentication request to the authentication device; and logging in the target website through the authentication equipment to perform authentication.
FIG. 4 is a flowchart illustrating a method for domain name access based on Portal authentication, according to another example embodiment. The process 40 shown in fig. 4 is a description of the workflow of the client, the authentication device, the public network server, and the target server.
As shown in fig. 4, in S401, an internet protocol address is acquired by a domain name access request. When the client initiates weixin qq.com authentication and requests wifi.weixin qcom (for example only, not limited to this domain name), a DNS request needs to be sent to the DNS server. At which point the device will receive the DNS request.
In S402, whether the IP address corresponding to the domain name is already recorded. 1): after receiving the DNS request, the authentication device needs to process the DNS request. The authentication device firstly checks whether the authentication device locally stores the corresponding relation between the domain name and the IP, and if the domain name and the IP are stored, the authentication device directly responds to the client. Otherwise, the authentication device will initiate a DNS request to a public network public DNS server (e.g., 114.114.114.114).
In S403, a request is sent to the public network server without recording.
In S404, return information from the public network is received. After receiving the DNS response, the device records the relation between the domain name and the IP to the local authentication device.
In S405, the return information is sent to the client. The authentication device responds to the DNS request to the client.
In S406, the client acquires the IP address in the return information and sends a request. 1) After receiving the IP address resolved by the DNS, the client accesses the domain name through the IP address to implement wechat authentication, and in the wechat authentication process, a fixed domain name (which may be wifi. Since the specific process is prior art, it is not described in detail here.
In S407, the authentication apparatus passes through this IP address. And when the authentication equipment receives the flow of the client, checking whether the IP address is the IP corresponding to wifi.
In S408, the public network server sends the client request to the target server. The WeChat authentication request (domain name: wifi. weixin. qq. com) of the client is forwarded by the authentication equipment, and after being forwarded to the public network, the WeChat authentication request is forwarded to the corresponding WeChat server by the operator. And after receiving the WeChat authentication request, the WeChat server interacts with the client through the public network and the authentication equipment.
In S409, the client interacts with the target server for authentication. The authentication device will also pass directly in response to the message from the server.
In S410, the target server returns an authentication result. After the authentication between the WeChat server and the client is completed, the WeChat server informs the authentication result to the authentication equipment, and the authentication equipment conducts open or blocking operation on the equipment according to the authentication result.
According to the domain name access method based on Portal authentication, the DNS request is processed through the authentication equipment, and the DNS request is responded, so that the IP addresses of the client side and the authentication equipment request are the same. And the subsequent release based on the domain name can be accurate. Thereby solving the problem that the current invention can not be released within a period of time.
Those skilled in the art will appreciate that all or part of the steps implementing the above embodiments are implemented as computer programs executed by a CPU. When executed by the CPU, performs the functions defined by the above-described methods provided by the present disclosure. The program may be stored in a computer readable storage medium, which may be a read-only memory, a magnetic or optical disk, or the like.
Furthermore, it should be noted that the above-mentioned figures are only schematic illustrations of the processes involved in the methods according to exemplary embodiments of the present disclosure, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods. For details not disclosed in the embodiments of the apparatus of the present disclosure, refer to the embodiments of the method of the present disclosure.
FIG. 5 is a block diagram illustrating a domain name access device based on Portal authentication, according to an example embodiment. As shown in fig. 5, the domain name access device 50 based on Portal authentication is applicable to an authentication apparatus including: a domain name module 502, a retrieval module 504, an information module 506, and a forwarding module 508.
The domain name module 502 is configured to obtain a domain name access request from a client, where the domain name access request includes a domain name;
the retrieving module 504 is configured to locally retrieve, at the authentication device, an internet protocol address corresponding to the domain name;
the information module 506 is configured to, when the internet protocol address is retrieved, send the internet protocol address to the client as return information of the domain name access request, so that the client performs network access based on the return information.
The forwarding module 508 is configured to send the domain name access request to a public domain name access server of a public network when the internet protocol address is not retrieved; the public domain name access server of the public network acquires an internet protocol address corresponding to the domain name; and generating return information based on the Internet protocol address and sending the return information to the client so that the client performs network access based on the return information.
FIG. 6 is a block diagram illustrating a domain name access device based on Portal authentication, according to another example embodiment. As shown in fig. 6, the domain name access device 60 based on Portal authentication is applicable to a client, and includes: a generating module 602, a sending module 604, an obtaining module 606, and an accessing module 608.
The generating module 602 is configured to generate a domain name access request, where the domain name access request includes a domain name;
the sending module 604 is configured to send the domain name access request to an authentication device;
the obtaining module 606 is configured to obtain, by the authentication device, return information of the domain name access request;
the access module 608 is configured to perform network access based on the return information.
According to the domain name access device based on Portal authentication, a domain name access request from a client is obtained, wherein the domain name access request comprises a domain name; locally retrieving the Internet protocol address corresponding to the domain name at the authentication equipment; when the internet protocol address is retrieved, the internet protocol address is sent to the client as the return information of the domain name access request, so that the client can perform network access based on the return information, and the problems of random occurrence and domain name access failure in some time in the prior art can be solved.
FIG. 7 is a block diagram illustrating an electronic device in accordance with an example embodiment.
An electronic device 700 according to this embodiment of the disclosure is described below with reference to fig. 7. The electronic device 700 shown in fig. 7 is only an example and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 7, electronic device 700 is embodied in the form of a general purpose computing device. The components of the electronic device 700 may include, but are not limited to: at least one processing unit 710, at least one memory unit 720, a bus 730 that connects the various system components (including the memory unit 720 and the processing unit 710), a display unit 740, and the like.
Wherein the storage unit stores program code that can be executed by the processing unit 710 to cause the processing unit 710 to perform the steps according to various exemplary embodiments of the present disclosure described in this specification. For example, the processing unit 710 may perform the steps as shown in fig. 2, 3, 4.
The memory unit 720 may include readable media in the form of volatile memory units, such as a random access memory unit (RAM)7201 and/or a cache memory unit 7202, and may further include a read only memory unit (ROM) 7203.
The memory unit 720 may also include a program/utility 7204 having a set (at least one) of program modules 7205, such program modules 7205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 730 may be any representation of one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 700 may also communicate with one or more external devices 700' (e.g., keyboard, pointing device, bluetooth device, etc.), such that a user can communicate with devices with which the electronic device 700 interacts, and/or any devices (e.g., router, modem, etc.) with which the electronic device 700 can communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 750. Also, the electronic device 700 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the internet) via the network adapter 760. The network adapter 760 may communicate with other modules of the electronic device 700 via the bus 730. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 700, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, as shown in fig. 8, the technical solution according to the embodiment of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, or a network device, etc.) to execute the above method according to the embodiment of the present disclosure.
The software product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable storage medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable storage medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
The computer readable medium carries one or more programs which, when executed by a device, cause the computer readable medium to perform the functions of: acquiring a domain name access request from a client, wherein the domain name access request comprises a domain name; locally retrieving the Internet protocol address corresponding to the domain name at the authentication equipment; and when the internet protocol address is retrieved, the internet protocol address is sent to the client as the return information of the domain name access request, so that the client performs network access based on the return information.
Those skilled in the art will appreciate that the modules described above may be distributed in the apparatus according to the description of the embodiments, or may be modified accordingly in one or more apparatuses unique from the embodiments. The modules of the above embodiments may be combined into one module, or further split into multiple sub-modules.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
Exemplary embodiments of the present disclosure are specifically illustrated and described above. It is to be understood that the present disclosure is not limited to the precise arrangements, instrumentalities, or instrumentalities described herein; on the contrary, the disclosure is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

Claims (13)

1. A domain name access method based on Portal authentication can be used for authenticating equipment, and is characterized by comprising the following steps:
acquiring a domain name access request from a client, wherein the domain name access request comprises a domain name;
locally retrieving the Internet protocol address corresponding to the domain name at the authentication equipment;
and when the internet protocol address is retrieved, the internet protocol address is sent to the client as the return information of the domain name access request, so that the client performs network access based on the return information.
2. The method of claim 1, further comprising:
when the internet protocol address is not retrieved, the domain name access request is sent to a public domain name access server of a public network;
the public domain name access server of the public network acquires an internet protocol address corresponding to the domain name;
and generating return information based on the Internet protocol address and sending the return information to the client so that the client performs network access based on the return information.
3. The method of claim 2, wherein obtaining, by the public network public domain name access server, the internet protocol address corresponding to the domain name, further comprises:
and storing the domain name and the corresponding internet protocol address in the local authentication equipment.
4. The method of claim 1, further comprising:
acquiring an internet protocol address request from a client, wherein the internet protocol address request comprises an internet protocol address;
checking the internet protocol address;
and sending the Internet protocol address request to a target server after the check is passed.
5. The method of claim 1, further comprising:
acquiring an authentication request from a client, wherein the authentication request comprises a target website;
checking the target website;
and sending the authentication request to a target server after the verification is passed.
6. The method of claim 1, further comprising:
and updating the corresponding relation between the domain name and the Internet protocol address locally stored in the authentication equipment at regular intervals.
7. A domain name access method based on Portal authentication can be used for a client, and is characterized by comprising the following steps:
generating a domain name access request, wherein the domain name access request comprises a domain name;
sending the domain name access request to authentication equipment;
obtaining, by the authentication device, return information of the domain name access request;
and performing network access based on the return information.
8. The method of claim 7, further comprising:
generating an internet protocol address request, wherein the internet protocol address request comprises an internet protocol address;
sending the internet protocol address request to the authentication device;
and logging in a target website corresponding to the Internet protocol address through the authentication equipment.
9. The method of claim 7, further comprising:
generating an authentication request, wherein the authentication request comprises a target website;
sending the authentication request to the authentication device;
and logging in the target website through the authentication equipment to perform authentication.
10. A domain name access device based on Portal authentication, which can be used for authenticating equipment, comprising:
the domain name module is used for acquiring a domain name access request from a client, wherein the domain name access request comprises a domain name;
the retrieval module is used for locally retrieving the Internet protocol address corresponding to the domain name at the authentication equipment;
and the information module is used for sending the Internet protocol address serving as return information of the domain name access request to the client when the Internet protocol address is retrieved, so that the client performs network access based on the return information.
11. The apparatus of claim 10, further comprising:
the forwarding module is used for sending the domain name access request to a public domain name access server of a public network when the Internet protocol address is not retrieved; the public domain name access server of the public network acquires an internet protocol address corresponding to the domain name; and generating return information based on the Internet protocol address and sending the return information to the client so that the client performs network access based on the return information.
12. A domain name access device based on Portal authentication, usable with a client, comprising:
the generation module is used for generating a domain name access request, and the domain name access request comprises a domain name;
the sending module is used for sending the domain name access request to authentication equipment;
the acquisition module is used for acquiring the return information of the domain name access request by the authentication equipment;
and the access module is used for carrying out network access based on the return information.
13. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-6 or 7-9.
CN202110275261.4A 2021-03-15 2021-03-15 Domain name access method and device Pending CN112953962A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110275261.4A CN112953962A (en) 2021-03-15 2021-03-15 Domain name access method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110275261.4A CN112953962A (en) 2021-03-15 2021-03-15 Domain name access method and device

Publications (1)

Publication Number Publication Date
CN112953962A true CN112953962A (en) 2021-06-11

Family

ID=76229842

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110275261.4A Pending CN112953962A (en) 2021-03-15 2021-03-15 Domain name access method and device

Country Status (1)

Country Link
CN (1) CN112953962A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113676530A (en) * 2021-08-16 2021-11-19 深圳市云鼠科技开发有限公司 Data acquisition method, device, server, client, system and medium
CN114221933A (en) * 2021-11-11 2022-03-22 中国建设银行股份有限公司 Multi-center multi-activity addressing method, device and system for mobile banking
CN114500094A (en) * 2022-02-24 2022-05-13 新华三技术有限公司合肥分公司 Access method and device
CN114221933B (en) * 2021-11-11 2024-04-26 中国建设银行股份有限公司 Multi-center multi-activity addressing method, device and system for mobile phone bank

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104079683A (en) * 2014-07-14 2014-10-01 北京快易博科技有限公司 Domain name resolution method and system authorizing direct response of domain name server
CN104158919A (en) * 2014-08-20 2014-11-19 安一恒通(北京)科技有限公司 Webpage access implementation method, server and client
CN106534127A (en) * 2016-11-18 2017-03-22 上海佰贝科技发展有限公司 Login authentication control system and method
CN109150874A (en) * 2018-08-16 2019-01-04 新华三技术有限公司 Access authentication method, device and authenticating device
CN112291384A (en) * 2020-10-28 2021-01-29 北京天融信网络安全技术有限公司 Information processing method for domain name resolution and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104079683A (en) * 2014-07-14 2014-10-01 北京快易博科技有限公司 Domain name resolution method and system authorizing direct response of domain name server
CN104158919A (en) * 2014-08-20 2014-11-19 安一恒通(北京)科技有限公司 Webpage access implementation method, server and client
CN106534127A (en) * 2016-11-18 2017-03-22 上海佰贝科技发展有限公司 Login authentication control system and method
CN109150874A (en) * 2018-08-16 2019-01-04 新华三技术有限公司 Access authentication method, device and authenticating device
CN112291384A (en) * 2020-10-28 2021-01-29 北京天融信网络安全技术有限公司 Information processing method for domain name resolution and electronic equipment

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113676530A (en) * 2021-08-16 2021-11-19 深圳市云鼠科技开发有限公司 Data acquisition method, device, server, client, system and medium
CN114221933A (en) * 2021-11-11 2022-03-22 中国建设银行股份有限公司 Multi-center multi-activity addressing method, device and system for mobile banking
CN114221933B (en) * 2021-11-11 2024-04-26 中国建设银行股份有限公司 Multi-center multi-activity addressing method, device and system for mobile phone bank
CN114500094A (en) * 2022-02-24 2022-05-13 新华三技术有限公司合肥分公司 Access method and device
CN114500094B (en) * 2022-02-24 2024-03-12 新华三技术有限公司合肥分公司 Access method and device

Similar Documents

Publication Publication Date Title
CN109347855B (en) Data access method, device, system, electronic design and computer readable medium
CN111355720B (en) Method, system and equipment for accessing intranet by application and computer storage medium
CN113381979B (en) Access request proxy method and proxy server
CN112118238B (en) Method, device, system, equipment and storage medium for authenticating login
CN112953962A (en) Domain name access method and device
CN111259355A (en) Single sign-on method, portal system and service platform
CN106790593B (en) Page processing method and device
JP5347429B2 (en) Uniform resource locator rewriting method and apparatus
CN113765988A (en) Information processing method, information processing device, electronic equipment and storage medium
CN110677506B (en) Network access method, device, computer equipment and storage medium
CN113242331A (en) Different types of address translation methods, different types of address translation devices, different types of computer equipment and different types of storage media
CN111488581A (en) Weak password vulnerability detection method and device, electronic equipment and computer readable medium
CN111935092B (en) Information interaction method and device based on third-party application and electronic equipment
CN113553557A (en) Application secret-free login method and device, electronic equipment and storage medium
CN112202813B (en) Network access method and device
CN110276028B (en) Processing method and device for internal link function requirements of business system
CN108322420A (en) The detection method and device of backdoor file
CN114585055B (en) Vehicle-mounted WiFi access method, vehicle controller, cloud server and mobile terminal
CN108737350B (en) Information processing method and client
CN111371643B (en) Authentication method, device and storage medium
CN113326506A (en) Applet monitoring method and device
CN113051299A (en) Proxy information processing method, proxy information processing device, computer equipment and storage medium
CN112733104A (en) Account registration request processing method and device
CN112347382A (en) Product page sharing method and device and electronic equipment
US20150295886A1 (en) System for identifying current internet protocol address for a remote computing device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210611