CN108737588A - Domain name analytic method and device - Google Patents

Domain name analytic method and device Download PDF

Info

Publication number
CN108737588A
CN108737588A CN201810274064.9A CN201810274064A CN108737588A CN 108737588 A CN108737588 A CN 108737588A CN 201810274064 A CN201810274064 A CN 201810274064A CN 108737588 A CN108737588 A CN 108737588A
Authority
CN
China
Prior art keywords
dns server
domain name
configuration file
name mapping
accuracy rate
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.)
Granted
Application number
CN201810274064.9A
Other languages
Chinese (zh)
Other versions
CN108737588B (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201810274064.9A priority Critical patent/CN108737588B/en
Publication of CN108737588A publication Critical patent/CN108737588A/en
Application granted granted Critical
Publication of CN108737588B publication Critical patent/CN108737588B/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/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • 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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles

Landscapes

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

Abstract

The disclosure is directed to a kind of domain name analytic method and devices.This method includes:Configuration file is obtained from privately owned dns server;According to each domain name for including in configuration file, the dns server and at least one public dns server given tacit consent to terminal device send domain name analysis request respectively;According to the accuracy rate for the domain name mapping result that each dns server returns, alternative DNS server is determined;When initiating network request, if configuration file includes the corresponding domain name of network request, domain name mapping is carried out to the corresponding domain name of network request according to configuration file, domain name mapping is otherwise carried out to the corresponding domain name of network request by alternative DNS server.The disclosure can meet the domain name mapping demand in face of open network, and relatively low to the bandwidth requirement of privately owned dns server, maintenance cost is relatively low under the premise of reducing Domain Hijacking risk as far as possible.

Description

Domain name analytic method and device
Technical field
This disclosure relates to field of communication technology more particularly to domain name analytic method and device.
Background technology
Client needs first before initiating network request to server to DNS (Domain Name System, domain name System) server send out domain name mapping request, with obtaining the corresponding IP of domain name (Internet Protocol, Internet protocol) Location.Dns server may deliberately or under fire lead to the correspondence of domain name and IP address comprising some mistakes, mistake The correspondence of domain name and IP address, which returns to client, to cause DNS to kidnap, and loss may be brought to user.
In the related technology, privately owned dns server is voluntarily usually built by the developer applied, and is protected by encrypted means Demonstrate,prove the reliability of dns resolution process.In this fashion, client is asked before initiating network request from privately owned dns server The configuration file of the correspondence comprising domain name and IP address is sought, and by the profileapplied in subsequent network request. This mode is relatively specific for the scene that the domain name quantity to be accessed is smaller and can determine in advance.If the domain name number to be accessed Measure larger, or the domain name to be accessed cannot determine in advance, then being difficult to completely include by a configuration file all will access Domain name and IP address correspondence.If privately owned dns server meets a large amount of Real time requests, maintenance cost can be increased.
Invention content
To overcome the problems in correlation technique, a kind of domain name analytic method of disclosure offer and device.
According to the first aspect of the embodiments of the present disclosure, a kind of domain name analytic method is provided, including:
Configuration file is obtained from privately owned dns server, wherein the configuration file, which includes that domain name is corresponding with IP address, to close System;
According to each domain name for including in the configuration file, the dns server given tacit consent to terminal device and at least one Public dns server sends domain name analysis request respectively;
According to the configuration file, in the dns server and at least one public dns server that determine the acquiescence Each dns server return domain name mapping result accuracy rate;
According to the accuracy rate for the domain name mapping result that each dns server returns, from each dns server Determine alternative DNS server;
When initiating network request, if the configuration file includes the corresponding domain name of the network request, according to Configuration file carries out domain name mapping to the corresponding domain name of the network request, otherwise by the alternative DNS server to described The corresponding domain name of network request carries out domain name mapping.
In one possible implementation, according to the accurate of the domain name mapping result of each dns server return Rate determines alternative DNS server from each dns server, including:
The highest dns server of accuracy rate of domain name mapping result in each dns server is determined as spare DNS Server.
In one possible implementation, according to the accurate of the domain name mapping result of each dns server return Rate determines alternative DNS server from each dns server, including:
The dns server that the time that domain name analysis result is returned in each dns server meets the requirements is determined as Candidate dns server;
According to the accuracy rate for the domain name mapping result that each candidate dns server returns, from each candidate DNS Alternative DNS server is determined in server.
In one possible implementation, the domain name mapping result returned according to each candidate dns server Accuracy rate determines alternative DNS server from each candidate dns server, including:
The highest candidate dns server of accuracy rate of domain name mapping result in each candidate dns server is determined For alternative DNS server.
In one possible implementation, configuration file is obtained from privately owned dns server, including:
Download configuration file is encrypted from privately owned dns server.
According to the second aspect of the embodiment of the present disclosure, a kind of domain name mapping device is provided, including:
Acquisition module, for from privately owned dns server obtain configuration file, wherein the configuration file include domain name with The correspondence of IP address;
Sending module, the DNS service for according to each domain name for including in the configuration file, giving tacit consent to terminal device Device and at least one public dns server send domain name analysis request respectively;
First determining module, for according to the configuration file, determining the dns server and described at least one of the acquiescence The accuracy rate for the domain name mapping result that each dns server in a public dns server returns;
Second determining module, the accuracy rate of the domain name mapping result for being returned according to each dns server, from institute It states and determines alternative DNS server in each dns server;
Domain name mapping module is used for when initiating network request, is corresponded to if the configuration file includes the network request Domain name, then according to the configuration file to the corresponding domain name of the network request carry out domain name mapping, otherwise by described standby Domain name mapping is carried out to the corresponding domain name of the network request with dns server.
In one possible implementation, second determining module is used for:
The highest dns server of accuracy rate of domain name mapping result in each dns server is determined as spare DNS Server.
In one possible implementation, second determining module includes:
First determination sub-module is wanted for meeting the time for returning to domain name analysis result in each dns server The dns server asked is determined as candidate dns server;
Second determination sub-module, domain name mapping result for being returned according to each candidate dns server it is accurate Rate determines alternative DNS server from each candidate dns server.
In one possible implementation, second determination sub-module is used for:
The highest candidate dns server of accuracy rate of domain name mapping result in each candidate dns server is determined For alternative DNS server.
In one possible implementation, the acquisition module is used for:
Download configuration file is encrypted from privately owned dns server.
According to the third aspect of the embodiment of the present disclosure, a kind of domain name mapping device is provided, which is characterized in that including:Processing Device;Memory for storing processor-executable instruction;Wherein, the processor is configured as executing the above method.
According to the fourth aspect of the embodiment of the present disclosure, a kind of non-transitorycomputer readable storage medium is provided, when described When instruction in storage medium is executed by processor so that processor is able to carry out the above method.
The technical scheme provided by this disclosed embodiment can include the following benefits:By from privately owned dns server Configuration file is obtained, according to each domain name for including in configuration file, the dns server given tacit consent to terminal device and at least one Public dns server sends domain name analysis request respectively, according to configuration file, determines the dns server of acquiescence and at least one The accuracy rate for the domain name mapping result that each dns server in public dns server returns, is returned according to each dns server The accuracy rate for the domain name mapping result returned determines alternative DNS server from each dns server, and is initiating network request When, if configuration file includes the corresponding domain name of network request, domain is carried out to the corresponding domain name of network request according to configuration file Otherwise name parsing carries out domain name mapping to the corresponding domain name of network request by alternative DNS server, thus comprehensively utilizes privately owned Dns server, the dns server of acquiescence and public dns server, can be in the premise for reducing Domain Hijacking risk as far as possible Under, meet the domain name mapping demand in face of open network, and it is relatively low to the bandwidth requirement of privately owned dns server, maintenance cost compared with It is low.
In one possible implementation, by by the accuracy rate highest of domain name mapping result in each dns server Dns server be determined as alternative DNS server, thus need by alternative DNS server carry out domain name mapping when, can Ensure the accuracy rate of domain name mapping.
In one possible implementation, by expiring the time for returning to domain name analysis result in each dns server The dns server required enough is determined as candidate dns server, can ensure the response speed for the alternative DNS server subsequently selected The stability of degree.
In one possible implementation, by by the accuracy rate of domain name mapping result in each candidate dns server Highest candidate's dns server is determined as alternative DNS server, thus is needing to carry out domain name solution by alternative DNS server When analysis, the accuracy rate and response speed of domain name mapping can be ensured.
In one possible implementation, by encrypting download configuration file from privately owned dns server, under capable of ensureing Carry the configuration text that obtained configuration file is consistent with the configuration file on privately owned dns server, is obtained according to download to guarantee Part carries out the accuracy of domain name mapping.
It should be understood that above general description and following detailed description is only exemplary and explanatory, not The disclosure can be limited.
Description of the drawings
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is a kind of flow chart of domain name analytic method shown according to an exemplary embodiment.
Fig. 2 is an illustrative flow of domain name analytic method step S14 shown according to an exemplary embodiment a kind of Figure.
Fig. 3 is a kind of domain name mapping device block diagram shown according to an exemplary embodiment.
Fig. 4 is an a kind of illustrative block diagram of domain name mapping device shown according to an exemplary embodiment.
Fig. 5 is a kind of block diagram of device 800 for domain name mapping shown according to an exemplary embodiment.
Specific implementation mode
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is a kind of flow chart of domain name analytic method shown according to an exemplary embodiment.This method can be applied In the terminal devices such as mobile phone, tablet computer or PC (Personal Computer, personal computer).As shown in Figure 1, should Method includes step S11 to step S15.
In step s 11, configuration file is obtained from privately owned dns server, wherein configuration file includes domain name and IP address Correspondence.
In the present embodiment, privately owned dns server can refer to the dns server that the developer of application voluntarily builds.It is privately owned Dns server can ensure the safety of the configuration file on the privately owned dns server, that is, matching on the privately owned dns server The correspondence for setting domain name and IP address in file is correct, and the configuration file on the privately owned dns server is not by domain name It kidnaps.
In one possible implementation, configuration file includes multiple correspondences.Wherein, correspondence refers to domain The correspondence of name and IP address.For example, the configuration file on privately owned dns server can include multiple common domain names and IP The correspondence of address.For example, the configuration file on privately owned dns server can be smaller, can only include tens common The correspondence of domain name and IP address.
By being configured in the configuration file on privately owned dns server, a small amount of domain name is corresponding with IP address to close the present embodiment System, can reduce the maintenance cost of privately owned dns server.
In one possible implementation, configuration file is obtained from privately owned dns server, including:From privately owned DNS service Device encrypts download configuration file.In the realization method, by encrypting download configuration file, Neng Goubao from privately owned dns server The configuration file that card download obtains is consistent with the configuration file on privately owned dns server, to ensure to match according to what download obtained Set the accuracy that file carries out domain name mapping.
In step s 12, according to each domain name for including in configuration file, the dns server given tacit consent to terminal device and At least one public dns server sends domain name analysis request respectively.
In the present embodiment, the dns server of terminal device acquiescence can refer to the acquiescence DNS of the network configuration of terminal device Server.Wherein, the dns server of terminal device acquiescence can be 1 or 2.Public dns server can refer on internet Disclosed dns server, such as 8.8.8.8 and 119.29.29.29 etc..
In one possible implementation, according to each domain name for including in configuration file, give tacit consent to terminal device Dns server and at least one public dns server send domain name analysis request respectively, may include:According in configuration file Each domain name, to terminal device give tacit consent to dns server and at least one public dns server send domain name mapping respectively and ask It asks.For example, configuration file includes domain name D1To Dn, the dns server of terminal device acquiescence includes S1And S2, public dns server Including S3To Sm, wherein n is the integer more than 1, and m is the integer more than 3.According to domain name D1, generate domain name mapping and ask Q1;Root According to domain name D2, generate domain name mapping and ask Q2;……;According to domain name Dn, generate domain name mapping and ask Qn.Translate domain names into request Q1 It is sent respectively to dns server S1To Sm, obtain domain name mapping and ask Q1Corresponding m domain name mapping result;It translates domain names into and asks Seek Q2It is sent respectively to dns server S1To Sm, obtain domain name mapping and ask Q2Corresponding m domain name mapping result;……;It will Q is asked in domain name mappingnIt is sent respectively to dns server S1To Sm, obtain domain name mapping and ask QnCorresponding m domain name mapping knot Fruit.
In alternatively possible realization method, according to each domain name for including in configuration file, give tacit consent to terminal device Dns server and at least one public dns server send domain name analysis request respectively, may include:According to configuration file In multiple domain names, to terminal device give tacit consent to dns server and at least one public dns server send domain name mapping respectively Request.In the realization method, it may not be necessary to the DNS service given tacit consent to terminal device according to all domain names in configuration file Device and at least one public dns server send domain name analysis request respectively.
In one possible implementation, according to each domain name for including in configuration file, give tacit consent to terminal device Dns server and at least one public dns server send domain name analysis request respectively, may include:According in configuration file Including each domain name, to terminal device give tacit consent to dns server and public dns server list in each server difference Send domain name analysis request.Wherein, public dns server list may include multiple public dns servers.
In step s 13, according to configuration file, in the dns server and at least one public dns server that determine acquiescence Each dns server return domain name mapping result accuracy rate.
In the present embodiment, by each DNS service in the dns server of acquiescence and at least one public dns server The domain name mapping result that device returns is compared with configuration file, it may be determined that the dns server of acquiescence and at least one public The accuracy rate for the domain name mapping result that each dns server in dns server returns.
In step S14, according to the accuracy rate for the domain name mapping result that each dns server returns, from each DNS service Alternative DNS server is determined in device.
Wherein, the quantity of alternative DNS server can be 1, or it is multiple, it is not limited thereto.
In one possible implementation, the accuracy rate of the domain name mapping result returned according to each dns server, from Alternative DNS server is determined in each dns server, including:Most by the accuracy rate of domain name mapping result in each dns server High dns server is determined as alternative DNS server.The realization method is by by domain name mapping result in each dns server The highest dns server of accuracy rate be determined as alternative DNS server, thus needing to carry out domain by alternative DNS server When name parsing, the accuracy rate of domain name mapping can be ensured.
In the realization method, if the highest dns server more than one of the accuracy rate of domain name mapping result, it can incite somebody to action The most fast dns server of response speed is determined as spare DNS service in the highest dns server of accuracy rate of domain name mapping result Device, or the highest dns server of accuracy rate of result can be translated domain names into and be identified as alternative DNS server.Wherein, The most fast dns server of response speed is determined as spare in the highest dns server of accuracy rate by translating domain names into result Dns server can ensure the accuracy rate and sound of domain name mapping when needing to carry out domain name mapping by alternative DNS server Answer speed.
In step S15, when initiating network request, if configuration file includes the corresponding domain name of network request, basis Configuration file carries out domain name mapping to the corresponding domain name of network request, is otherwise corresponded to network request by alternative DNS server Domain name carry out domain name mapping.
In the present embodiment, it if configuration file does not include the corresponding domain name of the network request, can be asked according to the network Corresponding domain name is asked to generate the corresponding domain name mapping request of the network request, and can be by the corresponding domain name mapping of the network request Request is sent to alternative DNS server, to obtain the domain name mapping result of alternative DNS server return.
The present embodiment from privately owned dns server by obtaining configuration file, according to each domain name for including in configuration file, The dns server and at least one public dns server given tacit consent to terminal device send domain name analysis request respectively, according to configuration File determines the domain name solution that each dns server in the dns server and at least one public dns server of acquiescence returns The accuracy rate for analysing result, according to the accuracy rate for the domain name mapping result that each dns server returns, from each dns server Determine alternative DNS server, and when initiating network request, if configuration file includes the corresponding domain name of network request, basis Configuration file carries out domain name mapping to the corresponding domain name of network request, is otherwise corresponded to network request by alternative DNS server Domain name carry out domain name mapping, thus comprehensively utilize privately owned dns server, the dns server of acquiescence and public dns server, The domain name mapping demand in face of open network can be met, and to privately owned under the premise of reducing Domain Hijacking risk as far as possible The bandwidth requirement of dns server is relatively low, and maintenance cost is relatively low.
Fig. 2 is an illustrative flow of domain name analytic method step S14 shown according to an exemplary embodiment a kind of Figure.As shown in Fig. 2, step S14 may include step S141 and step S142.
In step s 141, the DNS service time that domain name analysis result is returned in each dns server met the requirements Device is determined as candidate dns server.
In one possible implementation, the time of return domain name analysis result, which meets the requirements, to be:Return to domain name The average time of analysis result is less than first threshold.For example, first threshold can be 50 milliseconds.
In alternatively possible realization method, the time of return domain name analysis result, which meets the requirements, to be:Return is matched The time for setting the corresponding domain name mapping result of each domain name in file is respectively less than second threshold, and returns to the flat of domain name analysis result The equal time is less than third threshold value.
In the present embodiment, the DNS by meeting the requirements the time for returning to domain name analysis result in each dns server Server is determined as candidate dns server, can ensure the stability of the response speed for the alternative DNS server subsequently selected.
In step S142, according to the accuracy rate for the domain name mapping result that each candidate dns server returns, from each time It selects and determines alternative DNS server in dns server.
In one possible implementation, according to the accurate of the domain name mapping result of each candidate dns server return Rate determines alternative DNS server from each candidate dns server, including:By domain name mapping in each candidate dns server As a result the highest candidate dns server of accuracy rate is determined as alternative DNS server.The realization method is by by each candidate The highest candidate dns server of the accuracy rate of domain name mapping result is determined as alternative DNS server in dns server, thus exists When needing to carry out domain name mapping by alternative DNS server, the accuracy rate and response speed of domain name mapping can be ensured.
It, can if the highest candidate dns server more than one of the accuracy rate of domain name mapping result in the realization method The most fast candidate dns server of response speed determines in the highest candidate dns server of accuracy rate to translate domain names into result For alternative DNS server, or can translate domain names into result the highest candidate dns server of accuracy rate be identified as it is standby Use dns server.Wherein, the time that response speed is most fast in the highest candidate dns server of accuracy rate of result is translated domain names into It selects dns server to be determined as alternative DNS server, can be ensured when needing to carry out domain name mapping by alternative DNS server The accuracy rate and response speed of domain name mapping.
Fig. 3 is a kind of domain name mapping device block diagram shown according to an exemplary embodiment.As shown in figure 3, the device packet Include acquisition module 31, sending module 32, the first determining module 33, the second determining module 34 and domain name mapping module 35.
The acquisition module 31, for from privately owned dns server obtain configuration file, wherein configuration file include domain name with The correspondence of IP address.
The sending module 32, the DNS service for according to each domain name for including in configuration file, giving tacit consent to terminal device Device and at least one public dns server send domain name analysis request respectively.
First determining module 33, dns server for according to configuration file, determining acquiescence and at least one public The accuracy rate for the domain name mapping result that each dns server in dns server returns.
Second determining module 34, the accuracy rate of domain name mapping result for being returned according to each dns server, from each Alternative DNS server is determined in a dns server.
The domain name mapping module 35 is used for when initiating network request, if configuration file includes the corresponding domain of network request Name then carries out domain name mapping, otherwise by alternative DNS server to network according to configuration file to the corresponding domain name of network request Corresponding domain name is asked to carry out domain name mapping.
In one possible implementation, the second determining module 34 is configured as:
The highest dns server of the accuracy rate of domain name mapping result in each dns server is determined as spare DNS service Device.
Fig. 4 is an a kind of illustrative block diagram of domain name mapping device shown according to an exemplary embodiment.Such as Fig. 4 institutes Show:
In one possible implementation, the second determining module 34 is determined including the first determination sub-module 341 and second Submodule 342.
First determination sub-module 341 is wanted for meeting the time for returning to domain name analysis result in each dns server The dns server asked is determined as candidate dns server.
Second determination sub-module 342, domain name mapping result for being returned according to each candidate dns server it is accurate Rate determines alternative DNS server from each candidate dns server.
In one possible implementation, the second determination sub-module 342 is configured as:
The highest candidate dns server of the accuracy rate of domain name mapping result in each candidate dns server is determined as standby Use dns server.
In one possible implementation, acquisition module 31 is configured as:
Download configuration file is encrypted from privately owned dns server.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
The present embodiment from privately owned dns server by obtaining configuration file, according to each domain name for including in configuration file, The dns server and at least one public dns server given tacit consent to terminal device send domain name analysis request respectively, according to configuration File determines the domain name solution that each dns server in the dns server and at least one public dns server of acquiescence returns The accuracy rate for analysing result, according to the accuracy rate for the domain name mapping result that each dns server returns, from each dns server Determine alternative DNS server, and when initiating network request, if configuration file includes the corresponding domain name of network request, basis Configuration file carries out domain name mapping to the corresponding domain name of network request, is otherwise corresponded to network request by alternative DNS server Domain name carry out domain name mapping, thus comprehensively utilize privately owned dns server, the dns server of acquiescence and public dns server, The domain name mapping demand in face of open network can be met, and to privately owned under the premise of reducing Domain Hijacking risk as far as possible The bandwidth requirement of dns server is relatively low, and maintenance cost is relatively low.
Fig. 5 is a kind of block diagram of device 800 for domain name mapping shown according to an exemplary embodiment.For example, dress It can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, medical treatment to set 800 Equipment, body-building equipment, personal digital assistant etc..
With reference to Fig. 5, device 800 may include following one or more components:Processing component 802, memory 804, power supply Component 806, multimedia component 808, audio component 810, the interface 812 of input/output (I/O), sensor module 814, and Communication component 816.
The integrated operation of 802 usual control device 800 of processing component, such as with display, call, data communication, phase Machine operates and record operates associated operation.Processing component 802 may include that one or more processors 820 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 802 may include one or more modules, just Interaction between processing component 802 and other assemblies.For example, processing component 802 may include multi-media module, it is more to facilitate Interaction between media component 808 and processing component 802.
Memory 804 is configured as storing various types of data to support the operation in device 800.These data are shown Example includes instruction for any application program or method that are operated on device 800, contact data, and telephone book data disappears Breath, picture, video etc..Memory 804 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static RAM (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 806 provides electric power for the various assemblies of device 800.Power supply module 806 may include power management system System, one or more power supplys and other generated with for device 800, management and the associated component of distribution electric power.
Multimedia component 808 is included in the screen of one output interface of offer between described device 800 and user.One In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers Body component 808 includes a front camera and/or rear camera.When device 800 is in operation mode, such as screening-mode or When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 810 is configured as output and/or input audio signal.For example, audio component 810 includes a Mike Wind (MIC), when device 800 is in operation mode, when such as call model, logging mode and speech recognition mode, microphone by with It is set to reception external audio signal.The received audio signal can be further stored in memory 804 or via communication set Part 816 is sent.In some embodiments, audio component 810 further includes a loud speaker, is used for exports audio signal.
I/O interfaces 812 provide interface between processing component 802 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor module 814 includes one or more sensors, and the state for providing various aspects for device 800 is commented Estimate.For example, sensor module 814 can detect the state that opens/closes of device 800, and the relative positioning of component, for example, it is described Component is the display and keypad of device 800, and sensor module 814 can be with 800 1 components of detection device 800 or device Position change, the existence or non-existence that user contacts with device 800,800 orientation of device or acceleration/deceleration and device 800 Temperature change.Sensor module 814 may include proximity sensor, be configured to detect without any physical contact Presence of nearby objects.Sensor module 814 can also include optical sensor, such as CMOS or ccd image sensor, at As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between device 800 and other equipment.Device 800 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or combination thereof.In an exemplary implementation In example, communication component 816 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 816 further includes near-field communication (NFC) module, to promote short range communication.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 800 can be believed by one or more application application-specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, it includes the non-transitorycomputer readable storage medium instructed, example to additionally provide a kind of Such as include the memory 804 of instruction, above-metioned instruction can be executed by the processor 820 of device 800 to complete the above method.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and includes the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (12)

1. a kind of domain name analytic method, which is characterized in that including:
Configuration file is obtained from privately owned dns server, wherein the configuration file includes the correspondence of domain name and IP address;
According to each domain name for including in the configuration file, the dns server given tacit consent to terminal device and at least one public Dns server sends domain name analysis request respectively;
According to the configuration file, determine each in the dns server and at least one public dns server of the acquiescence The accuracy rate for the domain name mapping result that a dns server returns;
According to the accuracy rate for the domain name mapping result that each dns server returns, determined from each dns server Alternative DNS server;
When initiating network request, if the configuration file includes the corresponding domain name of the network request, according to the configuration File carries out domain name mapping to the corresponding domain name of the network request, otherwise by the alternative DNS server to the network Corresponding domain name is asked to carry out domain name mapping.
2. according to the method described in claim 1, it is characterized in that, the domain name mapping returned according to each dns server As a result accuracy rate determines alternative DNS server from each dns server, including:
The highest dns server of accuracy rate of domain name mapping result in each dns server is determined as spare DNS service Device.
3. according to the method described in claim 1, it is characterized in that, the domain name mapping returned according to each dns server As a result accuracy rate determines alternative DNS server from each dns server, including:
The dns server that the time that domain name analysis result is returned in each dns server meets the requirements is determined as candidate Dns server;
According to the accuracy rate for the domain name mapping result that each candidate dns server returns, from each candidate DNS service Alternative DNS server is determined in device.
4. according to the method described in claim 3, it is characterized in that, the domain name returned according to each candidate dns server The accuracy rate of analysis result determines alternative DNS server from each candidate dns server, including:
The highest candidate dns server of accuracy rate of domain name mapping result in each candidate dns server is determined as standby Use dns server.
5. according to the method described in claim 1, it is characterized in that, from privately owned dns server obtain configuration file, including:
Download configuration file is encrypted from privately owned dns server.
6. a kind of domain name mapping device, which is characterized in that including:
Acquisition module, for obtaining configuration file from privately owned dns server, wherein the configuration file includes domain name and IP The correspondence of location;
Sending module, dns server for according to each domain name for including in the configuration file, giving tacit consent to terminal device and At least one public dns server sends domain name analysis request respectively;
First determining module, for according to the configuration file, determining the dns server of the acquiescence and at least one public affairs The accuracy rate for the domain name mapping result that each dns server in dns server returns altogether;
Second determining module, the accuracy rate of the domain name mapping result for being returned according to each dns server, from described each Alternative DNS server is determined in a dns server;
Domain name mapping module is used for when initiating network request, if the configuration file includes the corresponding domain of the network request Name then carries out domain name mapping to the corresponding domain name of the network request according to the configuration file, otherwise passes through the spare DNS Server carries out domain name mapping to the corresponding domain name of the network request.
7. device according to claim 6, which is characterized in that second determining module is used for:
The highest dns server of accuracy rate of domain name mapping result in each dns server is determined as spare DNS service Device.
8. device according to claim 6, which is characterized in that second determining module includes:
First determination sub-module, for meet the requirements the time for returning to domain name analysis result in each dns server Dns server is determined as candidate dns server;
Second determination sub-module, the accuracy rate of the domain name mapping result for being returned according to each candidate dns server, from Alternative DNS server is determined in each candidate dns server.
9. device according to claim 8, which is characterized in that second determination sub-module is used for:
The highest candidate dns server of accuracy rate of domain name mapping result in each candidate dns server is determined as standby Use dns server.
10. device according to claim 6, which is characterized in that the acquisition module is used for:
Download configuration file is encrypted from privately owned dns server.
11. a kind of domain name mapping device, which is characterized in that including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as the method described in any one of perform claim requirement 1 to 5.
12. a kind of non-transitorycomputer readable storage medium makes when the instruction in the storage medium is executed by processor It obtains processor and is able to carry out the method described in any one of claim 1 to 5.
CN201810274064.9A 2018-03-29 2018-03-29 Domain name resolution method and device Active CN108737588B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810274064.9A CN108737588B (en) 2018-03-29 2018-03-29 Domain name resolution method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810274064.9A CN108737588B (en) 2018-03-29 2018-03-29 Domain name resolution method and device

Publications (2)

Publication Number Publication Date
CN108737588A true CN108737588A (en) 2018-11-02
CN108737588B CN108737588B (en) 2022-02-15

Family

ID=63940572

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810274064.9A Active CN108737588B (en) 2018-03-29 2018-03-29 Domain name resolution method and device

Country Status (1)

Country Link
CN (1) CN108737588B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109922120A (en) * 2018-12-10 2019-06-21 网宿科技股份有限公司 Improve the method and terminal of DNS availability
CN111049943A (en) * 2019-12-05 2020-04-21 北京小米移动软件有限公司 Method, device, equipment and medium for analyzing domain name
CN111405639A (en) * 2020-03-09 2020-07-10 深圳前海百递网络有限公司 Wireless network connection method and device, readable storage medium and computer equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103002069A (en) * 2012-12-25 2013-03-27 北京小米科技有限责任公司 Domain name resolution method, device and system
US20150350044A1 (en) * 2014-05-30 2015-12-03 Apple Inc. Cloud-based Infrastructure for Determining Reachability of Services Provided by a Server
CN105262858A (en) * 2015-11-06 2016-01-20 北京金山安全软件有限公司 Method and device for detecting safety of Domain Name System (DNS) server
CN105763668A (en) * 2016-02-26 2016-07-13 杭州华三通信技术有限公司 Domain name resolution method and apparatus
CN106453685A (en) * 2016-11-15 2017-02-22 中国移动通信集团江苏有限公司 Method for resolving with public DNS (Domain Name System) server, system and server
CN107147751A (en) * 2017-05-11 2017-09-08 上海红阵信息科技有限公司 Domain name analytic method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103002069A (en) * 2012-12-25 2013-03-27 北京小米科技有限责任公司 Domain name resolution method, device and system
US20150350044A1 (en) * 2014-05-30 2015-12-03 Apple Inc. Cloud-based Infrastructure for Determining Reachability of Services Provided by a Server
CN105262858A (en) * 2015-11-06 2016-01-20 北京金山安全软件有限公司 Method and device for detecting safety of Domain Name System (DNS) server
CN105763668A (en) * 2016-02-26 2016-07-13 杭州华三通信技术有限公司 Domain name resolution method and apparatus
CN106453685A (en) * 2016-11-15 2017-02-22 中国移动通信集团江苏有限公司 Method for resolving with public DNS (Domain Name System) server, system and server
CN107147751A (en) * 2017-05-11 2017-09-08 上海红阵信息科技有限公司 Domain name analytic method and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109922120A (en) * 2018-12-10 2019-06-21 网宿科技股份有限公司 Improve the method and terminal of DNS availability
CN109922120B (en) * 2018-12-10 2022-04-05 网宿科技股份有限公司 Method and terminal for improving DNS availability
CN111049943A (en) * 2019-12-05 2020-04-21 北京小米移动软件有限公司 Method, device, equipment and medium for analyzing domain name
CN111405639A (en) * 2020-03-09 2020-07-10 深圳前海百递网络有限公司 Wireless network connection method and device, readable storage medium and computer equipment
CN111405639B (en) * 2020-03-09 2022-05-13 深圳前海百递网络有限公司 Wireless network connection method and device, readable storage medium and computer equipment

Also Published As

Publication number Publication date
CN108737588B (en) 2022-02-15

Similar Documents

Publication Publication Date Title
CN106254467A (en) Sharing files method and device
CN105245595B (en) service response method and device
CN106209800B (en) Equipment Authority sharing method and apparatus
CN105487389A (en) Method and device for controlling intelligent equipment
CN104852966A (en) Numerical value transfer method, terminal and cloud server
CN104159230B (en) Call recognition methods and device
CN105183513A (en) Application recommendation method and apparatus
CN104079964B (en) The method and device of transmission of video information
CN107784045B (en) Quick reply method and device for quick reply
CN105491048A (en) Account management method and apparatus
CN104980580A (en) Short message checking method and short message checking device
CN104065762A (en) Method and device for detecting hijacking of DNS (Domain Name Server)
CN108803444A (en) Control method, device and the storage medium of smart machine
CN111696553A (en) Voice processing method and device and readable medium
CN108737588A (en) Domain name analytic method and device
CN108495168A (en) The display methods and device of barrage information
CN106209604A (en) Add the method and device of good friend
CN105354017A (en) Information processing method and apparatus
CN103916468A (en) System upgrading method, terminal, server and upgrading system
CN109547480A (en) A kind of login method and device
CN109388699A (en) Input method, device, equipment and storage medium
CN105242837A (en) Application page acquisition method and terminal
CN105549572A (en) Control method and device for intelligent home equipment and equipment
CN105515923A (en) Equipment control method and device
CN105407160A (en) Interface display method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant