WO2020228038A1 - Procédé de traitement de nom de domaine, appareil, dispositif électronique et support de stockage - Google Patents

Procédé de traitement de nom de domaine, appareil, dispositif électronique et support de stockage Download PDF

Info

Publication number
WO2020228038A1
WO2020228038A1 PCT/CN2019/087309 CN2019087309W WO2020228038A1 WO 2020228038 A1 WO2020228038 A1 WO 2020228038A1 CN 2019087309 W CN2019087309 W CN 2019087309W WO 2020228038 A1 WO2020228038 A1 WO 2020228038A1
Authority
WO
WIPO (PCT)
Prior art keywords
domain name
address
address corresponding
valid
network
Prior art date
Application number
PCT/CN2019/087309
Other languages
English (en)
Chinese (zh)
Inventor
成云峰
Original Assignee
深圳市欢太科技有限公司
Oppo广东移动通信有限公司
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 深圳市欢太科技有限公司, Oppo广东移动通信有限公司 filed Critical 深圳市欢太科技有限公司
Priority to CN201980089742.7A priority Critical patent/CN113316926B/zh
Priority to PCT/CN2019/087309 priority patent/WO2020228038A1/fr
Publication of WO2020228038A1 publication Critical patent/WO2020228038A1/fr

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming

Definitions

  • This application relates to the field of computer technology, and more specifically, to a domain name processing method, device, electronic equipment, and storage medium.
  • this application proposes a domain name processing method, device, electronic equipment, and storage medium to improve the above problems.
  • this application provides a domain name processing method, applied to the client, the method includes: when it is detected that a network service request needs to be made, obtaining the domain name required to make the network service request; A valid IP address corresponding to the domain name, the valid IP address is an IP address corresponding to the domain name obtained by historical resolution based on HTTPDNS; if a valid IP address corresponding to the domain name is found, based on The found valid IP address generates a network service request.
  • this application provides a domain name processing device, the device comprising: a domain name acquiring unit, configured to acquire the domain name required to perform the network service request when it is detected that the network service request needs to be made; an IP search unit , Used to find whether a valid IP address corresponding to the domain name is stored, and the valid IP address is an IP address corresponding to the domain name obtained by historical resolution based on HTTPDNS; the network service processing unit is used to find When there is a valid IP address corresponding to the domain name, a network service request is generated based on the found valid IP address.
  • this application provides an electronic device, including one or more processors and a memory; one or more programs are stored in the memory and configured to be executed by the one or more processors Implement the above method.
  • the present application provides a computer-readable storage medium in which program code is stored, wherein the above-mentioned method is executed when the program code is run by a processor.
  • This application provides a domain name processing method, device, electronic device and storage medium.
  • the domain name for the network service request is obtained, and then it is checked whether the history is stored and the data obtained by the analysis based on HTTPDNS For the IP address corresponding to the domain name, if a valid IP address corresponding to the domain name is found, a network service request is generated based on the found valid IP address.
  • the locally stored IP address can be directly used for the service request, thereby avoiding the problem of domain name hijacking caused by the direct use of domain name resolution, and the problem that the failure of domain name resolution affects the efficiency of service requests .
  • Figure 1 shows an application network environment diagram of a domain name processing method proposed in an embodiment of this application
  • Figure 2 shows a flowchart of a domain name processing method proposed in an embodiment of the present application
  • FIG. 3 shows a schematic diagram of a network service in a domain name processing method proposed in an embodiment of the present application
  • FIG. 4 shows a flowchart of a domain name processing method proposed in another embodiment of the present application.
  • FIG. 5 shows a flowchart of a domain name processing method proposed by another embodiment of the present application.
  • Fig. 6 shows a flowchart of a domain name processing method proposed by another embodiment of the present application.
  • FIG. 7 shows a flowchart of a domain name processing method proposed by another embodiment of the present application.
  • FIG. 8 shows a structural block diagram of a domain name processing apparatus proposed in an embodiment of the present application.
  • FIG. 9 shows a structural block diagram of a domain name processing device proposed in another embodiment of the present application.
  • FIG. 10 shows a structural block diagram of a domain name processing device proposed by another embodiment of the present application.
  • FIG. 11 shows a structural block diagram of an electronic device for executing the domain name processing method according to an embodiment of the present application in real time of the present application
  • FIG. 12 shows the storage unit used to store or carry the program code for realizing the domain name processing method according to the embodiment of the present application in real time of the present application.
  • DNS Domain Name System
  • the Domain Name System is a core service of the Internet. It serves as a distributed database that can map domain names and IP addresses to each other, enabling people to access the Internet more conveniently. No need to remember the IP address number string that can be directly read by the machine.
  • www.wikipedia.org is a domain name that corresponds to the IP address 208.80.152.2.
  • DNS is like an automatic telephone directory, we can directly dial the name of Wikipedia instead of phone number (IP address). After we directly call the name of the website, DNS will convert the user-friendly name (such as www.wikipedia.org) into an IP address (such as 208.80.152.2) that is easy to recognize by the machine.
  • the electronic device 100 sends www.wikipedia.org to the domain name server 200 ,
  • the domain name server 200 will resolve www.wikipedia.org to obtain the corresponding IP address, and then return the resolved IP address to the electronic device 100, and then the electronic device 100 will send to the server 300 pointed to by the IP address Network service request.
  • the client can be an application with network communication function, for example, it can be a browser, it can be instant chat software, or it can be video software, etc.
  • the inventor proposes that when the network service request is made, the domain name required for the network service request can be directly used to directly use the locally stored history to resolve the IP corresponding to the domain name based on the HTTPDNS method.
  • Domain name processing methods, devices, electronic equipment, and storage media for domain name processing methods, devices, electronic devices, and storage media that avoid domain name hijacking problems caused by directly using domain name resolution methods and domain name resolution failures that affect service request efficiency.
  • a client with a front-end interface is running in the electronic device, for example, a browser, even chat software, or video software. You can also run some components that do not show network resources to users but manage the aforementioned clients.
  • the electronic device can also run some components that only run in the background without a user interaction interface.
  • the aforementioned components can also be run as independent applications or run as an SDK plug-in of the client. Then, the domain name processing method provided by the embodiment of the present application can run on the aforementioned client or the aforementioned component, and the specific operation mode thereof will be introduced through the following embodiments.
  • a domain name processing method provided by an embodiment of the present application is applied to a client, and the method includes:
  • Step S110 When it is detected that a network service request needs to be made, obtain the domain name required for the network service request.
  • the network service request may be triggered after the client detects that a domain name has been input in the domain name input area of the client, or it may be triggered after the client detects that a certain displayed hyperlink is touched. For example, if the client detects that a domain name is entered in the domain name input area, and then detects that the control to start the search is triggered, it determines that a network service request is required, and uses the domain name entered in the input area as the place for the network service request. The required domain name.
  • a text, picture or video configured with a hyperlink is displayed on the interface of the client.
  • the hyperlink corresponding to the text, picture or video is oppo.com
  • the client detects the text, picture or video
  • the hyperlink corresponding to the touched text, picture or video is used as the domain name required for the network service request.
  • the server that forwards the instruction can be understood as a server that forwards the user's control instruction to the controlled device.
  • the client can run in the control terminal 100, and the control command sent by the client can be transmitted from the mobile terminal network (for example, 2G/3G/4G/5G network) to the server in the cloud 91, It is then forwarded to the controlled device 99 by the server in the cloud 91 via the router 90 and the gateway 98. Then in this way, the client can display the control interface of the controlled device 99, and the content displayed in the interface is to start this text.
  • the configured domain name is the address to the server in the cloud 91.
  • Step S120 Find out whether a valid IP address corresponding to the domain name is stored, and the valid IP address is an IP address corresponding to the domain name obtained by historical resolution based on HTTPDNS.
  • a valid IP address is an IP address determined by the client that the network service request can be successfully made.
  • the client can directly perform domain name resolution based on HTTPDNS to obtain the corresponding IP address. Then, after verifying that the resolved IP address can successfully perform the network service request, the resolved IP address is stored locally as a valid IP address, so that the client can find it in the process of performing step S120.
  • Step S130 If a valid IP address corresponding to the domain name is found, a network service request is generated based on the found valid IP address.
  • the client can generate a network service request based on multiple protocols.
  • the network service request can be generated based on the http (HyperText Transfer Protocol) protocol or the udp (User Datagram Protocol) protocol.
  • Step S140 If no valid IP address corresponding to the domain name is found, obtain the IP address corresponding to the domain name based on domain name resolution.
  • Step S150 Generate a network service request based on the IP address obtained by the domain name resolution method.
  • This application provides a domain name processing method, when it is detected that it is necessary to request a network service, the domain name for the network service request is obtained, and then it is checked whether there is an IP address corresponding to the domain name obtained by the analysis based on the HTTPDNS method. A valid IP address corresponding to the domain name is found, and a network service request is generated based on the found valid IP address.
  • the locally stored IP address can be directly used for the service request, thereby avoiding the problem of domain name hijacking caused by the direct use of domain name resolution, and the problem of domain name resolution failure affecting the efficiency of service request .
  • a domain name processing method provided by an embodiment of the present application is applied to a client, and the method includes:
  • Step S210 When it is detected that a network service request needs to be made, obtain the domain name required for the network service request.
  • Step S220 Check whether the IP address corresponding to the domain name is stored.
  • Step S221 If no IP address corresponding to the domain name is found, a network service request is generated based on the IP address obtained by the domain name resolution method.
  • Step S222 If an IP address corresponding to the domain name is found, it is detected whether the IP address corresponding to the domain name meets a specified condition.
  • the step of searching whether a valid IP address corresponding to the domain name is stored includes:
  • IP address corresponding to the domain name stored; if an IP address corresponding to the domain name is found, detect whether the IP address corresponding to the domain name meets a specified condition; if the IP address corresponding to the domain name is detected The IP address corresponding to the domain name meets the specified condition, and it is determined that the IP address corresponding to the domain name is a valid IP address.
  • the specified condition includes: the IP address corresponding to the domain name has no record information of access failure; or the record time of the last access failure of the IP address corresponding to the domain name is more than the current time Specify the duration.
  • Step S230 If it is detected that the IP address corresponding to the domain name satisfies the specified condition, determine that the IP address corresponding to the domain name is a valid IP address.
  • Step S231 Generate a network service request based on the found IP address.
  • Step S232 If it is detected that the IP address corresponding to the domain name does not meet the specified condition, it is determined that the IP address corresponding to the domain name is not a valid IP address, and the IP address obtained based on the domain name resolution method The address generates a network service request.
  • the domain name processing method provided in this application allows the domain name required for the network service request to be obtained, and the locally stored history can be directly used to perform the service request based on the IP address corresponding to the domain name obtained by the HTTPDNS method. Avoid the problem of domain name hijacking caused by the direct use of domain name resolution, and the problem that the failure of domain name resolution affects the efficiency of service requests. Moreover, in the process of obtaining the IP address locally, the validity of the locally stored IP address can be first verified through established rules, thereby improving the success rate and reliability of service requests.
  • a domain name processing method provided by an embodiment of the present application is applied to a client, and the method includes:
  • Step S310 When it is detected that the network service request needs to be made, obtain the domain name required for the network service request.
  • Step S320 Find in the first storage area whether a valid IP address corresponding to the domain name is stored.
  • the associated data table may be used in the first storage area to store the domain name and the IP address corresponding to the domain name. For example, as shown in the following table:
  • the field operator represents the network operator for IP address adaptation.
  • the client can use an IP address that meets a specified condition as a valid IP address corresponding to the domain name. It is understandable that the valid IP address determined by the client is an IP address that can successfully make a network service request. As a way, the client can check the success of the network service request on the IP address of the first storage area. recording.
  • the client After the client generates and sends a network service request based on the http protocol, if the response data is also returned based on the http protocol, the client can identify the sttu field of the http response header in the response data If the value of the sttu field is 200, it means that the network service request was successfully made; if the value of the sttu field is 400, it means that only an error code is returned or the client does not receive response data based on the http protocol after a specified time , It will be determined that the network service request was not successfully made.
  • the specified condition includes: the IP address corresponding to the domain name has no record information of access failure; or the last access failure of the IP address corresponding to the domain name
  • the recording time is more than the specified time from the current time.
  • the IP address of the server may be changed due to the change of the network operator or the IP used is a dynamic IP address, and if the domain name resolution system is not updated immediately, it will cause the resolved IP The address is the old IP address, which makes it impossible to successfully request the network service.
  • the server configured to forward the control instruction is configured with multiple IP addresses to take effect in different time periods, so that the IP address of the server can dynamically change according to the time period, increasing the server's ability to resist network attacks.
  • the server used for forwarding control commands is configured with four IP addresses: 192.168.0.2, 192.168.0.3, 192.168.0.4, and 192.168.0.5. It is understandable that these four IP addresses They are all mapped to the same domain name such as abcd.com. And the configuration of 192.168.0.2, 192.168.0.3, 192.168.0.4 and 192.168.0.5 will take effect in a time period equally divided within 24 hours a day.
  • 192.168.0.2 takes effect from 0 to 6 o’clock
  • 192.168.0.3 takes effect at 6
  • 192.168.0.4 takes effect from 12:00 to 18:00
  • 192.168.0.5 takes effect from 18:00 to 24 (that is, 0:00).
  • the server be controlled to complete the requested network service. For example, when the control terminal operated by the user sends a network service request for controlling the controlled device to the server configured with multiple IPs at 9 o'clock, the destination IP address of the network service request needs to be 192.168.0.3 to send the request Send to the server.
  • the client fails to make a network service request based on the IP address stored in the first storage area, it can be determined that the IP address is not a valid IP address.
  • the server pointed to by the domain name uses a dynamic IP address, then it is possible to switch the IP address within a certain period of time, or in other words, every time it is started When a new IP address is re-allocated, it will appear that although a certain IP address cannot successfully make a network service request, it will be able to make a network service request after a certain period of time.
  • the client can first determine whether the IP address corresponding to the server of the requested network service is a fixed IP address or a dynamic IP address. If a fixed IP address is used, the client can determine the aforementioned specified condition as only Including the IP address corresponding to the domain name without access failure record information, and if the IP address corresponding to the server of the requested network service is a dynamic IP address, then it is determined that the aforementioned specified condition is determined to include only the domain name.
  • the record time of the last access failure of the corresponding IP address is longer than the specified time from the current time.
  • the specified duration may be the duration of one cycle for the server's IP to dynamically update the IP address.
  • the client and the server for the client’s network service request are provided by the same developer, then the server’s domain name and the configuration method of the IP address corresponding to the domain name can be stored in the client, so that the client The end can know whether the server uses a fixed IP address or a dynamic IP address by identifying the configuration method.
  • Step S330 If a valid IP address corresponding to the domain name is found, a network service request is generated based on the found valid IP address.
  • Step S340 If no valid IP address corresponding to the domain name is found, search in the second storage area to find out whether there is a candidate IP address corresponding to the domain name stored in the second storage area.
  • the storage area is different.
  • the IP address corresponding to the domain name stored in the second storage area is the IP address to be selected that has not been filtered, and the IP address to be selected in the second storage area is The selected IP address will be stored in the aforementioned first storage area. Therefore, the IP address stored in the first storage area is more suitable for the client, so in this way, the client will preferentially search for the first storage area If the IP address stored in the first storage area is invalid or the IP address corresponding to the domain name required to request the network service is not found, the first storage area is searched again.
  • domain names and IP addresses can also be correspondingly stored in the form of associated data tables. For example, as shown in the following table:
  • the data table in the second storage area has more fields.
  • the "effective timestamp” field is used to store the effective time period corresponding to the IP address
  • the field "port” is used to store the access port that the IP address is adapted to
  • the field "weight” is used to store the recommendation degree of the IP address being adopted. The higher the weight, the higher the recommendation.
  • the client in order to facilitate data storage, can calculate the characteristic value (for example, hash calculation) at the start time and end time represented by the valid time period, and then calculate the result The characteristic value of is stored in the "valid timestamp” field, and when the valid time period needs to be queried, the data can be reversed again.
  • the characteristic value for example, hash calculation
  • the step of searching whether there is a candidate IP address corresponding to the domain name in the second storage area includes: searching for whether there is any IP address in a designated file (for example, the aforementioned data table) in the second storage area.
  • the IP address corresponding to the domain name if there is an IP address corresponding to the domain name in the designated file, detect whether the IP address corresponding to the domain name in the designated file meets the valid condition, and if the The IP address with valid conditions is used as the IP address to be selected.
  • the valid condition includes at least one of the following conditions: the current moment is within the valid timestamp corresponding to the IP address; and the access success rate corresponding to the IP address is higher than a specified value.
  • the current time within the valid time stamp corresponding to the IP address can be understood as the current time between the start time and the end time of the valid time period.
  • the second storage area also stores first network characteristic information corresponding to each IP address to be selected, and the step of determining the target IP address from the IP address to be selected includes: obtaining a client The second network characteristic information of the accessed network; the IP address corresponding to the first network characteristic information and the second network characteristic information in the to-be-selected IP address is used as the target IP address, and then based on the target IP address Generate a web service request. It is understandable that the efficiency of data transmission between devices provided by the same network operator is generally higher than the efficiency of data transmission by inter-transport operators.
  • the client when the client recognizes that the network it is accessing is a mobile (operator name) network, it can use the same mobile-compatible IP address stored in the second storage area to improve service requests effectiveness.
  • the first network characteristic information may include an adapted network operator
  • the second network characteristic information may include an adapted network operator.
  • the step of using the IP address matching the first network feature information and the second network feature information in the candidate IP address as the target IP address includes: setting the candidate IP address
  • the IP address of the adapted network operator in the address is the same as the network operator of the network accessed by the client as the target IP address.
  • the second storage area also stores the weight corresponding to each IP address to be selected; the network operator that adapts the IP address to be selected and the network accessed by the client
  • the step of using the same IP address of the network operator as the target IP address includes: obtaining the number of reference IP addresses, where the reference IP address is the network operator and the client accessing from the candidate IP addresses The same IP address of the network operator of the network; if it is identified that the number is greater than 1, the respective weights of the reference IP addresses are compared; the reference IP address with the largest corresponding weight is used as the target IP address.
  • Step S350 If the IP address to be selected is found, a target IP address is determined from the IP address to be selected, and a network service request is generated based on the target IP address.
  • Step S360 Store the target IP address and the domain name correspondingly in the first storage area.
  • Step S370 If the candidate IP address is not found, generate a network service request based on the IP address obtained by the domain name resolution method.
  • the domain name processing method provided in this application allows the domain name required for the network service request to be obtained, and the locally stored history can be directly used to perform the service request based on the IP address corresponding to the domain name obtained by the HTTPDNS method. Avoid the problem of domain name hijacking caused by the direct use of domain name resolution, and the problem that the failure of domain name resolution affects the efficiency of service requests.
  • the IP address obtained by resolving the HTTPDNS method based on the multi-level cache history can be used, so that the directly usable IP address that has been determined by calculation can be found in the first storage area.
  • a domain name processing method provided by an embodiment of the present application is applied to a client, and the method includes:
  • Step S410 When it is detected that the network service request needs to be made, obtain the domain name required for the network service request.
  • Step S420 Check whether a valid IP address corresponding to the domain name is stored, and the valid IP address is an IP address corresponding to the domain name obtained by historical resolution based on HTTPDNS.
  • Step S430 If a valid IP address corresponding to the domain name is found, a network service request is generated based on the found valid IP address.
  • Step S440 If the candidate IP address is not found, send a first domain name resolution request carrying the domain name to the DNS server, and at the same time send a second domain name resolution request carrying the domain name to the designated HTTPDNS server .
  • Step S450 Determine the IP address corresponding to the domain name based on the respective response results of the first domain name resolution request and the second domain name resolution request.
  • the step of determining the IP address corresponding to the domain name based on the respective response results of the first domain name resolution request and the second domain name resolution request includes:
  • the IP address is obtained from the response result of the second domain name resolution request as the IP address corresponding to the domain name.
  • the step of obtaining the IP address from the response result of the first domain name resolution request as the IP address corresponding to the domain name include:
  • the IP address is obtained from the response result of the second domain name resolution request and stored in the second storage area, and overwrites the domain name in the second storage area The corresponding IP address to be selected.
  • the legality verification may be performed first, and the storage may be performed after the verification is passed.
  • the HTTPDNS server can encrypt and sign the response message returned to the client using the HmacSHA256 signature algorithm, obtain the corresponding signature array and then encode it with Base64 to obtain a string, and set the string to the HTTP Header of the response result in. After the client receives the response result, it uses the same algorithm for the received response result, and also gets a string, compares this string with the string in the HTTP Header, if the same, the verification passes.
  • the risk of domain name hijacking occurs in the process of domain name resolution in the traditional DNS method, resulting in failure to successfully return the required IP address, or the risk of the returned IP address being falsified. So as a way, if the client first receives the response result of the second domain name resolution request while simultaneously sending the aforementioned first domain name resolution request and the second domain name resolution request in an asynchronous manner, then After generating a network service request based on the IP address in the response result of the second domain name resolution request, the aforementioned operation of verifying and storing the response result is performed.
  • the method further includes: obtaining the timeliness requirements of the service requiring the network service request.
  • the step of obtaining the timeliness requirement of the service requiring a network service request includes: if it is identified that the service is equipment control, determining that the timeliness requirement of the equipment control service is the first time requirement; If it is recognized that the service is to perform device configuration, it is determined that the time-sensitive requirement of the service that performs device control is the second time-sensitive requirement.
  • the step S440 is executed, wherein the timeliness corresponding to the first timeliness requirement is higher than the timeliness corresponding to the second timeliness requirement.
  • the domain name processing method provided in this application allows the domain name required for the network service request to be obtained, and the locally stored history can be directly used to perform the service request based on the IP address corresponding to the domain name obtained by the HTTPDNS method. Avoid the problem of domain name hijacking caused by the direct use of domain name resolution, and the problem that the failure of domain name resolution affects the efficiency of service requests.
  • domain name resolution can be performed based on both DNS and HTTPDNS methods, which further ensures the success rate and reliability of domain name resolution, and also improves network services The success rate of the request.
  • it can be determined as a network service according to the order in which the first domain name resolution request carrying the domain name is sent to the DNS server, and the specified HTTPDNS server sends the response of the second domain name resolution request carrying the domain name.
  • the destination IP address of the request can be determined as a network service according to the order in which the first domain name resolution request carrying the domain name is sent to the DNS server, and the specified HTTPDNS server sends the response of the second domain name resolution request carrying the domain name.
  • the destination IP address of the request can be determined as a network service according to the order in which the first domain name resolution request carrying the domain name is sent to the DNS server, and the specified HTTPDNS server sends the response of the second domain name resolution request carrying the domain name. The destination IP address of the request.
  • a domain name processing method provided by an embodiment of the present application is applied to a component capable of communicating with a client.
  • the method includes the method including:
  • Step S510 When it is detected that the client terminal needs to make a network service request, obtain the domain name required to make the network service request.
  • the client can be adaptively changed so that the client and the component can exchange data through inter-process communication, so that the component can obtain when the client needs to make a network service request.
  • Step S520 Find out whether a valid IP address corresponding to the domain name is stored, and the valid IP address is an IP address corresponding to the domain name obtained by historical resolution based on HTTPDNS.
  • Step S530 If a valid IP address corresponding to the domain name is found, a network service request is generated based on the found valid IP address.
  • Step S540 If no valid IP address corresponding to the domain name is found, a network service request is generated based on the IP address obtained by means of domain name resolution.
  • step S520 and step S530 in this embodiment, please refer to the content in the foregoing method embodiment, which will not be repeated here.
  • the implementation based on the component can enable multiple clients to implement the content in the foregoing method embodiment through one component.
  • a domain name processing apparatus 500 provided by an embodiment of the present application, the apparatus 500 includes:
  • the domain name obtaining unit 510 is configured to obtain a domain name required for performing the network service request when it is detected that the network service request needs to be performed.
  • the IP lookup unit 520 is configured to look up whether a valid IP address corresponding to the domain name is stored, and the valid IP address is an IP address corresponding to the domain name obtained by historical resolution based on the HTTPDNS method.
  • the network service processing unit 530 is configured to, if a valid IP address corresponding to the domain name is found, generate a network service request based on the found valid IP address.
  • the IP lookup unit 520 is specifically configured to look up whether an IP address corresponding to the domain name is stored; if an IP address corresponding to the domain name is found, detect the IP address corresponding to the domain name Whether the IP address meets a specified condition; if it is detected that the IP address corresponding to the domain name meets the specified condition, it is determined that the IP address corresponding to the domain name is a valid IP address.
  • the specified condition includes: the IP address corresponding to the domain name has no access failure record information; or the IP address corresponding to the domain name has a record time of the most recent access failure time The time exceeds the specified time.
  • the IP lookup unit 520 is specifically configured to look up in the first storage area whether a valid IP address corresponding to the domain name is stored; if no valid IP address corresponding to the domain name is found, The second storage area searches for whether there is a candidate IP address corresponding to the domain name stored, and the second storage area is different from the first storage area; if the candidate IP address is found, select from the candidate IP address A target IP address is determined from the IP address, and a network service request is generated based on the target IP address; the target IP address and the domain name are correspondingly stored in the first storage area.
  • the first storage area is a memory
  • the second storage area is a file system.
  • the IP lookup unit 520 is specifically configured to look up whether there is an IP address corresponding to the domain name in the designated file in the second storage area; if there is an IP address corresponding to the domain name in the designated file Detect whether the IP address corresponding to the domain name in the designated file meets the valid condition; if the IP address that meets the valid condition is used as the IP address to be selected.
  • the valid condition includes at least one of the following conditions: the current moment is within a valid timestamp corresponding to the IP address; and the access success rate corresponding to the IP address is higher than a specified value.
  • the second storage area also stores first network feature information corresponding to each IP address to be selected.
  • the IP search unit 520 is specifically configured to obtain the second network characteristic information of the network accessed by the client; and compare the corresponding first network characteristic information in the candidate IP address with the second network characteristic information. The IP address that the information matches is used as the target IP address.
  • the first network characteristic information includes an adapted network operator
  • the second network characteristic information includes an adapted network operator.
  • the second storage area also stores a weight corresponding to each IP address to be selected.
  • the IP lookup unit 520 is specifically configured to obtain the number of reference IP addresses, where the reference IP addresses are the network operators that are adapted from the candidate IP addresses and the network accessed by the client. The same IP address of the network operator; if it is identified that the number is greater than 1, the respective weights of the reference IP addresses are compared; the reference IP address with the largest corresponding weight is used as the target IP address.
  • the device 500 further includes a domain name resolution unit 540, configured to obtain an IP address corresponding to the domain name based on domain name resolution if the candidate IP address is not found.
  • the network service processing unit 530 is configured to generate a network service request based on the IP address obtained by the domain name resolution method.
  • the domain name resolution unit 540 is specifically configured to send a first domain name resolution request carrying the domain name to a DNS server, and at the same time send a second domain name resolution request carrying the domain name to a designated HTTPDNS server, based on The respective response results of the first domain name resolution request and the second domain name resolution request determine the IP address corresponding to the domain name.
  • the domain name resolution unit 540 is specifically configured to, if it is detected that the response result of the first domain name resolution request is first received, obtain the IP address from the response result of the first domain name resolution request as the corresponding domain name. IP address; if it is detected that the response result of the second domain name resolution request is received first, the IP address is obtained from the response result of the second domain name resolution request as the IP address corresponding to the domain name.
  • the device further includes an IP storage unit 550, configured to obtain the response result of the second domain name resolution request if the response result of the second domain name resolution request is received
  • the IP address is stored in the second storage area and covers the IP address to be selected corresponding to the domain name in the second storage area.
  • the domain name resolution unit 540 is also configured to obtain the timeliness requirements of the services that require network service requests. If the timeliness requirements meet the first timeliness requirements, send the first timeliness requirements carrying the domain names to the DNS server. Domain name resolution request, and based on the response result of the first domain name resolution request, determine the IP address corresponding to the domain name; if the timeliness shown meets the second timeliness requirement, execute the sending to the DNS server carrying the domain name And send a second domain name resolution request carrying the domain name to the designated HTTPDNS server at the same time; wherein, the timeliness corresponding to the first time-sensitive requirement is higher than the timeliness corresponding to the second time-sensitive requirement Sex.
  • the domain name resolution unit 540 is specifically configured to determine that the time-sensitive requirement of the service that performs device control is the first time-sensitive requirement if the service is recognized as performing device control; if the service is recognized as performing device configuration, determine that The timeliness requirement for the business of equipment control is the second timeliness requirement.
  • an embodiment of the present application also provides another electronic device 100 that can execute the aforementioned domain name processing method.
  • the electronic device 100 includes one or more (only one is shown in the figure) a processor 102, a memory 104, and a wireless module 106 coupled to each other.
  • the memory 104 stores a program that can execute the content in the foregoing embodiment, and the processor 102 can execute the program stored in the memory 104.
  • the processor 102 may include one or more processing cores.
  • the processor 102 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes by running or executing instructions, programs, code sets, or instruction sets stored in the memory 104, and calling data stored in the memory 104.
  • the processor 102 may use at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA).
  • DSP Digital Signal Processing
  • FPGA Field-Programmable Gate Array
  • PDA Programmable Logic Array
  • the processor 102 may integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), a modem, and the like.
  • the CPU mainly processes the operating system, user interface, and application programs; the GPU is used for rendering and drawing of display content; the modem is used for processing wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor 102, but may be implemented by a communication chip alone.
  • the memory 104 may include random access memory (RAM) or read-only memory (Read-Only Memory).
  • the memory 104 may be used to store instructions, programs, codes, code sets or instruction sets.
  • the memory 104 may include a storage program area and a storage data area, where the storage program area may store instructions for implementing the operating system and instructions for implementing at least one function (such as touch function, sound playback function, image playback function, etc.) , Instructions for implementing the following method embodiments, etc.
  • the data storage area can also store data (such as phone book, audio and video data, chat record data) created by the terminal 100 during use.
  • the wireless module 106 is used to receive and send electromagnetic waves, and realize the mutual conversion between electromagnetic waves and electrical signals, so as to communicate with a communication network or other equipment, such as communicating with an audio playback device.
  • the wireless module 106 may include various existing circuit elements for performing these functions, for example, an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a subscriber identity module (SIM) card, a memory, etc. .
  • SIM subscriber identity module
  • the wireless module 106 can communicate with various networks such as the Internet, an intranet, and a wireless network, or communicate with other devices through a wireless network.
  • the aforementioned wireless network may include a cellular telephone network, a wireless local area network, or a metropolitan area network.
  • the wireless module 106 can exchange information with the base station.
  • FIG. 12 shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application.
  • the computer-readable medium 800 stores program code, and the program code can be invoked by a processor to execute the method described in the foregoing method embodiment.
  • the computer-readable storage medium 800 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
  • the computer-readable storage medium 800 includes a non-transitory computer-readable storage medium.
  • the computer-readable storage medium 800 has a storage space for the program code 810 for executing any method steps in the above-mentioned methods. These program codes can be read out from or written into one or more computer program products.
  • the program code 810 may be compressed in a suitable form, for example.
  • this application provides a domain name processing method, device, electronic device and storage medium.
  • the domain name for the network service request is obtained, and then it is checked whether the history is stored based on the HTTPDNS method
  • the IP address corresponding to the domain name obtained by the analysis if a valid IP address corresponding to the domain name is found, a network service request is generated based on the found valid IP address.
  • the locally stored IP address can be directly used for the service request, thereby avoiding the problem of domain name hijacking caused by the direct use of domain name resolution, and the problem of domain name resolution failure affecting the efficiency of service request .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Conformément à des modes de réalisation, la présente invention concerne un procédé de traitement de nom de domaine, un appareil, un dispositif électronique et un support de stockage. Le procédé comprend les étapes suivantes : lorsque l'on détecte qu'une demande de service réseau a besoin d'être effectuée, acquérir un nom de domaine requis pour réaliser la demande de service réseau ; vérifier si une adresse IP valide correspondant au nom de domaine est mémorisée, ladite adresse IP valide étant une adresse IP correspondant au nom de domaine et obtenue historiquement par résolution sur la base de HTTPDNS ; et si une adresse IP valide correspondant au nom de domaine est trouvée, générer ensuite une demande de service réseau sur la base de l'adresse IP valide trouvée. De cette manière, lors de la réalisation d'une demande de service réseau, une adresse IP mémorisée localement peut être directement utilisée pour réaliser la demande de service, ce qui permet d'éviter le problème de détournement de nom de domaine provoqué par l'utilisation d'une résolution de nom de domaine directement ainsi que d'impact sur l'efficacité de demande de service en raison d'une défaillance de résolution de nom de domaine.
PCT/CN2019/087309 2019-05-16 2019-05-16 Procédé de traitement de nom de domaine, appareil, dispositif électronique et support de stockage WO2020228038A1 (fr)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201980089742.7A CN113316926B (zh) 2019-05-16 2019-05-16 域名处理方法、装置、电子设备以及存储介质
PCT/CN2019/087309 WO2020228038A1 (fr) 2019-05-16 2019-05-16 Procédé de traitement de nom de domaine, appareil, dispositif électronique et support de stockage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/087309 WO2020228038A1 (fr) 2019-05-16 2019-05-16 Procédé de traitement de nom de domaine, appareil, dispositif électronique et support de stockage

Publications (1)

Publication Number Publication Date
WO2020228038A1 true WO2020228038A1 (fr) 2020-11-19

Family

ID=73289128

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/087309 WO2020228038A1 (fr) 2019-05-16 2019-05-16 Procédé de traitement de nom de domaine, appareil, dispositif électronique et support de stockage

Country Status (2)

Country Link
CN (1) CN113316926B (fr)
WO (1) WO2020228038A1 (fr)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112866116A (zh) * 2020-12-31 2021-05-28 平安科技(深圳)有限公司 网络访问探测方法、装置、设备及存储介质
CN113992627A (zh) * 2021-10-26 2022-01-28 北京字节跳动网络技术有限公司 一种域名解析方法、装置、设备及介质
CN114095475A (zh) * 2020-12-28 2022-02-25 京东科技控股股份有限公司 数据处理方法、装置、电子设备、系统和存储介质
CN114338630A (zh) * 2021-12-13 2022-04-12 海尔优家智能科技(北京)有限公司 域名访问方法、装置、电子设备、存储介质及程序产品
CN115473871A (zh) * 2022-09-19 2022-12-13 广州市百果园网络科技有限公司 域名本地解析方法及其装置、设备、介质、产品
CN116319113A (zh) * 2023-05-23 2023-06-23 阿里云计算有限公司 一种域名解析异常的检测方法和电子设备

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113691858A (zh) * 2021-08-31 2021-11-23 Vidaa美国公司 显示设备及界面显示方法

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105516385A (zh) * 2015-12-02 2016-04-20 传线网络科技(上海)有限公司 域名解析方法、服务器和系统
CN109347997A (zh) * 2018-12-18 2019-02-15 深圳创维数字技术有限公司 域名解析方法、装置、服务器及存储介质
US10225315B2 (en) * 2014-05-20 2019-03-05 Alibaba Group Holding Limited Method and system for acquiring web pages
CN109618024A (zh) * 2019-02-01 2019-04-12 网宿科技股份有限公司 一种基于http的域名解析方法和系统

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217576B (zh) * 2008-01-18 2012-05-02 厦门纳网科技有限公司 动态域名解析系统及其动态解析方法
CN104092787B (zh) * 2014-06-24 2016-04-13 腾讯科技(深圳)有限公司 基于dns的网络访问方法和系统
CN106161664A (zh) * 2015-04-15 2016-11-23 阿里巴巴集团控股有限公司 域名解析方法及装置、数据传输方法及装置
CN106161669A (zh) * 2015-04-28 2016-11-23 阿里巴巴集团控股有限公司 一种快速域名解析方法和系统、及其终端和服务器
CN108173976B (zh) * 2016-12-07 2020-12-04 腾讯科技(深圳)有限公司 域名解析方法及装置
CN109391703B (zh) * 2017-08-10 2021-11-23 阿里巴巴集团控股有限公司 域名解析方法、装置、设备和计算机存储介质
CN107896241B (zh) * 2017-10-23 2020-12-18 东软集团股份有限公司 网络访问速度的探测方法、装置、存储介质和电子设备
CN108718347B (zh) * 2018-05-18 2021-12-03 腾讯科技(深圳)有限公司 一种域名解析方法、系统、装置及存储介质
CN108881515B (zh) * 2018-07-09 2021-10-08 迈普通信技术股份有限公司 域名解析方法、装置及网络设备
CN108924274B (zh) * 2018-09-14 2021-10-26 Oppo广东移动通信有限公司 域名系统dns处理方法、装置、存储介质及电子设备

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10225315B2 (en) * 2014-05-20 2019-03-05 Alibaba Group Holding Limited Method and system for acquiring web pages
CN105516385A (zh) * 2015-12-02 2016-04-20 传线网络科技(上海)有限公司 域名解析方法、服务器和系统
CN109347997A (zh) * 2018-12-18 2019-02-15 深圳创维数字技术有限公司 域名解析方法、装置、服务器及存储介质
CN109618024A (zh) * 2019-02-01 2019-04-12 网宿科技股份有限公司 一种基于http的域名解析方法和系统

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114095475A (zh) * 2020-12-28 2022-02-25 京东科技控股股份有限公司 数据处理方法、装置、电子设备、系统和存储介质
CN112866116A (zh) * 2020-12-31 2021-05-28 平安科技(深圳)有限公司 网络访问探测方法、装置、设备及存储介质
CN112866116B (zh) * 2020-12-31 2023-06-20 平安科技(深圳)有限公司 网络访问探测方法、装置、设备及存储介质
CN113992627A (zh) * 2021-10-26 2022-01-28 北京字节跳动网络技术有限公司 一种域名解析方法、装置、设备及介质
CN114338630A (zh) * 2021-12-13 2022-04-12 海尔优家智能科技(北京)有限公司 域名访问方法、装置、电子设备、存储介质及程序产品
CN114338630B (zh) * 2021-12-13 2024-04-19 海尔优家智能科技(北京)有限公司 域名访问方法、装置、电子设备、存储介质及程序产品
CN115473871A (zh) * 2022-09-19 2022-12-13 广州市百果园网络科技有限公司 域名本地解析方法及其装置、设备、介质、产品
CN115473871B (zh) * 2022-09-19 2023-08-04 广州市百果园网络科技有限公司 域名本地解析方法及其装置、设备、介质、产品
CN116319113A (zh) * 2023-05-23 2023-06-23 阿里云计算有限公司 一种域名解析异常的检测方法和电子设备
CN116319113B (zh) * 2023-05-23 2023-08-11 阿里云计算有限公司 一种域名解析异常的检测方法和电子设备

Also Published As

Publication number Publication date
CN113316926B (zh) 2023-12-05
CN113316926A (zh) 2021-08-27

Similar Documents

Publication Publication Date Title
WO2020228038A1 (fr) Procédé de traitement de nom de domaine, appareil, dispositif électronique et support de stockage
US11128621B2 (en) Method and apparatus for accessing website
CN111314459B (zh) 一种业务请求方法、装置、电子设备及存储介质
WO2017004947A1 (fr) Procédé et appareil de prévention du piratage de nom de domaine
WO2020206660A1 (fr) Procédé et appareil de requête de ressource de réseau dispositif électronique et support d'informations
US10516666B2 (en) Authentication method, apparatus, and system
US20100281146A1 (en) Dynamic domain name service system and automatic registration method
US9374244B1 (en) Remote browsing session management
CN110430188B (zh) 一种快速url过滤方法及装置
WO2018113730A1 (fr) Procédé et appareil de détection de sécurité réseau
CN109218457B (zh) 网络数据处理方法、装置和系统
WO2020088170A1 (fr) Procédé de configuration de système de nom de domaine et appareil associé
US20170289243A1 (en) Domain name resolution method and electronic device
CN113347242A (zh) 跨设备资源访问方法、装置、存储介质及电子设备
WO2019019670A1 (fr) Procédé et dispositif d'accès à une application, appareil informatique et support d'informations
US20100082674A1 (en) System for detecting user input error
WO2018228234A1 (fr) Procédé de mise en cache vidéo et dispositif de mise en cache
CN113242331A (zh) 不同类型的地址转换方法、装置、计算机设备及存储介质
US8271829B2 (en) Network connection device and method for detecting network errors
WO2019153586A1 (fr) Procédé et appareil de traitement de données de dialogue en ligne, dispositif informatique et support d'informations
CN108055299B (zh) Portal页面推送方法、网络接入服务器及Portal认证系统
CN111556109B (zh) 请求处理方法、装置、电子设备和存储介质
CN115913597A (zh) 确定失陷主机的方法及装置
CN110177096B (zh) 客户端认证方法、装置、介质和计算设备
WO2017181407A1 (fr) Procédé d'authentification de réseau, client, dispositif de terminal et plateforme

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19928357

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 26/04/2022)

122 Ep: pct application non-entry in european phase

Ref document number: 19928357

Country of ref document: EP

Kind code of ref document: A1