CN106331213B - A kind of domain name system DNS processing method and processing device - Google Patents

A kind of domain name system DNS processing method and processing device Download PDF

Info

Publication number
CN106331213B
CN106331213B CN201610749575.2A CN201610749575A CN106331213B CN 106331213 B CN106331213 B CN 106331213B CN 201610749575 A CN201610749575 A CN 201610749575A CN 106331213 B CN106331213 B CN 106331213B
Authority
CN
China
Prior art keywords
domain name
address
terminal device
network
dns
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.)
Active
Application number
CN201610749575.2A
Other languages
Chinese (zh)
Other versions
CN106331213A (en
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610749575.2A priority Critical patent/CN106331213B/en
Publication of CN106331213A publication Critical patent/CN106331213A/en
Application granted granted Critical
Publication of CN106331213B publication Critical patent/CN106331213B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5076Update or notification mechanisms, e.g. DynDNS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/58Caching of addresses or names

Abstract

The embodiment of the invention discloses a kind of domain name system DNS processing method and processing device, method therein may include:In the case where the access network for detecting terminal device switches, the DNS query request of target domain name is initiated;Dns resolution result corresponding to the DNS query request is received, the dns resolution result includes at least one the first IP address corresponding with the target domain name;First IP address is stored in the terminal device.Using the present invention can solve solve in the prior art in the prior art terminal device occur access network switching after, can not quickly access target network site the problem of, improve Consumer's Experience.

Description

A kind of domain name system DNS processing method and processing device
Technical field
The present invention relates to electronic technology field, more particularly to a kind of domain name system DNS processing method and processing device.
Background technology
DNS (Domain Name System, domain name system) is mutually mapped as domain name and IP address on internet One distributed data base, can make user more easily access internet, remember to be directly read by machine without spending IP number strings.The process that domain name is mapped as to IP address is known as " domain name mapping ".Domain name mapping is needed by special domain name solution Server is analysed to complete, DNS is exactly the server for carrying out domain name mapping.When user inputs DNS name (domain in the application Name) when, this name resolving can be corresponding IP address by dns server.Thus, the domain that user inputs in online Name, is that the IP address pointed to by the domain name could finally be surfed the Net.
In the prior art, the domain name of website is usually unique, and IP address is likely to be not under different network environments The same, therefore apply when some websites are accessed, DNS query request is initiated first, is returned getting dns server Dns resolution result (IP address) and then website is accessed by IP address.
Many third-party application softwares reduce the time of DNS query, generally existed to accelerate the speed of access website at present When accessing some websites for the first time, DNS query can be initiated, then the result cache of DNS query to local, at one section It is interior access the website can before direct use DNS Query Result, without initiating DNS query again.It is however, so easy Occur a problem, be often in the DNS query result of Wireless Fidelity Wi-Fi network and mobile data network it is inconsistent, such as The initial connection of fruit is mobile data network, behind be switched to Wi-Fi network, many applications will not go to update DNS automatically looks into Result is ask, the Query Result before direct use, access network failure just occurs.Only wait the DNS cache of application cache After expiring, correct IP address could be obtained by initiating DNS again.Consequently, it is possible to greatly reduce customer access network into Power and efficiency, influence Consumer's Experience.
The content of the invention
Technical problem to be solved of the embodiment of the present invention is, there is provided a kind of domain name system DNS processing method and processing device, Can solve in the prior art that terminal device is after occurring to access network switching, the problem of specified network can not be quickly accessed.
In a first aspect, the embodiments of the invention provide a kind of domain name system DNS processing method, it may include:
In the case where the access network for detecting terminal device switches, the DNS query request of target domain name is initiated;
Receive dns resolution result corresponding to DNS query request, the dns resolution result include it is at least one and First IP address corresponding to the target domain name;
First IP address is stored in the terminal device.
With reference in a first aspect, in the first possible implementation, methods described also includes:
When receiving the access instruction for the target domain name, described the be stored in the terminal device is accessed Network site corresponding to one IP address.
With reference to the first possible implementation of first aspect, in second of possible implementation, methods described Also include:
Before the access network for detecting terminal device switches, the mesh is stored with the terminal device Mark the second IP address corresponding to domain name.
With reference to second of possible implementation of first aspect, in the third possible implementation, methods described Also include:
If accessing network site failure corresponding to first IP address, network corresponding to second IP address is accessed Position.
With reference to the third possible implementation of first aspect, in the 4th kind of possible implementation, methods described Also include:
If accessing network site failure corresponding to second IP address, the aiming field is sent to the terminal device The dns resolution result late note of name, to prompt the terminal device to carry out IP address corresponding to the target domain name more Newly.
Second with reference to the possible implementation of the first of first aspect or first aspect or first aspect is possible Appoint in 4th kind of possible implementation of the possible implementation of the third of implementation or first aspect or first aspect Anticipate a kind of mode, in the 5th kind of possible implementation, the access network switches including at least one of following:
Switching between Wireless Fidelity Wi-Fi network and mobile data network;
Switching between different mobile data networks;
Switching between different Wi-Fi networks.
Second aspect, the embodiments of the invention provide a kind of domain name system DNS processing unit, it may include:
Enquiry module, in the case of being switched in the access network for detecting terminal device, initiate target domain name DNS query request;
Receiving module, for receiving dns resolution result corresponding to the DNS query request, wrapped in the dns resolution result Include at least one the first IP address corresponding with the target domain name;
First memory module, for first IP address to be stored in the terminal device.
With reference to second aspect, in the first possible implementation, described device also includes:
First access modules, for when receiving the access instruction for the target domain name, access to be stored in described Network site corresponding to first IP address in terminal device.
With reference to the first possible implementation of second aspect, in second of possible implementation, described device Also include:
Second memory module, for before the access network for detecting terminal device switches, the terminal The second IP address corresponding to the target domain name is stored with equipment.
With reference to second of possible implementation of second aspect, in the third possible implementation, described device Also include:
Second access modules, if for accessing network site failure corresponding to first IP address, access described the Network site corresponding to two IP address.
With reference to the third possible implementation of second aspect, in the 4th kind of possible implementation, described device Also include:
Notification module, if for accessing network site failure corresponding to second IP address, to the terminal device The dns resolution result late note of the target domain name is sent, to prompt the terminal device to carry out the target domain name pair The renewal for the IP address answered.
Second with reference to the possible implementation of the first of second aspect or second aspect or second aspect is possible Appoint in 4th kind of possible implementation of the possible implementation of the third of implementation or second aspect or second aspect Anticipate a kind of mode, in the 5th kind of possible implementation, the access network switches including at least one of following:
Switching between Wireless Fidelity Wi-Fi network and mobile data network;
Switching between different mobile data networks;
Switching between different Wi-Fi networks.
The third aspect, the embodiments of the invention provide a kind of terminal device, it may include:
It is stored with the memory of executable program code;
The processor coupled with the memory;
The processor calls the executable program code stored in the memory, performs such as the embodiment of the present invention Part or all of step described in any one method of first aspect.
Fourth aspect, the present invention provides a kind of computer-readable storage medium, for saving as second aspect of the embodiment of the present invention Computer software instructions used in the domain name system DNS processing unit of offer, it, which is included, is used to perform designed by above-mentioned aspect Program.
Implement the embodiment of the present invention, have the advantages that:
The embodiment of the present invention, in the case of being switched in the access network for detecting terminal device, initiate target The DNS query request of domain name, and dns resolution result corresponding to DNS query request is received, most dns resolution result includes at last At least one the first IP address corresponding with target domain name is stored in terminal device.Occur in the access network of terminal device In the case of IP address corresponding to target domain name that may be present can produce change in the case of that cuts change, being accessed in advance in user should Before network corresponding to target domain name, obtain and store IP address corresponding to the target domain name, in order to which user is needing to access During the target domain name, the IP address of the storage can be directly accessed, is obtained without interim, accelerates net corresponding to target domain name The success rate and speed of the access of network, lift the network experience of user.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of domain name system DNS processing method provided in an embodiment of the present invention;
Fig. 2 is the schematic flow sheet of another domain name system DNS processing method provided in an embodiment of the present invention;
Fig. 3 is a concrete application scene schematic diagram of domain name system DNS processing method provided in an embodiment of the present invention;
Fig. 4 is another concrete application scene schematic diagram of domain name system DNS processing method provided in an embodiment of the present invention;
Fig. 5 is the structural representation of domain name system DNS processing unit provided in an embodiment of the present invention;
Fig. 6 is the structural representation of another embodiment of domain name system DNS processing unit provided in an embodiment of the present invention;
Fig. 7 is the structural representation of terminal device provided in an embodiment of the present invention;
Fig. 8 is the structural representation of another embodiment of terminal device provided by the invention.
Embodiment
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention Accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people The every other embodiment that member is obtained under the premise of creative work is not made, it should all belong to the model that the present invention protects Enclose.
It is described in detail individually below.
Term " first ", " second ", " the 3rd " in description and claims of this specification and the accompanying drawing and " Four " etc. be to be used to distinguish different objects, rather than for describing particular order.In addition, term " comprising " and " having " and it Any deformation, it is intended that cover non-exclusive include.Such as contain the process of series of steps or unit, method, be The step of system, product or equipment are not limited to list or unit, but alternatively also including the step of not listing or list Member, or alternatively also include for the intrinsic other steps of these processes, method, product or equipment or unit.
Referenced herein " embodiment " is it is meant that the special characteristic, structure or the characteristic that describe can wrap in conjunction with the embodiments In at least one embodiment of the present invention.Each position in the description occur the phrase might not each mean it is identical Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and Implicitly understand, embodiment described herein can be combined with other embodiments.
Hereinafter, the part term in the application is explained, in order to skilled artisan understands that.
1), terminal device, also referred to as user equipment (User Equipment, UE), are that one kind provides a user voice And/or the equipment of data connectivity, such as portable equipment, mobile unit with wireless connecting function.Common terminal is set It is standby for example including:Mobile phone, tablet personal computer, notebook computer, palm PC, mobile internet device (Mobile Internet Device, MID), wearable device, Intelligent bracelet, pedometer, MP3 player (Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard audio aspect 3), MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard audio aspect 3) player, personal digital assistant (Personal Digital Assistant, PDA) and pocket computer on knee etc..
2), IP address, refer to that Internet protocol address is translated into internet protocol address (Internet Protocol again Address, IP Address), IP address is a kind of unified address format that IP agreement provides, and it is each on internet One logical address of individual network and each host assignment, the difference of physical address is shielded with this.On internet, it is each Individual node depends on unique IP address and distinguishes and connect each other mutually.IP address is the address of 32 bits, by 4 Individual 8 bit field forms, and is separated between each field with period, for identifying TCP/IP hosts.Each IP address includes two Part:Network ID and host id.Network ID identifies all hosts on same physical network, and host id identifies the physics Each host on network, then each computer on whole Internet depend on each unique IP address and mark Know.
3), " multiple " refer to two or more."and/or", describes the incidence relation of affiliated partner, and expression can deposit In three kinds of relations, for example, A and/or B, can be represented:Individualism A, while A and B be present, these three situations of individualism B. It is a kind of relation of "or" that character "/", which typicallys represent forward-backward correlation object,.
Fig. 1 is a kind of schematic flow sheet of domain name system DNS processing method provided in an embodiment of the present invention, below in conjunction with Accompanying drawing 1 describes in detail from terminal equipment side to a kind of domain name system DNS processing method in the embodiment of the present invention, this method Comprise the following steps S101- steps S103.
Step S101:In the case where the access network for detecting terminal device switches, the DNS of target domain name is initiated Inquiry request.
Specifically, the terminal device either associative processor or related process module in terminal device, (it is follow-up it is identical not Repeat again) in the case where the access network for detecting terminal device switches, the DNS query for initiating target domain name is asked, and DNS query is asked, that is, is directed to corresponding dns server and is initiated query statement, to obtain the parsing comprising the target domain name The dns resolution result of IP address.And before accessing network that network switching table shows that terminal device currently accessed and switching Access network it is different, the switching between Wireless Fidelity Wi-Fi network and mobile data network, different mobile datas can be included Switching between network, the switching, the switching between cable network and wireless network etc. between different Wi-Fi networks, such as with Family is switched to from family using Wi-Fi network go out after the mobile data network that uses.
It should be noted that when network switching occurs or afterwards, the DNS query that terminal device initiates target domain name please (IP address corresponding to requesting query) is asked, the target domain name can be the specified DNS lists that user is stored in advance in terminal device In, for example, the domain name of user's frequency of use highest one kind website or application is placed in the DNS lists;Can also be The domain name of all visited website in subscriber terminal equipment is placed in the list, also either the change of some IP address compared with For frequently domain name, the present invention is not especially limited to this.It is understood that because in the prior art, network does not occur In the case of switching, same website (such as target domain name) is repeatedly accessed, general IP address will not change, therefore As long as the first time access when save corresponding IP address, then can first time access after, can directly using pair The IP address answered, without inquiring about again, but in some cases, such as the access network situation about switching of terminal device Under, the IP address that may result in preservation can be invalid, and user can not normally access, therefore the embodiment of the present invention can be by sending out During raw access network switching, newest IP address corresponding to target domain name is just obtained again or in advance, to avoid user from needing to access When, it may appear that access the situation of failure.
Step S102:Receive dns resolution result corresponding to DNS query request, the dns resolution result include to Few first IP address corresponding with the target domain name.
Specifically, dns resolution result is fed back to terminal device, DNS solutions by the dns server for receiving DNS query request Analysis result includes at least one the first IP address corresponding with the target domain name, and reason is that the website of some domain names may Corresponding multiple servers, it is possible to multiple IP address be present, therefore one and mesh have been comprised at least in the dns resolution result fed back Mark the first IP address corresponding to domain name.In specific application scenarios, its detailed process is for example, terminal device uses usually Smart mobile phone, browser is opened, input a domain name, for example input www.163.com, at this moment, the smart mobile phone used can be sent out Go out a DNS request to local dns server, local dns server be typically all the network access server business of smart mobile phone There is provided, for example, China Telecom, China Mobile;Inquire about after www.163.com DNS request arrival local dns server, it is local Dns server can inquire about its caching record first, if there is this to record in caching, it is possible to if directly returning result does not have Have, local dns server will also be inquired about to DNS root servers, and root dns server is with not recording specific domain name and IP The corresponding relation of location, but tell local dns server, can be to going to continue to inquire about on domain server, and provides domain server Address.Local dns server continues to send request to domain server.Finally, analysis service of the local dns server to domain name Device sends request, and at this moment not only IP address is returned with regard to that can receive a domain name and IP address corresponding relation, local dns server Back to the smart mobile phone of user, also this corresponding relation is preserved in the buffer, can be with case during other user's inquiry next time Direct returning result, accelerate network access.Smart mobile phone, which receives the IP address, simultaneously to be stored in the caching of mobile phone, so as to Next time, access need not access local dns server (see step S103).
Step S103:First IP address is stored in the terminal device.
Specifically, the first IP address corresponding to the target domain name that will inquire about acquisition is stored in the terminal device. Although now user does not have access target domain name also, i.e., the access that terminal device is also not received by for the target domain name refers to Order, still, can be by corresponding by target domain name (such as user is frequently necessary to the website of access) in advance in the embodiment of the present invention IP address stored, then when user need access when, it is possible to directly use, it is not necessary to again grade user send access When instruction, just go to obtain IP address, cause the response time of user to greatly increase, but if carry out inquiry storage in advance If, when user is actual to conduct interviews, then the time of temporary needs inquiry consumption can be avoided, accelerate user and enter website Speed.
The embodiment of the present invention, in the case of being switched in the access network for detecting terminal device, initiate target The DNS query request of domain name, and dns resolution result corresponding to DNS query request is received, most dns resolution result includes at last At least one the first IP address corresponding with target domain name is stored in terminal device.Occur in the access network of terminal device In the case of IP address corresponding to target domain name that may be present can produce change in the case of that cuts change, being accessed in advance in user should Before network corresponding to target domain name, obtain and store IP address corresponding to the target domain name, in order to which user is needing to access During the target domain name, the IP address of the storage can be directly accessed, is obtained without interim, accelerates net corresponding to target domain name The success rate and speed of the access of network, lift the network experience of user.
Fig. 2 is the schematic flow sheet of another domain name system DNS processing method provided in an embodiment of the present invention, below will knot Close accompanying drawing 2 to describe to another domain name system DNS processing method in the embodiment of the present invention in detail from terminal equipment side, such as Shown in Fig. 2, this method may comprise steps of S201- steps S207.
Step S201:Before the access network for detecting terminal device switches, deposited in the terminal device Contain the second IP address corresponding to the target domain name.
Specifically, before the signified access network of the embodiment of the present invention switches, it is assumed that for target domain name, before There is the record for accessing the target domain name, then after the target domain name was accessed before, with will just inquiring about the 2nd IP of acquisition Location is stored, and during in order to subsequently access the network before the switching again, directly accesses this second IP address, certainly on condition that Second IP address has not expired, i.e., before the deadline, the term of validity can be that user is set based on experience value, can also It is that related application excavates the rational time value set according to mass data in itself.As shown in figure 3, Fig. 3 is the embodiment of the present invention The concrete application scene schematic diagram of the domain name system DNS processing method of offer, in Fig. 3, such as when user is away from home, use It is the website 11 (on the left of Fig. 3) that mobile data network accesses, but is needed afterwards by the access network of terminal device in going back home Wi-Fi network (scheming right left side) is switched to, now when using mobile data network, uses second in this method step Network corresponding to the target domain name that IP address accesses, then it is to use the second IP address access target domain name pair when using Wi-Fi The network answered.
Step S202:In the case where the access network for detecting terminal device switches, the DNS of target domain name is initiated Inquiry request.
Step S203:Receive dns resolution result corresponding to DNS query request, the dns resolution result include to Few first IP address corresponding with the target domain name.
Step S204:First IP address is stored in the terminal device.
Specifically, step S202 to step S204 refers to the step S101 to step S103 in above-mentioned Fig. 1 embodiments, this In repeat no more.
Step S205:When receiving the access instruction for the target domain name, access is stored in the terminal device In first IP address corresponding to network site.
Specifically, when receiving the access instruction of target domain name, then it can directly access and be stored in terminal device Network site corresponding to first IP address, without the interim DNS query request for initiating target domain name, therefore it can save significantly The time that user enters related web site is saved, lifts user's online experience.
Step S206:If accessing network site failure corresponding to first IP address, second IP address is accessed Corresponding network site.
Specifically, if access network site failure corresponding to the first IP address, show to be possible to the network site pair The server answered does not provide service temporarily or failure occurs, can not temporarily be successfully connected, it is thus possible to needs to access other IP address corresponding to server, you can to have successful second IP address of access target domain name before accessing.
Step S207:If accessing network site failure corresponding to second IP address, sent to the terminal device The dns resolution result late note of the target domain name, to prompt the terminal device to carry out IP corresponding to the target domain name The renewal of address.
Specifically, the IP address that the second IP address stores before for generation network switching, that is, before network switching Access under network, IP address corresponding to access target domain name, if network site corresponding to the IP address also accesses unsuccessfully, explanation First IP address corresponding to target domain name and the second IP address all fail, it is necessary to which inquiry obtains again, it is therefore desirable to terminal Equipment sends the dns resolution result late note of target domain name, and prompt terminal equipment carries out IP address corresponding to the target domain name Renewal, when in order to subsequently access the target domain name again, can directly carry out the access of corresponding IP address, and It can access successfully.As shown in figure 4, the another kind for the domain name system DNS processing method that Fig. 4 is provided by the embodiment of the present invention is specific Application scenarios schematic diagram, in Fig. 4, after network switching occurs (mobile data network switches to Wi-Fi network), now may The situation that the first IP address and the second IP address can not all access is deposited, now terminal device sends the prompting for accessing failure, and Asked in the DNS query for re-starting target domain name from the background, in order to can be with network corresponding to the successful access target domain name.
The embodiment of the present invention, in the case of being switched in the access network for detecting terminal device, initiate target The DNS query request of domain name, and dns resolution result corresponding to DNS query request is received, most dns resolution result includes at last At least one the first IP address corresponding with target domain name is stored in terminal device.Occur in the access network of terminal device In the case of IP address corresponding to target domain name that may be present can produce change in the case of that cuts change, being accessed in advance in user should Before network corresponding to target domain name, obtain and store IP address corresponding to the target domain name, in order to which user is needing to access During the target domain name, the IP address of the storage can be directly accessed, is obtained without interim, accelerates net corresponding to target domain name The success rate and speed of the access of network, lift the network experience of user.
The embodiment of the present invention additionally provides a kind of domain name system DNS processing unit 10, as shown in figure 5, Fig. 5 is of the invention real The structural representation of the domain name system DNS processing unit in example is applied, below in conjunction with accompanying drawing 5, to domain name system DNS processing unit 10 structure describes in detail.The device 10 may include:Enquiry module 102, the memory module 104 of receiving module 103 and first, Wherein
Enquiry module 102, in the case of being switched in the access network for detecting terminal device, initiate aiming field The DNS query request of name;
Receiving module 103, for receiving dns resolution result corresponding to the DNS query request, the dns resolution result Include at least one the first IP address corresponding with the target domain name;
First memory module 104, for first IP address to be stored in the terminal device.
Specifically, the structure of another embodiment of domain name system DNS processing unit provided by the invention as shown in Figure 6 is shown It is intended to, the device 10 may also include:
First access modules 105, for when receiving the access instruction for the target domain name, access to be stored in institute State network site corresponding to first IP address in terminal device.
Further, as shown in fig. 6, described device also includes:
Second memory module 101, for before the access network for detecting terminal device switches, the end The second IP address corresponding to the target domain name is stored with end equipment.
Yet further, as shown in fig. 6, described device also includes:
Second access modules 106, if failing for accessing network site corresponding to first IP address, described in access Network site corresponding to second IP address.
Yet further, as shown in fig. 6, described device also includes:
Notification module 107, if for accessing network site failure corresponding to second IP address, set to the terminal Preparation send the dns resolution result late note of the target domain name, to prompt the terminal device to carry out the target domain name The renewal of corresponding IP address.
Yet further, the access network switches including at least one of following:
Switching between Wireless Fidelity Wi-Fi network and mobile data network;
Switching between different mobile data networks;
Switching between different Wi-Fi networks.
It will be appreciated that the function of each module can be corresponded to reference to above-mentioned Fig. 1 to Fig. 4 in domain name system DNS processing unit 10 In each method embodiment in specific implementation, repeat no more here.
In the present embodiment, domain name system DNS processing unit 10 is to present in modular form.Here " module " can To refer to ASIC (application-specific integrated circuit, ASIC), perform one or The processor and memory of multiple softwares or firmware program, integrated logic circuit, and/or other can provide the device of above-mentioned function Part.In addition, enquiry module 102 can realize that receiving module 103 can pass through by the processor 201 of the terminal device shown in Fig. 7 The communication interface 203 of terminal device shown in Fig. 7 is realized.
The embodiment of the present invention additionally provides a kind of terminal device 20, as shown in fig. 7, Fig. 7 is the end in the embodiment of the present invention The structural representation of end equipment, the structure of terminal device 20 is described in detail below in conjunction with accompanying drawing 7.The terminal device 20 Including at least one processor 201, at least one memory 202, at least one communication interface 203.The processor 201, institute Memory 202 is stated to connect by the communication bus with the communication interface 203 and complete mutual communication.
Processor 201 can be general central processor (CPU), microprocessor, ASIC (application-specific integrated circuit, ASIC), or it is one or more for controlling above scheme journey The integrated circuit that sequence performs.
Communication interface 203, for other equipment or communication, such as Ethernet, wireless access network (RAN), nothing Line LAN (Wireless Local Area Networks, WLAN) etc..
Memory 202 can be read-only storage (read-only memory, ROM) or can store static information and instruction Other kinds of static storage device, random access memory (random access memory, RAM) or letter can be stored Breath and other kinds of dynamic memory or the EEPROM (Electrically of instruction Erasable Programmable Read-Only Memory, EEPROM), read-only optical disc (Compact Disc Read- Only Memory, CD-ROM) or other optical disc storages, laser disc storage (including compression laser disc, laser disc, laser disc, digital universal Laser disc, Blu-ray Disc etc.), magnetic disk storage medium or other magnetic storage apparatus or can be used in carrying or store with referring to The desired program code of order or data structure form simultaneously can be by any other medium of computer access, but not limited to this. Memory can be individually present, and be connected by bus with processor.Memory can also integrate with processor.
Wherein, the memory 202 be used for store perform above scheme application code, and by processor 201 Control performs.The processor 201 is used to perform the application code stored in the memory 202.
The code that memory 202 stores can perform the domain name system DNS for Fig. 1-Fig. 4 that terminal device provided above performs Processing method, for example in the case where the access network for detecting terminal device switches, initiate the DNS query of target domain name Request;Receive dns resolution result corresponding to DNS query request, the dns resolution result include it is at least one with it is described First IP address corresponding to target domain name;First IP address is stored in the terminal device.
Referring to Fig. 8, Fig. 8 is the structural representation of another embodiment of terminal device provided in an embodiment of the present invention.Should Terminal device 30 can be intelligent mobile terminal (such as mobile phone), and terminal device 30 includes:Radio frequency (English:radio Frequency, RF) circuit 301, the memory 302 for being stored with one or more computer programs, input unit 303, output dress Put 304, sensor 305, voicefrequency circuit 306, Wireless Fidelity (English:Wireless fidelity, WiFi) module 307 including There are the parts such as processor 308 and the power supply 303 of one or more processing cores.It will be understood by those skilled in the art that Fig. 8 In the terminal device structure that shows do not form restriction to terminal device, can include than illustrating more or less parts, Either combine some parts or different parts arrangement.Wherein:
RF circuits 301 can be used for receive and send messages or communication process in, the reception and transmission of signal, especially, by base station After downlink information receives, one or more processors 308 are transferred to handle;In addition, it is sent to base station by up data are related to.It is logical Often, RF circuits 301 include but is not limited to antenna, at least one amplifier, tuner, one or more oscillators, user identity Module (English:Subscriber identity module, SIM) card, transceiver, coupler, low-noise amplifier (English Text:Low noise amplifier, LNA), duplexer etc..In addition, RF circuits 301 can also by radio communication and network or Other-end equipment is communicated.The radio communication can use any communication standard or agreement, include but is not limited to the whole world Mobile communcations system (English:Global system of mobile communication, GSM), general packet radio service (English:General packet radio service, GPRS), CDMA (English:code division multiple Access, CDMA), WCDMA (English:Wideband code division multiple access, WCDMA), Long Term Evolution (English:Long term evolution, LTE), Email, Short Message Service (English:short Messaging service, SMS) etc..
Memory 302 can be used for storage computer program and module, and processor 308 is stored in memory by operation 302 computer program and module, so as to perform various function application and data processing.Memory 302 can mainly include Storing program area and storage data field, wherein, storing program area can storage program area, the application journey needed at least one function Sequence (such as sound-playing function, image player function etc.) etc.;Storage data field can store uses institute according to terminal device 30 Data (such as photo, voice data, the video data etc. shot) of establishment etc..In addition, memory 302 can include at a high speed with Machine accesses memory, can also include nonvolatile memory, a for example, at least disk memory, flush memory device or its His volatile solid-state part.Correspondingly, memory 302 can also include Memory Controller, to provide the He of processor 308 Access of the input unit 303 to memory 302.
Input unit 303 can be used for the numeral or character information for receiving input, and generation is set with user and function Control relevant keyboard, mouse, action bars, optics or the input of trace ball signal.Specifically, input unit 303 may include to touch Sensitive surfaces 3031 and other input equipments 3032.Touch sensitive surface 3031, also referred to as touch display panel or Trackpad, it can receive Collecting touch operation of the user on or near it, (for example user is being touched using any suitable object or annex such as finger, stylus Operation on sensitive surfaces 3031 or near touch sensitive surface 3031), and corresponding connection dress is driven according to formula set in advance Put.Optionally, touch sensitive surface 3031 may include both touch detecting apparatus and touch controller.Wherein, touch detection fills The touch orientation of detection user is put, and detects the signal that touch operation is brought, transmits a signal to touch controller;Touch control Device receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 308, and can receive Order that processor 308 is sent simultaneously is performed.Furthermore, it is possible to using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Polytype realizes touch sensitive surface 3031.Except touch sensitive surface 3031, input unit 303 can also include other input equipments 3032.Specifically, other input equipments 3032 can include but is not limited to physical keyboard, function key (such as volume control button, Switch key etc.), trace ball, mouse, the one or more in action bars etc..
Output device 304 can be used for display by the information of user's input or be supplied to the information and terminal device 30 of user Various graphic user interfaces, these graphic user interfaces can by figure, text, icon, video and its any combination come structure Into.Output device 304 may include display panel 3041, and optionally, display panel 3041 can use liquid crystal display (English: Liquid crystal display, LCD), Organic Light Emitting Diode (English:Organic light-emitting diode, ) etc. OLED form configures.Further, touch sensitive surface 3031 can cover display panel 3041, when touch sensitive surface 3031 detects To after the touch operation on or near it, processor 308 is sent to determine the type of touch event, is followed by subsequent processing device 308 Corresponding visual output is provided on display panel 3041 according to the type of touch event.Although in fig. 8, touch sensitive surface 3031 Input and input function are realized with display panel 3041 is the part independent as two, but in certain embodiments, can Input and output function are realized so that touch sensitive surface 3031 and display panel 3041 is integrated.
Terminal device 30 may also include at least one sensor 305, such as range sensor, optical sensor, motion-sensing Device and other sensors.Specifically, range sensor is used to detect the terminal device screen with covering the terminal device The distance between object, optical sensor is used for the optical signal for detecting the terminal device external environment condition.As motion sensor One kind, gravity accelerometer can detect the size of (generally three axles) acceleration in all directions, can detect when static Go out size and the direction of gravity, application (such as horizontal/vertical screen switching, dependent game, magnetic available for the posture of identification terminal equipment 30 Power meter pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;The top that can also configure as terminal device 30 The other sensors such as spiral shell instrument, barometer, hygrometer, thermometer, infrared ray sensor, here is omitted.
The audio that voicefrequency circuit 306, loudspeaker 3061, microphone 3062 can be provided between user and terminal device 30 connects Mouthful.Electric signal after the voice data received conversion can be transferred to loudspeaker 3061, by loudspeaker by voicefrequency circuit 306 3061 are converted to voice signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 3062, by audio Circuit 306 is converted to voice data after receiving, then after voice data output processor 308 is handled, through RF circuits 301 to send Exported to such as another equipment, or by voice data to memory 302 further to handle.Voicefrequency circuit 306 is also possible to Including earphone jack, to provide the communication of peripheral hardware earphone and terminal device 30.
WiFi belongs to short range wireless transmission technology, and terminal device 30 can help user to receive and dispatch by WiFi module 307 Email, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 8 WiFi module 307 is shown, but it is understood that, it is simultaneously not belonging to must be configured into for terminal device 30, completely can root Omitted according to needs in the essential scope for do not change invention.
Processor 308 is the control centre of terminal device 30, utilizes various interfaces and the whole terminal device 30 of connection Various pieces, by running or performing the computer program being stored in memory 302 and/or module, and call storage Data in memory 302, the various functions and processing data of terminal device 30 are performed, it is whole so as to be carried out to terminal device 30 Body monitors.Optionally, processor 308 may include one or more processing cores;Preferably, processor 308 can be integrated at Device and modem processor are managed, wherein, application processor mainly handles operating system, user interface and application program etc., adjusts Demodulation processor processed mainly handles radio communication.It is understood that above-mentioned modem processor can not also integrate everywhere Manage in device 308.
Terminal device 30 also includes the power supply 303 (such as battery) to all parts power supply, it is preferred that power supply can pass through Power-supply management system and processor 308 are logically contiguous, so as to realize management charging, electric discharge, Yi Jigong by power-supply management system The functions such as consumption management.Power supply 303 can also include one or more direct currents or AC power, recharging system, power failure inspection The random component such as slowdown monitoring circuit, power supply changeover device or inverter, power supply status indicator.
Although being not shown, terminal device 30 can also include camera, bluetooth module etc., and here is omitted.Specifically exist In the embodiment of the present invention, the output device 304 (or input unit 303) of terminal device is touch-screen display, terminal device 30 Also include the computer program of memory 302, processor 308 and one or more, wherein one or more computer journeys Sequence is stored in memory 302, and processor 308 is used for the domain name system for calling memory 302 (nonvolatile memory) to store The program of DNS processing performs the various method steps flow in preceding method embodiment, will not be repeated here.
The embodiment of the present invention also provides a kind of computer-readable storage medium, wherein, the computer-readable storage medium can be stored with journey Sequence, when the program performs part including any domain name system DNS processing method described in above method embodiment or Overall Steps.
It should be noted that for foregoing each method embodiment, in order to be briefly described, therefore it is all expressed as a series of Combination of actions, but those skilled in the art should know, the present invention not by
The limitation of described sequence of movement, because according to the present invention, some steps can use other orders or same Shi Jinhang.Secondly, those skilled in the art should also know, embodiment described in this description belongs to preferred embodiment, Necessary to involved action and the module not necessarily present invention.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed device, can be by another way Realize.For example, device embodiment described above is only schematical, such as the division of the unit, it is only one kind Division of logic function, can there is an other dividing mode when actually realizing, such as multiple units or component can combine or can To be integrated into another system, or some features can be ignored, or not perform.Another, shown or discussed is mutual Coupling direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING or communication connection of device or unit, Can be electrical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or use When, it can be stored in a computer-readable access to memory.Based on such understanding, technical scheme substantially or Person say the part to be contributed to prior art or the technical scheme all or part can in the form of software product body Reveal and, the computer software product is stored in a memory, including some instructions are causing a computer equipment (can be personal computer, server or network equipment etc.) performs all or part of each embodiment methods described of the present invention Step.And foregoing memory includes:USB flash disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various can be with the medium of store program codes.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can To instruct the hardware of correlation to complete by program, the program can be stored in a computer-readable memory, memory It can include:Flash disk, read-only storage (English:Read-Only Memory, referred to as:ROM), random access device (English: Random Access Memory, referred to as:RAM), disk or CD etc..
The embodiment of the present invention is described in detail above, specific case used herein to the principle of the present invention and Embodiment is set forth, and the explanation of above example is only intended to help the method and its core concept for understanding the present invention; Meanwhile for those of ordinary skill in the art, according to the thought of the present invention, can in specific embodiments and applications There is change part, in summary, this specification content should not be construed as limiting the invention.

Claims (7)

  1. A kind of 1. domain name system DNS processing method, it is characterised in that including:
    In the case where the access network for detecting terminal device switches, the DNS query request of target domain name is initiated;
    Receive dns resolution result corresponding to DNS query request, the dns resolution result include it is at least one with it is described First IP address corresponding to target domain name;
    First IP address is stored in the terminal device;
    Methods described also includes:
    Before the access network for detecting terminal device switches, the aiming field is stored with the terminal device Second IP address corresponding to name;
    If accessing network site failure corresponding to first IP address, network position corresponding to second IP address is accessed Put;
    If accessing network site failure corresponding to second IP address, the target domain name is sent to the terminal device Dns resolution result late note, to prompt the terminal device to carry out the renewal of IP address corresponding to the target domain name.
  2. 2. the method as described in claim 1, it is characterised in that methods described also includes:
    When receiving the access instruction for the target domain name, the first IP being stored in the terminal device is accessed Network site corresponding to address.
  3. 3. method as claimed in claim 1 or 2, it is characterised in that the access network switches including following at least one :
    Switching between Wireless Fidelity Wi-Fi network and mobile data network;
    Switching between different mobile data networks;
    Switching between different Wi-Fi networks.
  4. A kind of 4. domain name system DNS processing unit, it is characterised in that including:
    Enquiry module, in the case of being switched in the access network for detecting terminal device, initiate the DNS of target domain name Inquiry request;
    Receiving module, for receiving dns resolution result corresponding to DNS query request, the dns resolution result include to Few first IP address corresponding with the target domain name;
    First memory module, for first IP address to be stored in the terminal device;
    Described device also includes:
    Second memory module, for before the access network for detecting terminal device switches, the terminal device In be stored with the second IP address corresponding to the target domain name;
    Second access modules, if for accessing network site failure corresponding to first IP address, access the 2nd IP Network site corresponding to address;
    Notification module, if for accessing network site failure corresponding to second IP address, sent to the terminal device The dns resolution result late note of the target domain name, to prompt the terminal device to carry out corresponding to the target domain name The renewal of IP address.
  5. 5. device as claimed in claim 4, it is characterised in that described device also includes:
    First access modules, for when receiving the access instruction for the target domain name, access to be stored in the terminal Network site corresponding to first IP address in equipment.
  6. 6. the device as described in claim 4 or 5, it is characterised in that the access network switches including following at least one :
    Switching between Wireless Fidelity Wi-Fi network and mobile data network;
    Switching between different mobile data networks;
    Switching between different Wi-Fi networks.
  7. A kind of 7. terminal device, it is characterised in that including:
    It is stored with the memory of executable program code;
    The processor coupled with the memory;
    The processor calls the executable program code stored in the memory, performs as claims 1 to 3 is any Method described in.
CN201610749575.2A 2016-08-29 2016-08-29 A kind of domain name system DNS processing method and processing device Active CN106331213B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610749575.2A CN106331213B (en) 2016-08-29 2016-08-29 A kind of domain name system DNS processing method and processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610749575.2A CN106331213B (en) 2016-08-29 2016-08-29 A kind of domain name system DNS processing method and processing device

Publications (2)

Publication Number Publication Date
CN106331213A CN106331213A (en) 2017-01-11
CN106331213B true CN106331213B (en) 2017-11-24

Family

ID=57789868

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610749575.2A Active CN106331213B (en) 2016-08-29 2016-08-29 A kind of domain name system DNS processing method and processing device

Country Status (1)

Country Link
CN (1) CN106331213B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018137180A1 (en) * 2017-01-25 2018-08-02 华为技术有限公司 Domain name access method and device
CN107743149B (en) * 2017-11-20 2021-03-16 广州华多网络科技有限公司 Network access method, device and terminal
CN109981806B (en) * 2017-12-28 2022-07-05 北京京东尚科信息技术有限公司 Domain name processing and registering method and system, and computer system
CN108924274B (en) * 2018-09-14 2021-10-26 Oppo广东移动通信有限公司 Domain name system DNS processing method and device, storage medium and electronic equipment
CN109618017A (en) * 2018-12-12 2019-04-12 北京知道创宇信息技术有限公司 Domain name management method, apparatus and system
CN110098978B (en) * 2019-04-12 2021-02-26 网宿科技股份有限公司 DNS scheduling test method and device, network equipment and storage medium
CN110351115A (en) * 2019-05-23 2019-10-18 中国平安财产保险股份有限公司 Reduce method, apparatus, computer equipment and the storage medium of network access time delay
CN110784560A (en) * 2019-09-19 2020-02-11 平安壹钱包电子商务有限公司 Network connection method, device, computer equipment and computer readable storage medium
CN114006935B (en) * 2020-07-14 2023-11-21 成都鼎桥通信技术有限公司 Private network terminal network access method, device and equipment
CN111917899B (en) * 2020-07-28 2022-05-17 平安科技(深圳)有限公司 Domain name compression method and related product thereof
CN113452808B (en) * 2021-06-29 2023-06-23 百果园技术(新加坡)有限公司 Domain name resolution method, device, equipment and storage medium
CN114785781B (en) * 2022-03-22 2024-03-26 阿里巴巴(中国)有限公司 Data access method and device
CN114785753B (en) * 2022-05-05 2023-10-27 上海道客网络科技有限公司 Domain name resolution method, system, medium and electronic equipment of container cloud platform
CN116382809B (en) * 2023-05-26 2023-10-20 荣耀终端有限公司 Application program starting method and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101964968A (en) * 2009-07-22 2011-02-02 中兴通讯股份有限公司 Method and system for inquiring domain name in mobile terminal
WO2013082791A1 (en) * 2011-12-08 2013-06-13 华为技术有限公司 Dns client address and rr ttl updating method, device and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101945374B (en) * 2009-07-03 2014-01-01 华为终端有限公司 Network switching method, communication system and corresponding device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101964968A (en) * 2009-07-22 2011-02-02 中兴通讯股份有限公司 Method and system for inquiring domain name in mobile terminal
WO2013082791A1 (en) * 2011-12-08 2013-06-13 华为技术有限公司 Dns client address and rr ttl updating method, device and system

Also Published As

Publication number Publication date
CN106331213A (en) 2017-01-11

Similar Documents

Publication Publication Date Title
CN106331213B (en) A kind of domain name system DNS processing method and processing device
CN104639672B (en) The method and apparatus for carrying out domain name mapping
CN104427074B (en) A kind of methods, devices and systems for showing incoming information
WO2014206276A1 (en) Domain name resolution method, domain name server, and domain name access method, system and terminal
CN103942113A (en) System restarting reason detection method, device and terminal equipment
CN104142868A (en) Connection establishment method and device
CN104301315A (en) Method and device for limiting information access
CN103631625B (en) A kind of method of data acquisition, user terminal, server and system
CN104850406A (en) Page switching method and device
CN104699501B (en) A kind of method and device for running application program
CN104182401A (en) Method and device for searching in mobile terminal browser
CN103945241A (en) Streaming data statistical method, system and related device
CN107040610A (en) Method of data synchronization, device, storage medium, terminal and server
CN107465802A (en) A kind of methods, devices and systems for showing communication message
CN104735132A (en) Information inquiry method, servers and terminal
CN104267882A (en) Page suspension frame display method and device
CN105530239A (en) Multimedia data obtaining method and device
CN103327029B (en) A kind of detection method of malice network address and equipment
CN106502833A (en) Data back up method and device
CN104660769A (en) Method, device and system for adding contact person information
CN104965831A (en) Method, server, terminal and system for correcting website addresses
CN103944922B (en) Data processing method, terminal, server and system
CN104780234B (en) IP attribution inquiry method, apparatus and system
CN103399706A (en) Page interaction method, device and terminal
CN104901992A (en) Resource transfer method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.